Message12230

Author k870611
Recipients jeff.allen, k870611
Date 2018-12-31.15:34:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1546270498.57.0.368765481232.issue2726@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2018-12-31 15:34:58k870611setmessageid: <1546270498.57.0.368765481232.issue2726@roundup.psfhosted.org>
2018-12-31 15:34:58k870611setrecipients: + k870611, jeff.allen
2018-12-31 15:34:58k870611linkissue2726 messages
2018-12-31 15:34:58k870611create