Issue1519

classification
Title: Issues in jyhon mudule (Linux OS)
Type: Severity: urgent
Components: Versions: Jython 2.1
Milestone:
process
Status: closed Resolution: invalid
Dependencies: Superseder:
Assigned To: Nosy List: jayasheela, pjenvey
Priority: Keywords:

Created on 2009-12-08.07:56:38 by jayasheela, last changed 2010-01-09.06:42:01 by pjenvey.

Messages
msg5360 (view) Author: jayasheela (jayasheela) Date: 2009-12-08.07:56:38
Hi All,
I am new to Jython.I am trying to execute following command in  Linux 
OS it is throwing some error.
Following is the command

[bin]$ ./jython.sh
OracleDI: Starting Jython ...
Jython 2.1 on java1.6.0_14 (JIT: null)
>>> import os
>>> os.system("ls -l")
Traceback (innermost last):
  File "<console>", line 1, in ?
AttributeError: class 'org.python.modules.os' has no attribute 'system'

Can some one help to sove this issue.

Thanks,
msg5421 (view) Author: Philip Jenvey (pjenvey) Date: 2010-01-09.06:42:00
Jython 2.1 is really old now, we don't really support it. The popen or javashell modules may work (I'm not sure), I'd recommend upgrading to the latest version where os.system is supported just fine
History
Date User Action Args
2010-01-09 06:42:01pjenveysetstatus: open -> closed
resolution: invalid
messages: + msg5421
nosy: + pjenvey
2009-12-08 07:56:38jayasheelacreate