Issue2400
Created on 2015-09-20.09:11:19 by pekka.klarck, last changed 2015-11-10.16:29:57 by zyasoft.
msg10266 (view) |
Author: Pekka Klärck (pekka.klarck) |
Date: 2015-09-20.09:11:17 |
|
I'm installing Jython 2.7 to a fresh Linux machine with Oracle Java 8. Installation went fine otherwise, but installing pip failed. I got the following traceback on the console where I started the installer:
Traceback (most recent call last):
File "/home/peke/Prog/jython2.7.0/Lib/runpy.py", line 161, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/peke/Prog/jython2.7.0/Lib/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/peke/Prog/jython2.7.0/Lib/ensurepip/__main__.py", line 4, in <module>
ensurepip._main()
File "/home/peke/Prog/jython2.7.0/Lib/ensurepip/__init__.py", line 220, in _main
bootstrap(
File "/home/peke/Prog/jython2.7.0/Lib/ensurepip/__init__.py", line 123, in bootstrap
_run_pip(args + [p[0] for p in _PROJECTS], additional_paths)
File "/home/peke/Prog/jython2.7.0/Lib/ensurepip/__init__.py", line 45, in _run_pip
import pip
File "/tmp/tmpqRQNxw/pip-1.6-py2.py3-none-any.whl/pip/__init__.py", line 10, in <module>
File "/tmp/tmpqRQNxw/pip-1.6-py2.py3-none-any.whl/pip/util.py", line 17, in <module>
File "/tmp/tmpqRQNxw/pip-1.6-py2.py3-none-any.whl/pip/locations.py", line 109, in <module>
File "/tmp/tmpqRQNxw/pip-1.6-py2.py3-none-any.whl/pip/locations.py", line 71, in _get_build_prefix
File "/tmp/tmpqRQNxw/pip-1.6-py2.py3-none-any.whl/pip/locations.py", line 66, in __get_username
File "/home/peke/Prog/jython2.7.0/Lib/pwd.py", line 60, in getpwuid
return struct_passwd(entry)
File "/home/peke/Prog/jython2.7.0/Lib/pwd.py", line 36, in __new__
pwd = (newStringOrUnicode(pwd.loginName), newStringOrUnicode(pwd.password), int(pwd.UID),
NotImplementedError: passwd.pw_passwd unimplemented
|
msg10267 (view) |
Author: Pekka Klärck (pekka.klarck) |
Date: 2015-09-20.09:43:25 |
|
After searching for more information, I found closed issue #2333 which was fixed by setting JAVA_HOME as described in #2346. I was surprised because #2346 is about badly set environment variables and I didn't have any JAVA* related environment variables set at all. I tried setting JAVA_HOME but that didn't help.
I also found open issue #2350 with a workaround to run `jython -m ensurepip` after installation. That didn't work for me either. I got the same traceback as I got when installing Jython itself.
|
msg10268 (view) |
Author: Pekka Klärck (pekka.klarck) |
Date: 2015-09-20.09:49:50 |
|
Another workaround in #2350 was using the silent installation. I tested that with
java -jar ~/Downloads/jython-installer-2.7.0.jar -s -d ~/jython
but got same traceback again.
|
msg10269 (view) |
Author: Pekka Klärck (pekka.klarck) |
Date: 2015-09-20.09:57:35 |
|
Little more information about my system:
1. Linux Mint 17.2. Fresh install.
2. Java 1.8
$ java -version
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)
3. All other Java versions ought to be removed.
$ update-java-alternatives --list
java-8-oracle 1 /usr/lib/jvm/java-8-oracle
4. No Java related environment variables set.
$ env | grep -i JAVA | wc -l
0
|
msg10311 (view) |
Author: Darjus Loktevic (darjus) |
Date: 2015-10-07.09:30:03 |
|
Hey Pekka,
Can't seem to reproduce your issue, but I'm on Mac.
Can you run this code and paste output here?
from os import _posix_impl
pwuid = _posix_impl.getpwuid(1)
print pwuid
dir(pwuid)
pwuid.password
Thanks!
|
msg10316 (view) |
Author: Pekka Klärck (pekka.klarck) |
Date: 2015-10-07.10:40:00 |
|
Thanks for looking at this Darjus. I tested that `os._posix_impl.getpwuid(1)` returns `None`. Anything else I should look at?
|
msg10327 (view) |
Author: Darjus Loktevic (darjus) |
Date: 2015-10-08.11:20:20 |
|
Made me think that http://bugs.jython.org/issue2405 may be related.
|
msg10334 (view) |
Author: Pekka Klärck (pekka.klarck) |
Date: 2015-10-08.16:57:24 |
|
#2405 looks interesting. Mint 17.2 that I use is based on Ubuntu 14.04 and I'm using Java 8. Should I try with Java 7 and see does that work?
|
msg10407 (view) |
Author: Jim Baker (zyasoft) |
Date: 2015-10-29.22:29:59 |
|
I'm pretty sure this is now fixed, as of https://hg.python.org/jython/rev/b256a80cbbc5 - but definitely we will reopen if I'm wrong. Please try out from trunk, or from next week's RC.
|
msg10416 (view) |
Author: Pekka Klärck (pekka.klarck) |
Date: 2015-10-30.06:05:07 |
|
Cool, I'll definitely test RC once its out.
|
|
Date |
User |
Action |
Args |
2015-11-10 16:29:57 | zyasoft | set | status: pending -> closed |
2015-10-30 06:05:07 | pekka.klarck | set | messages:
+ msg10416 |
2015-10-29 22:29:59 | zyasoft | set | status: open -> pending resolution: fixed messages:
+ msg10407 nosy:
+ zyasoft |
2015-10-08 16:57:24 | pekka.klarck | set | messages:
+ msg10334 |
2015-10-08 11:20:20 | darjus | set | assignee: darjus messages:
+ msg10327 |
2015-10-07 10:40:00 | pekka.klarck | set | messages:
+ msg10316 |
2015-10-07 09:30:03 | darjus | set | nosy:
+ darjus milestone: Jython 2.7.0 messages:
+ msg10311 versions:
+ Jython 2.7 |
2015-09-20 09:57:36 | pekka.klarck | set | messages:
+ msg10269 |
2015-09-20 09:49:50 | pekka.klarck | set | messages:
+ msg10268 |
2015-09-20 09:43:25 | pekka.klarck | set | messages:
+ msg10267 |
2015-09-20 09:11:19 | pekka.klarck | create | |
|