Message10001
> ensurepip is run by default when you install Jython 2.7.0 with the installer.
Good to know, thanks for the info.
Unfortunately it seems that `umask` is still unavailable on OSX (10.10.3) for me:
Jython 2.7.0 (default:9987c746f838, Apr 29 2015, 02:25:11)
[Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.8.0_40
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.umask
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'umask'
However, on Ubuntu trusty 64 bit:
Jython 2.7.0 (default:9987c746f838, Apr 29 2015, 02:25:11)
[OpenJDK 64-Bit Server VM (Oracle Corporation)] on java1.7.0_79
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.umask
<java function umask 0x2>
I installed from https://repo1.maven.org/maven2/org/python/jython-installer/2.7.0/jython-installer-2.7.0.jar
as follows:
$ 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. |
|
Date |
User |
Action |
Args |
2015-05-04 03:21:45 | joshfriend | set | messageid: <1430709705.77.0.431502911123.issue2349@psf.upfronthosting.co.za> |
2015-05-04 03:21:45 | joshfriend | set | recipients:
+ joshfriend, zyasoft |
2015-05-04 03:21:45 | joshfriend | link | issue2349 messages |
2015-05-04 03:21:45 | joshfriend | create | |
|