Message12238
Thanks for your suggestion, build is work!!!! But os.uname() and platform still not work now (just inform, i believe it will be solve in next formal release. Happy new year ~~~~~~~~)
C:\Jython\jython-master\dist\bin>jython
Jython 2.7.2a1+ (, ?@?? 1 2019, 21:29:26)
[Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.8.0_162
Type "help", "copyright", "credits" or "license" for more information.
>>> import java
>>> java.net.InetAddress.getLocalHost().getHostName().encode('utf-8')
'DESKTOP-VGULG8Q'
>>>
>>> import sys
>>> sys.getSystemVersionString()
u'Microsoft Windows [\u7248\u672c 10.0.17134.472]'
>>>
>>> import os
>>> os.uname()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
at org.python.core.PyString.<init>(PyString.java:57)
at org.python.core.PyString.<init>(PyString.java:70)
at org.python.core.PyString.<init>(PyString.java:74)
at org.python.core.Py.newString(Py.java:646)
at org.python.modules.posix.PosixModule.uname(PosixModule.java:1173)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: Cannot create PyString with non-byte value
>>> import platform
>>> platform.system()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Jython\jython-master\dist\Lib\platform.py", line 1396, in system
return uname()[0]
File "C:\Jython\jython-master\dist\Lib\platform.py", line 1213, in uname
machine = os.uname()[4]
at org.python.core.PyString.<init>(PyString.java:57)
at org.python.core.PyString.<init>(PyString.java:70)
at org.python.core.PyString.<init>(PyString.java:74)
at org.python.core.Py.newString(Py.java:646)
at org.python.modules.posix.PosixModule.uname(PosixModule.java:1173)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: Cannot create PyString with non-byte value
>>> |
|
Date |
User |
Action |
Args |
2019-01-01 13:36:25 | k870611 | set | messageid: <1546349785.22.0.18533102795.issue2726@roundup.psfhosted.org> |
2019-01-01 13:36:25 | k870611 | set | recipients:
+ k870611, jeff.allen |
2019-01-01 13:36:25 | k870611 | link | issue2726 messages |
2019-01-01 13:36:25 | k870611 | create | |
|