Message10008

Author joshfriend
Recipients joshfriend
Date 2015-05-04.13:45:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1430747104.1.0.754123986483.issue2350@psf.upfronthosting.co.za>
In-reply-to
Content
I installed from https://repo1.maven.org/maven2/org/python/jython-installer/2.7.0/jython-installer-2.7.0.jar
using the console/silent options (how pyenv installs it):

    $ java -jar jython-installer-2.7.0.jar -s -d jython
    Performing silent installation
     10 %
     20 %
     30 %
     40 %
     50 %
     60 %
     70 %
    Generating start scripts ...
    Installing pip and setuptools
     90 %
    java.io.IOException: Cannot run program "jython/bin/jython" (in directory "jython/bin"): error=20, Not a directory
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
        at org.python.util.install.ChildProcess.run(ChildProcess.java:272)
        at org.python.util.install.JarInstaller.ensurepip(JarInstaller.java:187)
        at org.python.util.install.JarInstaller.inflate(JarInstaller.java:152)
        at org.python.util.install.ConsoleInstaller.install(ConsoleInstaller.java:66)
        at org.python.util.install.Installation.internalMain(Installation.java:389)
        at org.python.util.install.Installation.main(Installation.java:43)
    Caused by: java.io.IOException: error=20, Not a directory
        at java.lang.UNIXProcess.forkAndExec(Native Method)
        at java.lang.UNIXProcess.<init>(UNIXProcess.java:248)
        at java.lang.ProcessImpl.start(ProcessImpl.java:134)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
        ... 6 more
     100 %
    Congratulations! You successfully installed Jython 2.7.0 to directory /Users/josh/jython.

Using the GUI installer throws a different error:

    Traceback (most recent call last):
      File "/Users/josh/jython/Lib/runpy.py", line 161, in _run_module_as_main
        return _run_code(code, main_globals, None,
      File "/Users/josh/jython/Lib/runpy.py", line 72, in _run_code
        exec code in run_globals
      File "/Users/josh/jython/Lib/ensurepip/__main__.py", line 4, in <module>
        ensurepip._main()
      File "/Users/josh/jython/Lib/ensurepip/__init__.py", line 220, in _main
        bootstrap(
      File "/Users/josh/jython/Lib/ensurepip/__init__.py", line 123, in bootstrap
        _run_pip(args + [p[0] for p in _PROJECTS], additional_paths)
      File "/Users/josh/jython/Lib/ensurepip/__init__.py", line 45, in _run_pip
        import pip
      File "/var/folders/63/g3w008712l1g6k3_5lmt4vl00000gn/T/tmp_NehkC/pip-1.6-py2.py3-none-any.whl/pip/__init__.py", line 10, in <module>
      File "/var/folders/63/g3w008712l1g6k3_5lmt4vl00000gn/T/tmp_NehkC/pip-1.6-py2.py3-none-any.whl/pip/util.py", line 17, in <module>
      File "/var/folders/63/g3w008712l1g6k3_5lmt4vl00000gn/T/tmp_NehkC/pip-1.6-py2.py3-none-any.whl/pip/locations.py", line 109, in <module>
      File "/var/folders/63/g3w008712l1g6k3_5lmt4vl00000gn/T/tmp_NehkC/pip-1.6-py2.py3-none-any.whl/pip/locations.py", line 71, in _get_build_prefix
      File "/var/folders/63/g3w008712l1g6k3_5lmt4vl00000gn/T/tmp_NehkC/pip-1.6-py2.py3-none-any.whl/pip/locations.py", line 66, in __get_username
      File "/Users/josh/jython/Lib/pwd.py", line 60, in getpwuid
        return struct_passwd(entry)
      File "/Users/josh/jython/Lib/pwd.py", line 36, in __new__
        pwd = (newStringOrUnicode(pwd.loginName), newStringOrUnicode(pwd.password), int(pwd.UID),
    NotImplementedError: passwd.pw_passwd unimplemented

Makes me think the cli installer has a race condition somewhere since it fails before the ensurepip module while the GUI installer fails inside ensurepip.

Either way, running `jython -m ensurepip` after the installer has finished works correctly.
History
Date User Action Args
2015-05-04 13:45:04joshfriendsetrecipients: + joshfriend
2015-05-04 13:45:04joshfriendsetmessageid: <1430747104.1.0.754123986483.issue2350@psf.upfronthosting.co.za>
2015-05-04 13:45:04joshfriendlinkissue2350 messages
2015-05-04 13:45:03joshfriendcreate