Cannot Install Sphinx1.3.3 Into Jython2.7.0

David Charles <[email protected]> Wed, 6 Jan 2016 10:51:19 -0700
Newsgroups gmane.comp.lang.jython.user
Message-ID <CAJHoYyLDDZ_fYjdcxtJwQfWouUp1+Q6RWp+7pkrkH9XY8oYxmA@mail.gmail.com>
As the subject line indicates, I am unable to install Sphinx1.3.3 into
Jython2.7.0.  I am highly motivated to get this fixed.  So, even if I can't
get a complete solution, I welcome warmly even mere 'leads' on how to fix
this myself.  I am on bended knee before the Jython Wizards.

My troubles seem related to this issue:

* http://bugs.jython.org/issue2349

Here are some facts about the machine:

$ uname -a
Linux mystery 3.2.0-77-generic #112-Ubuntu SMP Tue Feb 10 15:22:22 UTC 2015
x86_64 x86_64 x86_64 GNU/Linux

And, here is the procedure I am using, along with (most of) the output.

* Notice the IOException that occurs during the installation of Jython.
* Also notice t he AttributeError that occurs just before the installation
of Sphinx terminates

Here we go:

$ export JAVA_HOME=/usr/local/jdk1.8.0_66
$ export PATH=$JAVA_HOME/bin:$PATH
$ java -jar jython-installer-2.7.0.jar -s -d jython2.7.0
Performing silent installation
 10 %
 20 %
 30 %
 40 %
 50 %
 60 %
 70 %
Generating start scripts ...
Installing pip and setuptools
 90 %
java.io.IOException: Cannot run program "jython2.7.0/bin/jython" (in
directory "jython2.7.0/bin"): error=2, No such file or 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=2, No such file or 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
/home/c11319/jython2.7.0.
$ export JYTHON_HOME=`pwd`/jython2.7.0
$ cd Sphinx-1.3.3
$ JYTHON_HOME/bin/jython setup.py install
.........................
...lots of output here...
.........................
Installing easy_install script to /home/c11319/jython2.7.0/bin
Traceback (most recent call last):
  File "setup.py", line 173, in <module>
    setup(
  File "/home/c11319/jython2.7.0/Lib/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/home/c11319/jython2.7.0/Lib/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/home/c11319/jython2.7.0/Lib/distutils/dist.py", line 953, in
run_commands
    self.run_command(cmd)
  File "/home/c11319/jython2.7.0/Lib/distutils/dist.py", line 972, in
run_command
    cmd_obj.run()
  File
"/home/c11319/Sphinx-1.3.3/setuptools-7.0-py2.7.egg/setuptools/command/install.py",
line 67, in run
  File
"/home/c11319/Sphinx-1.3.3/setuptools-7.0-py2.7.egg/setuptools/command/install.py",
line 117, in do_egg_install
  File
"/home/c11319/Sphinx-1.3.3/setuptools-7.0-py2.7.egg/setuptools/command/easy_install.py",
line 370, in run
  File
"/home/c11319/Sphinx-1.3.3/setuptools-7.0-py2.7.egg/setuptools/command/easy_install.py",
line 594, in easy_install
  File
"/home/c11319/Sphinx-1.3.3/setuptools-7.0-py2.7.egg/setuptools/command/easy_install.py",
line 645, in install_item
  File
"/home/c11319/Sphinx-1.3.3/setuptools-7.0-py2.7.egg/setuptools/command/easy_install.py",
line 670, in process_distribution
  File
"/home/c11319/Sphinx-1.3.3/setuptools-7.0-py2.7.egg/setuptools/command/easy_install.py",
line 548, in install_egg_scripts
  File
"/home/c11319/Sphinx-1.3.3/setuptools-7.0-py2.7.egg/setuptools/command/easy_install.py",
line 747, in install_wrapper_scripts
  File
"/home/c11319/Sphinx-1.3.3/setuptools-7.0-py2.7.egg/setuptools/command/easy_install.py",
line 783, in write_script
  File
"/home/c11319/Sphinx-1.3.3/setuptools-7.0-py2.7.egg/setuptools/command/easy_install.py",
line 2099, in current_umask
AttributeError: 'module' object has no attribute 'umask'

Many thanks,
David

------------------------------------------------------------------------------

_______________________________________________
Jython-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jython-users