From: <no...@so...> - 2002-09-18 08:30:27
|
Bugs item #573784, was opened at 2002-06-25 21:44 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=573784&group_id=12867 Category: Library >Group: Fixed in next release >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Nobody/Anonymous (nobody) >Assigned to: Kevin J. Butler (kevinbutler) Summary: popen does not work Initial Comment: 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 ---------------------------------------------------------------------- >Comment By: Finn Bock (bckfnn) Date: 2002-09-18 10:30 Message: Logged In: YES user_id=4201 The os.popen[2,3,4] functions has been added to current CVS by Kevin Butler. ---------------------------------------------------------------------- Comment By: Scott Langley (langles) Date: 2002-06-30 01:52 Message: 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. ---------------------------------------------------------------------- Comment By: Scott Langley (langles) Date: 2002-06-30 01:50 Message: 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. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=573784&group_id=12867 |