Issue2600

classification
Title: subprocess doesn't have _args_from_interpreter_flags (blocks support for multiprocessing)
Type: behaviour Severity: normal
Components: Versions: Jython 2.7
Milestone: Jython 2.7.2
process
Status: pending Resolution: fixed
Dependencies: Superseder:
Assigned To: stefan.richthofer Nosy List: stefan.richthofer, zyasoft
Priority: normal Keywords:

Created on 2017-06-28.16:10:38 by stefan.richthofer, last changed 2017-07-10.22:35:08 by stefan.richthofer.

Messages
msg11450 (view) Author: Stefan Richthofer (stefan.richthofer) Date: 2017-06-28.16:10:36
I stumbled upon this blogpost (http://forum.imagej.net/t/jupyter-notebook-for-imagej/5421/16) that points out missing support for multiprocessing. After some investigation (one has to add '/usr/lib/python2.7/lib-dynload' and '/usr/lib/python2.7' to sys.path), I found that Jython+JyNI is actually capable of importing CPython's _multiprocessing.so.
However, "import multiprocessing" fails with
ImportError: cannot import name _args_from_interpreter_flags

I have not looked what it takes to implement it in Jython yet.
msg11473 (view) Author: Stefan Richthofer (stefan.richthofer) Date: 2017-07-10.22:35:07
Fixed as of https://hg.python.org/jython/rev/1eab34823d61 by adding subprocess._args_from_interpreter_flags from CPython 2.7.13.

multiprocessing does not yet work with JyNI though, but due to different issues.
History
Date User Action Args
2017-07-10 22:35:08stefan.richthofersetstatus: open -> pending
assignee: stefan.richthofer
resolution: fixed
messages: + msg11473
2017-06-28 16:10:38stefan.richthofercreate