ytrstu / pts-mini-gpl

Automatically exported from code.google.com/p/pts-mini-gpl
0 stars 0 forks source link

encoding problem #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
cant use "socket.gethostbyname"

Python: 3.2 static
OS: Linux x86_64 and OSX 10.7.3

testcode 1:

import socket
socket.gethostbyname(socket.gethostname())
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
LookupError: unknown encoding: idna

testcode 2:

import encodings.idna
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "python3.2-static/encodings/idna.py", line 3, in <module>
  File "python3.2-static/stringprep.py", line 8, in <module>
ImportError: No module named unicodedata

Original issue reported on code.google.com by wasserWu...@googlemail.com on 4 Apr 2012 at 4:37

GoogleCodeExporter commented 9 years ago
missing.txt contains "dep unicodedata.c"

... sry. I haven't seen it.

Original comment by wasserWu...@googlemail.com on 7 Apr 2012 at 2:51

GoogleCodeExporter commented 9 years ago
Thank you for reporting this bug and thank you for providing all the necessary 
information to reproduce it. Even though unicodedata.c is missing, 
socket.gethostbyname should work in StaticPython. I'll take a look later how to 
work it around.

Original comment by pts...@gmail.com on 8 Apr 2012 at 7:15

GoogleCodeExporter commented 9 years ago
Worked around in r329 for Linux: socket.gethostbyname works now for ASCII 
domain names in StaticPython 3.2 for Linux. (StaticPython 2.7 is unaffected.) 
Please download the latest StaticPython and retry. Eventually it will be fixed 
for the Mac as well, please let me know if you need that fix early.

Original comment by pts...@gmail.com on 26 Apr 2012 at 11:41

GoogleCodeExporter commented 9 years ago
Thanks for the quick fix. 

On Linux, all problems gone. On Mac, still the same issue as before. 

Original comment by wasserWu...@googlemail.com on 30 Apr 2012 at 6:07

GoogleCodeExporter commented 9 years ago

Original comment by pts...@gmail.com on 13 May 2012 at 7:00