Unknown encoding: idna ? - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26) +--- Thread: Unknown encoding: idna ? (/showthread.php?tid=4975) |
- GeminiServer - 2004-07-31 hi python guys.. i need help with the following script! on the pc it works fine, but if i use the script on xbmc it won't work ? any idea? here is the test script! workinf fine on pc! Quote:import httplib, urllib, base64 but on xbmc i get the following error! Quote:31-07-2004 17:53:00 traceback (most recent call last): - atlascrushed - 2004-08-02 hi, i came across your post from google, because i have a similar problem. i've created a python script that uses httplib to screenscrape a page. it works from the script, but when i compile it using py2exe, it does not work, and i get a similar error: traceback (most recent call last): file "startup.pyc", line 456, in onconfigsubmit file "httplib.pyc", line 718, in request file "httplib.pyc", line 733, in _send_request file "httplib.pyc", line 669, in putrequest lookuperror: unknown encoding: idna if i figure out a solution, i'll let you know. -pat - atlascrushed - 2004-08-03 ok, i figured out my problem. py2exe doesn't automatically bundled the characterset codecs, i have to add the option: "setup.py py2exe --packages encodings" it appears that idna support was added in python 2.3, so perhaps your xmbc is an older version? -pat - darkie - 2004-08-04 this is a known problem to me. problem is that for idna encoding you need the unicode character set. this can be added to xbmc but it takes a lot of memory (that's why i left it away). i'm still working on it so you can expect an update for it soon - Alexpoet - 2004-08-04 yay! darkie's back! - darkie - 2004-08-07 should be fixed now in cvs - GeminiServer - 2004-08-23 @darkie same problem, is not fixed! unicodedata.pyd is includet! regards geminiserver |