pünktchen 1345 Posted February 15, 2015 Posted February 15, 2015 With one of the latest Kodi nightly builds i always get an exception when i try to enter the Mediabrowser-addon via Video-addons: ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <type 'exceptions.UnicodeDecodeError'> Error Contents: 'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128) Traceback (most recent call last): File "C:\Users\USERNAME\AppData\Roaming\Kodi\addons\plugin.video.xbmb3c\default.py", line 39, in <module> MainModule.MainEntryPoint() File "C:\Users\USERNAME\AppData\Roaming\Kodi\addons\plugin.video.xbmb3c\resources\lib\MainModule.py", line 1670, in MainEntryPoint displaySections(pluginhandle) File "C:\Users\USERNAME\AppData\Roaming\Kodi\addons\plugin.video.xbmb3c\resources\lib\MainModule.py", line 443, in displaySections details = {'title' : __language__(30220) + collection.get('title', 'Unknown') } UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128) -->End of Python script error report<-- When this happens, it is not possible to enter the Mediabrowser-addon via Video-addons, but i can still access the Mediabrowser libraries via the skinshortcuts of Titan skin. Beside this, one time I've also seen another exception in my logs: ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <type 'exceptions.ValueError'> Error Contents: invalid literal for int() with base 10: 'None' Traceback (most recent call last): File "C:\Users\USERNAME\AppData\Roaming\Kodi\addons\plugin.video.xbmb3c\default.py", line 39, in <module> MainModule.MainEntryPoint() File "C:\Users\USERNAME\AppData\Roaming\Kodi\addons\plugin.video.xbmb3c\resources\lib\MainModule.py", line 1697, in MainEntryPoint getContent(param_url, pluginhandle) File "C:\Users\USERNAME\AppData\Roaming\Kodi\addons\plugin.video.xbmb3c\resources\lib\MainModule.py", line 1124, in getContent dirItems = List().processDirectory(url, result, progress, pluginhandle) File "C:\Users\USERNAME\AppData\Roaming\Kodi\addons\plugin.video.xbmb3c\resources\lib\List.py", line 99, in processDirectory listItem=self.fastItem(item, pluginhandle) File "C:\Users\USERNAME\AppData\Roaming\Kodi\addons\plugin.video.xbmb3c\resources\lib\List.py", line 167, in fastItem listItemName = listItemName + " (" + str(int(db.get(id + ".RecursiveItemCount")) - int(db.get(id + ".UnplayedItemCount"))) + "/" + str(db.get(id + ".RecursiveItemCount")) + ")" ValueError: invalid literal for int() with base 10: 'None' -->End of Python script error report<-- Mediabrowser-Server: 3.0.5490.2 Mediabrowser-addon: 0.9.788 Kodi: 15.0-ALPHA1 Git:20150210-4a5dd15
im85288 1493 Posted February 15, 2015 Posted February 15, 2015 The addon supports Helix and Gotham only, no support for Kodi 15 Alpha versions will be added until it at least hits Beta stage (in fact it's so new they have not even decided on a name yet!)
pünktchen 1345 Posted February 15, 2015 Author Posted February 15, 2015 Really too bad. As a former MediaPortal user, i really love the additive video seeking in Kodis nightlies.
im85288 1493 Posted February 15, 2015 Posted February 15, 2015 Yes really, if it supports Alpha releases that is a bonus but due to the nature of Alpha software and the fact it changes a lot putting effort into keeping up with it is not going to happen.
xnappo 1605 Posted February 15, 2015 Posted February 15, 2015 That said, are you sure you don't get this error with Helix? It looks like a normal old encoding issue.
pünktchen 1345 Posted February 15, 2015 Author Posted February 15, 2015 That said, are you sure you don't get this error with Helix? It looks like a normal old encoding issue. Should i say "no" so you look at this Seriously, in Helix it's fine.
pünktchen 1345 Posted February 20, 2015 Author Posted February 20, 2015 Should i say "no" so you look at this Seriously, in Helix it's fine. I should have said "it was fine in Helix"!I've did some more testing and the problem also occurs in Kodi 14.0. It is a problem with the Beta addon. With stable addon all is fine in Helix AND the nightlies.
xnappo 1605 Posted February 20, 2015 Posted February 20, 2015 Okay, that is what I thought Didn't think that error would have anything to do with Kodi. I'll take a look when I get a chance. It should be a simple fix. Ticket: https://github.com/MediaBrowser/MediaBrowser.Kodi/issues/106 xnappo 2
xnappo 1605 Posted February 22, 2015 Posted February 22, 2015 I think this is fixed in the Git version if you can test that, otherwise will push a new version when I get the sorting stuff sorted
pünktchen 1345 Posted February 22, 2015 Author Posted February 22, 2015 I think this is fixed in the Git version if you can test that, otherwise will push a new version when I get the sorting stuff sorted Sorry to say that, but still the same error. It's the first exception i've posted. From your changes on github, i think you've only fixed the second exception which seems to be the same as reported here: http://mediabrowser.tv/community/index.php?/topic/18485-mediabrowser-addon-script-failed-python-exception/
xnappo 1605 Posted February 22, 2015 Posted February 22, 2015 0.9.801 is on the way to the beta repo. Please check if this is resolved.
pünktchen 1345 Posted February 22, 2015 Author Posted February 22, 2015 Tested with github master. Still have an exception with slightly different error: ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <type 'exceptions.UnicodeDecodeError'> Error Contents: 'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128) Traceback (most recent call last): File "C:\Program Files (x86)\Kodi_14.0\portable_data\addons\plugin.video.xbmb3c\default.py", line 41, in <module> MainModule.MainEntryPoint() File "C:\Program Files (x86)\Kodi_14.0\portable_data\addons\plugin.video.xbmb3c\resources\lib\MainModule.py", line 1287, in MainEntryPoint displaySections(pluginhandle) File "C:\Program Files (x86)\Kodi_14.0\portable_data\addons\plugin.video.xbmb3c\resources\lib\MainModule.py", line 435, in displaySections title=Temp.encode('utf-8') UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128) -->End of Python script error report<--
xnappo 1605 Posted February 22, 2015 Posted February 22, 2015 Yeash I hate this encoding stuff. Can you try the Git again? Thanks.
pünktchen 1345 Posted February 22, 2015 Author Posted February 22, 2015 Still the same error with title=Temp.encode('utf-8') Is there anything more i can do to help?
xnappo 1605 Posted February 22, 2015 Posted February 22, 2015 @ @@im85288 usual tricks don't seem to be working. Any ideas?
xnappo 1605 Posted February 23, 2015 Posted February 23, 2015 Can you post your collection names here? I think I need to be able to recreate this one.
pünktchen 1345 Posted February 23, 2015 Author Posted February 23, 2015 Can you post your collection names here? I think I need to be able to recreate this one.In the evening...
Marcelo 3 Posted February 23, 2015 Posted February 23, 2015 I'm having the exactly same issue regarding utf-8 with the same log as posted here. I'm from brazil so my movies in boxsets all have their name in portuguese with the word "Coletânea" in the end. Like "007 - Coletânea" and so on. Thanks, Marcelo.
xnappo 1605 Posted February 23, 2015 Posted February 23, 2015 Yep. I don't get what changed in this regard, but it should be an easy fix now that I can hopefully reproduce it.
xnappo 1605 Posted February 23, 2015 Posted February 23, 2015 (edited) Okay - this should be fixed in the Git now. For educational purposes (or in case I forget) - the problem here was the new code added to have sub-sections like recently added for user collections. In that code I was concatenating a Kodi language string and the title from the JSON data. The Kodi language strings are ASCII and the JSON data is UTF-8 - so it was trying to convert the UTF-8 to ASCII. Encoding the Kodi language string to UTF-8 seems to have fixed the issue. xnappo Edited February 23, 2015 by xnappo 1
pünktchen 1345 Posted February 24, 2015 Author Posted February 24, 2015 Okay - this should be fixed in the Git now.For me it's also working again. Really outstanding support here! Thank you!
xnappo 1605 Posted February 24, 2015 Posted February 24, 2015 For me it's also working again. Really outstanding support here! Thank you! No problem - I appreciate your patience and detailed logs. xnappo
Recommended Posts