Message8277
I am trying the Jython 2.7 beta 1 standalone downloaded from:
http://search.maven.org/remotecontent?filepath=org/python/jython-standalone/2.7-b1/jython-standalone-2.7-b1.jar
but found some issues running it on Windows 8 platform. The same commands works fine on Linux.
Below are the test results on Linux and Windows w/o the workaround of adding "-Dpython.concole=org.python.util.InteractiveConsole".
The stack trace is also attached.
The non working basic command like aa="aa" makes Jython 2.7 beta 1 not usable on multi-byte characters on Windows platform.
===================
jython 2.7 beta 1 standalone:
Linux:
1. aa="aa" works.
2. sys.stdin.readline() works.
3. CTRL +C works.
Windows:
1. aa="aa" hangs. CTRL + D + enter to exit
2. sys.stdin.readline() hangs. CTRL + D or CTRL + C not working. need to kill the java process
3. CTRL + C shows a heart. Hit "enter" to exit with this message:
LookupError: unknown encoding 'ms936'
jython 2.7 beta 1 standalone + -Dpython.console=org.python.util.InteractiveConsole:
Linux:
1. aa="aa" works
2. sys.stdin.readline() works.
3. CTRL + C works.
Windows:
1. aa="aa" hangs. CTRL + D + enter to exit
2. sys.stdin.readline() works.
3. CTRL + C works.
=============================
The stack trace when aa="aa" hangs looks like this:
"main" prio=6 tid=0x011ab800 nid=0x4d8 runnable [0x011ff000]
java.lang.Thread.State: RUNNABLE
at java.io.FileInputStream.readBytes(Native Method)
at java.io.FileInputStream.read(FileInputStream.java:272)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:273)
at java.io.BufferedInputStream.read(BufferedInputStream.java:334)
- locked <0x2a3f0d00> (a java.io.BufferedInputStream)
at java.nio.channels.Channels$ReadableByteChannelImpl.read(Channels.java:385)
- locked <0x2a550550> (a java.lang.Object)
at org.python.core.io.StreamIO.readinto(StreamIO.java:123)
at org.python.core.io.BufferedReader.peek(BufferedReader.java:86)
at org.python.core.io.BufferedReader.read1(BufferedReader.java:100)
at org.python.core.io.TextIOBase.readChunk(TextIOBase.java:263)
at org.python.core.io.TextIOWrapper.readline(TextIOWrapper.java:243)
at org.python.core.PyFile.file_readline(PyFile.java:266)
- locked <0x2a524558> (a org.python.core.PyFile)
at org.python.core.PyFile.readline(PyFile.java:274)
at org.python.core.__builtin__.readline(__builtin__.java:1003)
at org.python.core.__builtin__.raw_input(__builtin__.java:1019)
at org.python.core.__builtin__.raw_input(__builtin__.java:1035)
at org.python.util.InteractiveConsole.raw_input(InteractiveConsole.java:126)
at org.python.util.InteractiveConsole.interact(InteractiveConsole.java:81)
at org.python.util.jython.run(jython.java:378)
at org.python.util.jython.main(jython.java:137) |
|
Date |
User |
Action |
Args |
2014-04-08 17:06:37 | rpan | set | recipients:
+ rpan |
2014-04-08 17:06:37 | rpan | set | messageid: <1396976797.83.0.794421548236.issue2123@psf.upfronthosting.co.za> |
2014-04-08 17:06:37 | rpan | link | issue2123 messages |
2014-04-08 17:06:37 | rpan | create | |
|