pythonz icon indicating copy to clipboard operation
pythonz copied to clipboard

Can't install Jython from a downloaded file

Open nedbat opened this issue 8 years ago • 1 comments

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 avatar Jan 13 '17 10:01 nedbat

@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.

lgw4 avatar Jan 25 '17 03:01 lgw4