Message12232
Thanks. That's interesting. By which I mean "I was wrong".
In 2.7.1, the exact line at org.python.modules.posix.PosixModule.uname(PosixModule.java:1173) is where we wrap a version string as a Python str/bytes object, and it must contain some character with a code > 255, where all we expect is digits and dots.
What does this (at a shell/command prompt) give you?
cmd.exe /C ver
This is what we use to obtain the version string. But clearly we are not robust enough against possible variation. What does this give you at the Jython prompt?
>>> import sys
>>> sys.getSystemVersionString()
It should return the problem string. We can probably fix this by scanning for digits and dots, rather than looking for the word "version", as we are, but I'm curious what has actually happened.
Sorry, 2.7.2 is not out yet, even as a beta. On the plus side, it means we could fix this for 2.7.2. You could download and build from https://hg.python.org/jython or https://github.com/jythontools/jython (it builds with Apache Ant), but I don't expect it to fix the bug. It would be useful if you were able to do that with a version where I've treated the bug, as I can't reproduce the problem here. |
|
Date |
User |
Action |
Args |
2018-12-31 18:42:35 | jeff.allen | set | messageid: <1546281755.74.0.0997450221312.issue2726@roundup.psfhosted.org> |
2018-12-31 18:42:35 | jeff.allen | set | recipients:
+ jeff.allen, k870611 |
2018-12-31 18:42:35 | jeff.allen | link | issue2726 messages |
2018-12-31 18:42:35 | jeff.allen | create | |
|