|
From: David C. <dav...@gm...> - 2016-01-06 21:25:46
|
I have made a little progress: The IOException goes away if I pass a full,
absolute path to -d
Next problem, my installation of Jython 2.7.1b2 fails with a different
error:
$ java -jar jython-installer-2.7.1b2.jar -s -d $JYTHON_HOME
Performing silent installation
10 %
20 %
30 %
40 %
50 %
60 %
70 %
Generating start scripts ...
Installing pip and setuptools
90 %
...lots of output...
[Loaded jnr.posix.JavaPasswd from file:/home/me/jython2.7.1b2/jython.jar]
Traceback (most recent call last):
File "/home/c11319/jython2.7.1b2/Lib/runpy.py", line 161, in
_run_module_as_main
return _run_code(code, main_globals, None,
File "/home/c11319/jython2.7.1b2/Lib/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/c11319/jython2.7.1b2/Lib/ensurepip/__main__.py", line 4, in
<module>
ensurepip._main()
File "/home/c11319/jython2.7.1b2/Lib/ensurepip/__init__.py", line 220, in
_main
bootstrap(
File "/home/c11319/jython2.7.1b2/Lib/ensurepip/__init__.py", line 123, in
bootstrap
_run_pip(args + [p[0] for p in _PROJECTS], additional_paths)
File "/home/c11319/jython2.7.1b2/Lib/ensurepip/__init__.py", line 45, in
_run_pip
import pip
File "/tmp/tmpvmUCiQ/pip-1.6-py2.py3-none-any.whl/pip/__init__.py", line
10, in <module>
File "/tmp/tmpvmUCiQ/pip-1.6-py2.py3-none-any.whl/pip/util.py", line 17,
in <module>
File "/tmp/tmpvmUCiQ/pip-1.6-py2.py3-none-any.whl/pip/locations.py", line
109, in <module>
File "/tmp/tmpvmUCiQ/pip-1.6-py2.py3-none-any.whl/pip/locations.py", line
71, in _get_build_prefix
File "/tmp/tmpvmUCiQ/pip-1.6-py2.py3-none-any.whl/pip/locations.py", line
66, in __get_username
File "/home/c11319/jython2.7.1b2/Lib/pwd.py", line 60, in getpwuid
return struct_passwd(entry)
File "/home/c11319/jython2.7.1b2/Lib/pwd.py", line 36, in __new__
pwd = (newStringOrUnicode(pwd.loginName),
newStringOrUnicode(pwd.password), int(pwd.UID),
NotImplementedError: passwd.pw_passwd unimplemented
100 %
Congratulations! You successfully installed Jython 2.7.1b2 to directory
/home/c11319/jython2.7.1b2.
This appears to be the same issue reported here:
* http://bugs.jython.org/issue2333
Try as I might, I cannot get past this. Moreover, I do not understand the
error, as I do not see any attempt to access passwd.pw_passwd in the
offending line (pwd.py:36). Perhaps that is a clue?
This is my environment:
$ export | grep -e JAVA -e JYTHON
declare -x JAVA_ENCODING="UTF-8"
declare -x JAVA_HOME="/usr/local/jdk1.8.0_66"
declare -x JAVA_MEM="512m"
declare -x JAVA_OPTS="-verbose"
declare -x JAVA_STACK="-Xss1024k"
declare -x JYTHON_HOME="/home/me/jython2.7.1b2"
declare -x JYTHON_OPTS="-v"
As an aside: I thought it strange that I had to put '-Xss' into JAVA_STACK,
but I did not have to put '-Xmx' into JAVA_MEM. Without the '-Xss' prefix
in JAVA_STACK, my 1024k was interpreted to be a main class.
David
On Wed, Jan 6, 2016 at 1:03 PM, Quanah Gibson-Mount <qu...@zi...>
wrote:
> --On Wednesday, January 06, 2016 12:45 PM -0700 David Charles <
> dav...@gm...> wrote:
>
>
>>
>> I just tried it. Jython2.7.1b2+Sphinx-1.3.3 appears to fail in
>> precisely the same ways.
>>
>
> Damn, it was worth a shot. :/
>
> I notice the original bug <http://bugs.jython.org/issue2349> notes other
> env variables may require being set outside of JAVA_HOME (comment#4). Have
> you looked at setting them in addition to JAVA_HOME?
>
>
> --Quanah
>
>
> --
>
> Quanah Gibson-Mount
> Platform Architect
> Zimbra, Inc.
> --------------------
> Zimbra :: the leader in open source messaging and collaboration
>
|