pythonz
pythonz copied to clipboard
Can't install Jython from a downloaded file
Jython has a 2.7.1b3, which I didn't know about because it isn't mentioned anywhere on the jython.org site. So I downloaded the file mentioned in Frank's blog, and tried it:
$ pythonz install -t jython --file=~/Downloads/jython-installer-2.7.1b3.jar 2.7.1b3
ERROR: invalid file specified: ~/Downloads/jython-installer-2.7.1b3.jar
Traceback (most recent call last):
File "/usr/local/pythonz/scripts/pythonz/commands/install.py", line 103, in run_command
p = PythonInstaller.get_installer(arg, options)
File "/usr/local/pythonz/scripts/pythonz/installer/pythoninstaller.py", line 39, in get_installer
return JythonInstaller(version, options)
File "/usr/local/pythonz/scripts/pythonz/installer/pythoninstaller.py", line 484, in __init__
super(JythonInstaller, self).__init__(version, options)
File "/usr/local/pythonz/scripts/pythonz/installer/pythoninstaller.py", line 53, in __init__
raise RuntimeError
RuntimeError
@nedbat Confirmed. I'll try to fix this. However, as a work around, I was able to install Jython 2.7.1b3 without the --file option:
$ pythonz install -t jython 2.7.1b3
WARNING: Unsupported Python version: `2.7.1b3`, trying with the following URL anyway: http://search.maven.org/remotecontent?filepath=org/python/jython-installer/2.7.1b3/jython-installer-2.7.1b3.jar
Downloading remotecontent as /Users/lgw4/.pythonz/dists/jython-installer-2.7.1b3.jar
########################################################################## 100%
This could take a while. You can run the following command on another shell to track the status:
tail -f /Users/lgw4/.pythonz/log/build.log
Installing Jython-2.7.1b3 into /Users/lgw4/.pythonz/pythons/Jython-2.7.1b3
Installed Jython-2.7.1b3 successfully.