OS X python exceptions.TypeError with 12.0-alpha7 oct3
#1
I don't really know if i should file a bug report or not but anyway this is what i am experiencing.

On a macbook 2007 and XBMC (12.0-ALPHA7 Git:20121003-0f21644), Platform: Darwin OSX (11.4.2 i386, Version 10.7.5 (Build 11G56)). Built on Oct 3 2012

Every time I try to run ted talk add-on I get a python error and when i try an eevblog video in the add-on I get the "same" error plus the xbmc gui does not respond afterwards, I have to turn of xbmc through the windowmanager.

these are the relevant error's from the log
Code:
09:32:16 T:140735146293600  NOTICE: Starting XBMC (12.0-ALPHA7 Git:20121003-0f21644), Platform: Darwin OSX (11.4.2 i386, Version 10.7.5 (Build 11G56)). Built on Oct  3 2012


21:10:47 T:4446490624   DEBUG: Instantiating addon using automatically obtained id of "plugin.video.eevblog" dependent on version 2.0 of the xbmc.python api
21:10:47 T:140735146293600   DEBUG: Activating window ID: 10138
21:10:47 T:140735146293600   DEBUG: ------ Window Init (DialogBusy.xml) ------
21:10:47 T:140735146293600   DEBUG: Window DialogBusy.xml was already loaded
21:10:47 T:140735146293600   DEBUG: Alloc resources: 0.25m
21:10:52 T:140735146293600   DEBUG: ------ Window Deinit (Pointer.xml) ------
21:10:52 T:4536700928   DEBUG: Thread Jobworker 0 terminating (autodelete)
21:10:53 T:4446490624   DEBUG: Previous line repeats 1 times.
21:10:53 T:4446490624   ERROR: EXCEPTION: argument "label" for method "XBMCAddon::xbmcgui::ListItem" must be unicode or str
21:10:53 T:4446490624   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.TypeError'>
                                            Error Contents: argument "label" for method "XBMCAddon::xbmcgui::ListItem" must be unicode or str
                                            Traceback (most recent call last):
                                              File "/Users/user/Library/Application Support/XBMC/addons/plugin.video.eevblog/default.py", line 141, in <module>
                                                play_video(url)
                                              File "/Users/user/Library/Application Support/XBMC/addons/plugin.video.eevblog/default.py", line 75, in play_video
                                                listitem = xbmcgui.ListItem(label = name , iconImage = 'DefaultVideo.png', thumbnailImage = '')
                                            TypeError: argument "label" for method "XBMCAddon::xbmcgui::ListItem" must be unicode or str
                                            -->End of Python script error report<--
21:10:53 T:4446490624    INFO: Python script stopped
21:10:53 T:4446490624   DEBUG: Thread XBPyThread 4446490624 terminating


09:32:34 T:4619239424  NOTICE: [PLUGIN] 'TED Talks: version 3.1.4' initialized!
09:32:34 T:4619239424   ERROR: EXCEPTION: argument "iconImage" for method "XBMCAddon::xbmcgui::ListItem" must be unicode or str
09:32:34 T:4619239424   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.TypeError'>
                                            Error Contents: argument "iconImage" for method "XBMCAddon::xbmcgui::ListItem" must be unicode or str
                                            Traceback (most recent call last):
                                              File "/Users/user/Library/Application Support/XBMC/addons/plugin.video.ted.talks/default.py", line 17, in <module>
                                                ted_talks.Main(args_map=args_map).run()
                                              File "/Users/user/Library/Application Support/XBMC/addons/plugin.video.ted.talks/resources/lib/ted_talks.py", line 328, in run
                                                ui.showCategories()
                                              File "/Users/user/Library/Application Support/XBMC/addons/plugin.video.ted.talks/resources/lib/ted_talks.py", line 103, in showCategories
                                                self.addItem(plugin.getLS(30001), 'newTalksRss', video_info={'Plot':plugin.getLS(30031)})
                                              File "/Users/user/Library/Application Support/XBMC/addons/plugin.video.ted.talks/resources/lib/ted_talks.py", line 59, in addItem
                                                li = xbmcgui.ListItem(label=title, iconImage=img, thumbnailImage=img)
                                            TypeError: argument "iconImage" for method "XBMCAddon::xbmcgui::ListItem" must be unicode or str
                                            -->End of Python script error report<--
09:32:34 T:4619239424    INFO: Python script stopped

I thought it was a problem in my installation for it is a fresh osx install but i tried the build of 15th of september and both error's do not occur.
I understand the error can be either in a wrong use of the variable on the add-on or xbmc changed the way it handles these variables

I hope somebody finds this report usefull if not, give me some hints on how to give you better information.
Reply

Logout Mark Read Team Forum Stats Members Help
python exceptions.TypeError with 12.0-alpha7 oct30