cvsbuild 2004-04-09
-------------- test.py -------------------
import httplib
conn = httplib.httpconnection("[url]www.google.com"[/url])
conn.putrequest("get", "/")
conn.endheaders()
foo = conn.getresponse()
print foo.read()
-------------- debug ----------------------
14-04-2004 01:38:47 -->python initialized<--
14-04-2004 01:38:47
14-04-2004 01:38:47 traceback (most recent call last):
14-04-2004 01:38:47 file "q:\scripts\test3.py", line 3, in ?
14-04-2004 01:38:47
14-04-2004 01:38:47 conn.putrequest("get", "/")
14-04-2004 01:38:47 file "q:\python\lib\httplib.py", line 667, in putrequest
14-04-2004 01:38:47 lookuperror
: unknown encoding: idna
any ideas?
-zrb
httplib?
zrb
Junior Member Posts: 5 Joined: Apr 2004 Reputation: 0 |
2004-04-14 01:54
Post: #1
|
| find quote |
zrb
Junior Member Posts: 5 Joined: Apr 2004 Reputation: 0 |
2004-04-14 03:42
Post: #2
actually this is enough:
----- test.py ---------------- print "foobar".encode("idna") |
| find quote |
darkie
Team-XBMC Developer Posts: 529 Joined: Sep 2003 Reputation: 0 |
2004-04-17 23:45
Post: #3
ok, found the problem after a lot of searching
![]() problem is that python for xbmc is missing a module named 'unicodedata'. i could add this to xbmc but this will cost about 0,8 mb of memory and i think this is to much. really need to get dll support working for xbmc first so no encode support for now, sorry. darkie Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. ![]() |
| find quote |
darkie
Team-XBMC Developer Posts: 529 Joined: Sep 2003 Reputation: 0 |
2004-08-06 20:25
Post: #4
ok, it took a while, but it is added now to cvs.
just make sure you have the file unicodedata.pyd in your xbmc\python\lib\ dir Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. ![]() |
| find quote |
zrb
Junior Member Posts: 5 Joined: Apr 2004 Reputation: 0 |
2004-08-25 20:13
Post: #5
hmm...
still don't work ![]() btw. xbmc searches for unicodedata.pyd in xbmc\mplayer\codecs instead of xbmc\python\lib\ build 2004-08-18 |
| find quote |


![[Image: badge.gif]](http://www.ohloh.net/projects/149/badge.gif)

Search
Help