Title: Missing suport for os.spawn* and related constant os.P_WAIT
Type: behaviour Severity: normal
Components: Library Versions: Jython 2.2
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: brosner, fwierzbicki, ok4rm, zyasoft
Priority: low Keywords:

Created on 2008-08-06.08:54:03 by ok4rm, last changed 2015-01-28.02:56:17 by zyasoft.

File name Uploaded Description Edit Remove ok4rm, 2008-08-06.08:54:03 A piece of program to demonstrate the bug
msg3407 (view) Author: Jindra Vavruska (ok4rm) Date: 2008-08-06.08:54:03
When trying to call spawnv, it returns this error at line 12 (see
enclosed file):

AttributeError: class 'org.python.modules.os' has no attribute 'P_WAIT'

sys.version returns '2.2.1'
msg3408 (view) Author: Jindra Vavruska (ok4rm) Date: 2008-08-07.17:14:19
only after another test, in which I replaced P_WAIT by an integer 
constant (e.g. 0) I realized how stupid I was because jython has no 
spawnXY functions.
I guess you will want to discard this issue.
Rgds, Jindra
msg3540 (view) Author: Brian Rosner (brosner) Date: 2008-09-13.22:02:01
Here is a list of objects that exists in CPython on Windows, but not in 
Jython on Windows.

'P_OVERLAY', 'P_WAIT', 'TMP_MAX', '__builtins__', '_copy_reg', 
'_execvpe', '_exists', '_get_exports_list', '_make_stat_result', 
'_make_statvfs_result', '_pickle_stat_result', '_pickle_statvfs_result', 
'abort', 'dup', 'dup2', 'execl', 'execle', 'execlp', 'execlpe', 'execv', 
'execve', 'execvp', 'execvpe', 'fstat', 'fsync', 'getcwdu', 'pipe', 
'spawnl', 'spawnle', 'spawnv', 'spawnve', 'startfile', 
'stat_float_times', 'statvfs_result', 'tempnam', 'times', 'tmpfile', 
'tmpnam', 'umask', 'waitpid']
msg4194 (view) Author: Jim Baker (zyasoft) Date: 2009-03-08.06:53:31
As a workaround, would it be possible to support the spawn family of
functions completely with the recipes provided in ?
msg9456 (view) Author: Jim Baker (zyasoft) Date: 2015-01-28.02:56:17
Should use JNR Posix support here -
Date User Action Args
2015-01-28 02:56:17zyasoftsetmessages: + msg9456
2013-02-19 18:28:14fwierzbickisetnosy: + fwierzbicki
versions: + Jython 2.2, - 2.2.2
2009-03-14 14:10:42fwierzbickisetpriority: low
versions: + 2.2.2, - 2.2.1rc1
2009-03-08 06:53:32zyasoftsetnosy: + zyasoft
messages: + msg4194
title: Missing constant os.P_WAIT -> Missing suport for os.spawn* and related constant os.P_WAIT
2008-09-13 22:02:01brosnersetnosy: + brosner
messages: + msg3540
2008-08-07 17:14:20ok4rmsetmessages: + msg3408
2008-08-06 08:54:03ok4rmcreate