Jump to content

Python Exception "argument "value" for method "setProperty" must be unicode or str"


themightylc

Recommended Posts

themightylc

 Hi guys. Don't know what my problem is but since 0.6.something i have not done a single xbmb3c install without problems.

 

I just made a fresh install (i.e. new xbmc + xbmb3c) and get the following error:

19:00:16 T:1351967840 WARNING: GetDurationFromMinuteString <runtime> should be in minutes. Interpreting 'None' as 0 minutes
19:00:16 T:1351967840   ERROR: EXCEPTION: argument "value" for method "setProperty" must be unicode or str
19:00:16 T:1351967840   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 "value" for method "setProperty" must be unicode or str
                                            Traceback (most recent call last):
                                              File "/root/.xbmc/addons/MediaBrowser.XBMC-master/default.py", line 2246, in <module>
                                                displaySections()
                                              File "/root/.xbmc/addons/MediaBrowser.XBMC-master/default.py", line 610, in displaySections
                                                dirItems.append(addGUIItem(s_url, details, extraData))
                                              File "/root/.xbmc/addons/MediaBrowser.XBMC-master/default.py", line 514, in addGUIItem
                                                list.setProperty('TotalSeasons',extraData.get('TotalSeasons'))
                                            TypeError: argument "value" for method "setProperty" must be unicode or str
                                            -->End of Python script error report<--

Not sure but it seems the "None" value for duration mustbe causing this, but i don't know which item this is referring to.

I'll take a quick look at the source now.

 

Complete log: http://pastebin.com/NdA2fq3g

Link to comment
Share on other sites

themightylc

Inserted a check for None at the lines that set the list.properties from the extraData. Works as expected.

Link to comment
Share on other sites

im85288

I think I found what changes you were meaning, can you try the latest version (0.9.511) to see if it's resolved.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...