XBMC Community Forum  

Go Back   XBMC Community Forum > Development > Plugin/Script (Python) Development

Plugin/Script (Python) Development Developers forum for XBMC Python Plugins/Scripts. Scripters/coders only!
Not for posting feature requests, bugs, or end-user support requests!

Reply
 
Thread Tools Search this Thread Display Modes
Old 2004-04-14, 02:54   #1
zrb
Junior Member
 
Join Date: Apr 2004
Posts: 5
zrb is on a distinguished road
Default

cvsbuild 2004-04-09

-------------- test.py -------------------
import httplib
conn = httplib.httpconnection("www.google.com")
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
zrb is offline   Reply With Quote
Old 2004-04-14, 04:42   #2
zrb
Junior Member
 
Join Date: Apr 2004
Posts: 5
zrb is on a distinguished road
Default

actually this is enough:

----- test.py ----------------
print "foobar".encode("idna")
zrb is offline   Reply With Quote
Old 2004-04-18, 00:45   #3
darkie
Team-XBMC Developer
 
Join Date: Sep 2003
Posts: 530
darkie is on a distinguished road
Default

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.


darkie is offline   Reply With Quote
Old 2004-08-06, 21:25   #4
darkie
Team-XBMC Developer
 
Join Date: Sep 2003
Posts: 530
darkie is on a distinguished road
Default

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.


darkie is offline   Reply With Quote
Old 2004-08-25, 21:13   #5
zrb
Junior Member
 
Join Date: Apr 2004
Posts: 5
zrb is on a distinguished road
Default

hmm...
still don't work

btw.
xbmc searches for unicodedata.pyd in xbmc\mplayer\codecs instead of xbmc\python\lib\

build 2004-08-18
zrb is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:15.


Protected by Akismet, We recommend WordPress blogs
Copyright © 2008, XBMC Project