Issue573784
Created on 2002-06-25.19:44:31 by anonymous, last changed 2002-09-18.08:30:26 by bckfnn.
Messages | |||
---|---|---|---|
msg671 (view) | Author: Nobody/Anonymous (nobody) | Date: 2002-06-25.19:44:31 | |
os.popen, os.popen2, os.popen3, os.popen4 do not work. Error response is: Traceback (innermost last): File "uniquefile-popen.py", line 20, in ? AttributeError: class 'org.python.modules.os' has no attribute 'popen' importing popen and using popen.popen[234] results in pipe being undefindedd in modules.os Running under Linux - Mandrake 8.2 using j2sdk1.3.1-02b-FCS (blackdown) with jython 2.1 |
|||
msg672 (view) | Author: Scott Langley (langles) | Date: 2002-06-29.23:50:45 | |
Logged In: YES user_id=375426 I was wondering the same thing, until I found this: http://www.jython.org/cgi-bin/faqw.py?req=show&file=faq03.009.htp """ Jython FAQ Entry 3.9. The Jython's os module is missing some functions, why? Python's and Jython's os modules differ necessarily because of differences Java imposes on natvie system access. For example, Java does not have a chdir equivalent, so it does not exist in Jython's os. There is an alternative os module that does provide additional functionality, and it is the jnios module found at: http://sourceforge.net/projects/jnios The jnios module replaces the default os module with a Java/JNI implementation of Python's os and posix modules. """ I have no idea whether you can get jnios to work with a modern jython 2.1, however. |
|||
msg673 (view) | Author: Scott Langley (langles) | Date: 2002-06-29.23:52:13 | |
Logged In: YES user_id=375426 I was wondering the same thing, until I found this: http://www.jython.org/cgi-bin/faqw.py?req=show&file=faq03.009.htp """ Jython FAQ Entry 3.9. The Jython's os module is missing some functions, why? Python's and Jython's os modules differ necessarily because of differences Java imposes on natvie system access. For example, Java does not have a chdir equivalent, so it does not exist in Jython's os. There is an alternative os module that does provide additional functionality, and it is the jnios module found at: http://sourceforge.net/projects/jnios The jnios module replaces the default os module with a Java/JNI implementation of Python's os and posix modules. """ I have no idea whether you can get jnios to work with a modern jython 2.1, however. |
|||
msg674 (view) | Author: Finn Bock (bckfnn) | Date: 2002-09-18.08:30:26 | |
Logged In: YES user_id=4201 The os.popen[2,3,4] functions has been added to current CVS by Kevin Butler. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2002-06-25 19:44:31 | anonymous | create |
Supported by Python Software Foundation,
Powered by Roundup