Unable to complete quick start with jython 2.5.3
Following instructions here:
http://geoscript.org/py/quickstart.html#install-setuptools
Fails on:
jython ez_setup.py
Failure:
jython ez_setup.py
Downloading http://pypi.python.org/packages/2.5/s/setuptools/setuptools-0.6c11-py2.5.egg
Traceback (most recent call last):
File "ez_setup.py", line 278, in <module>
main(sys.argv[1:])
File "ez_setup.py", line 210, in main
egg = download_setuptools(version, delay=0)
File "ez_setup.py", line 158, in download_setuptools
src = urllib2.urlopen(url)
File "/Users/jody/java/jython/Lib/urllib2.py", line 124, in urlopen
return _opener.open(url, data)
File "/Users/jody/java/jython/Lib/urllib2.py", line 387, in open
response = meth(req, response)
File "/Users/jody/java/jython/Lib/urllib2.py", line 497, in http_response
response = self.parent.error(
File "/Users/jody/java/jython/Lib/urllib2.py", line 419, in error
result = self._call_chain(*args)
File "/Users/jody/java/jython/Lib/urllib2.py", line 360, in _call_chain
result = func(*args)
File "/Users/jody/java/jython/Lib/urllib2.py", line 593, in http_error_302
return self.parent.open(new)
File "/Users/jody/java/jython/Lib/urllib2.py", line 381, in open
response = self._open(req, data)
File "/Users/jody/java/jython/Lib/urllib2.py", line 398, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
File "/Users/jody/java/jython/Lib/urllib2.py", line 360, in _call_chain
result = func(*args)
File "/Users/jody/java/jython/Lib/urllib2.py", line 1126, in https_open
return self.do_open(httplib.HTTPSConnection, req)
File "/Users/jody/java/jython/Lib/urllib2.py", line 1093, in do_open
raise URLError(err)
urllib2.URLError: <urlopen error (-1, 'SSL exception: Differences between the SSL socket behaviour of cpython vs. jython are explained on the wiki: http://wiki.python.org/jython/NewSocketModule#SSL_Support')>
Hi Jody!
For what its worth, I just followed the directions and they worked for me on os x 10.9.2.
Jared
Interesting, what version of Jython do you have?
(I have had some SSL problems with maven since evaluating Oracle Java 7, perhaps I need an exorisit)
Jody Garnett
On Wed, Apr 2, 2014 at 2:14 PM, jericks [email protected] wrote:
Hi Jody!
For what its worth, I just followed the directions and they worked for me on os x 10.9.2.
Jared
Reply to this email directly or view it on GitHubhttps://github.com/jdeolive/geoscript-py/issues/32#issuecomment-39285021 .
I just tried with Jython 2.5.3 and JDK 1.7 on Mac and was able to run ez_setup.py.
Java version: [Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.7.0_51
Swapping to Oracle JDK 7 did the trick. @jericks were you also using the Oracle JDK?
Hey Jody!
I am using Jython 2.5.3 and Oracle's Java 1.7:
java version "1.7.0_45" Java(TM) SE Runtime Environment (build 1.7.0_45-b18) Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
I am glad you got it installed. Have fun geoscripting!
Jared