Message12230
The result I get of java.net.InetAddress.getLocalHost().getHostName().encode('utf-8')
C:\Users\Huang>jython
Jython 2.7.1 (default:0df7adb1b397, Jun 30 2017, 19:02:43)
[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'
>>>
and I have same error when I run os.uname()
C:\Users\Huang>jython
Jython 2.7.1 (default:0df7adb1b397, Jun 30 2017, 19:02:43)
[Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.8.0_162
Type "help", "copyright", "credits" or "license" for more information.
>>> 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:647)
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
>>>
can you provide link for me to download 2.7.2 version ? I can find it on Google. Thx |
|
Date |
User |
Action |
Args |
2018-12-31 15:34:58 | k870611 | set | messageid: <1546270498.57.0.368765481232.issue2726@roundup.psfhosted.org> |
2018-12-31 15:34:58 | k870611 | set | recipients:
+ k870611, jeff.allen |
2018-12-31 15:34:58 | k870611 | link | issue2726 messages |
2018-12-31 15:34:58 | k870611 | create | |
|