[execnet-dev] trouble with jython via execnet

Mohit Jaggi mohitjaggi at gmail.com
Tue Jun 10 00:17:59 CEST 2014


python=2.7
jython=2.5.3
execnet=1.0.9 (Also tried 1.1, 1.2)
OS=ubuntu and mac mavericks, both have the problem

I am trying to integrate jython and python code with execnet. The following
command never finishes

 python -c 'import execnet ;gateway =
execnet.makegateway("popen//python=jython"); '

If I change jython to python on the popen string, the command finishes.

The JVM appears to be blocked waiting for a message:

Thread 3335: (state = IN_NATIVE)

 - java.io.FileInputStream.readBytes(byte[], int, int) @bci=0 (Interpreted
frame)

 - java.io.FileInputStream.read(byte[], int, int) @bci=16, line=272
(Interpreted frame)

 - java.io.BufferedInputStream.fill() @bci=175, line=235 (Interpreted frame)

 - java.io.BufferedInputStream.read1(byte[], int, int) @bci=44, line=275
(Interpreted frame)

 - java.io.BufferedInputStream.read(byte[], int, int) @bci=49, line=334
(Interpreted frame)

 -
org.python.core.io.StreamIO$InternalReadableByteChannel.read(java.nio.ByteBuffer)
@bci=65, line=313 (Interpreted frame)

 - org.python.core.io.StreamIO.readinto(java.nio.ByteBuffer) @bci=13,
line=123 (Interpreted frame)

 - org.python.core.io.RawIOBase.readinto(java.nio.ByteBuffer[]) @bci=41,
line=111 (Interpreted frame)

 - org.python.core.io.BufferedReader.readinto(java.nio.ByteBuffer)
@bci=103, line=53 (Interpreted frame)

 - org.python.core.io.BufferedReader.read1(java.nio.ByteBuffer) @bci=50,
line=106 (Interpreted frame)

 - org.python.core.io.TextIOBase.readChunk() @bci=48, line=241 (Interpreted
frame)

 - org.python.core.io.BinaryIOWrapper.readline(int) @bci=143, line=101
(Interpreted frame)

 - org.python.core.PyFile.file_readline(int) @bci=13, line=265 (Interpreted
frame)

 - org.python.core.PyFile$file_readline_exposer.__call__() @bci=9
(Interpreted frame)

 - org.python.core.PyObject.__call__(org.python.core.ThreadState) @bci=1,
line=375 (Interpreted frame)

 - org.python.pycode._pyx0.f$0(org.python.core.PyFrame,
org.python.core.ThreadState) @bci=51, line=1 (Interpreted frame)

 - org.python.pycode._pyx0.call_function(int, org.python.core.PyFrame,
org.python.core.ThreadState) @bci=24 (Interpreted frame)

 - org.python.core.PyTableCode.call(org.python.core.ThreadState,
org.python.core.PyFrame, org.python.core.PyObject) @bci=129, line=165
(Interpreted frame)

 - org.python.core.PyCode.call(org.python.core.ThreadState,
org.python.core.PyFrame) @bci=4, line=18 (Interpreted frame)

 - org.python.core.Py.runCode(org.python.core.PyCode,
org.python.core.PyObject, org.python.core.PyObject) @bci=97, line=1275
(Interpreted frame)

 - org.python.core.Py.exec(org.python.core.PyObject,
org.python.core.PyObject, org.python.core.PyObject) @bci=226, line=1319
(Interpreted frame)

 - org.python.util.PythonInterpreter.exec(java.lang.String) @bci=22,
line=206 (Interpreted frame)

 - org.python.util.jython.run(java.lang.String[]) @bci=844, line=280
(Interpreted frame)
 - org.python.util.jython.main(java.lang.String[]) @bci=5, line=129
(Interpreted frame)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/execnet-dev/attachments/20140609/429691a8/attachment.html>


More information about the execnet-dev mailing list