Kodi Community Forum

Full Version: Help with Script-Error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all,

I have set up XBMC for a friend as a media system in their restaurant. Mostly they're running internet radio and some slide shows. This works very well for them, except that lately the keep getting script-errors, when starting a music-addon like 'Radio' or 'DI.fm'. I am not sure where the problem lies, as I do not understand the logfile, i.e. where the problem originates. Could someone have a look and point me in the right direction?

13:52:12 T:1900  NOTICE: -->Python Interpreter Initialized<--
13:52:12 T:2084   ERROR: CRemoteControl::Connect - failed to connect
13:52:17 T:3884  NOTICE: Xcddb::queryCDinfo No match found in CDDB database when doing the query shown below:
                                            cddb query 0e101313 19 150 17461 41439 56181 74061 88667 101924 117402 130645 145452 160699 182128 200203 217569 233621 245696 255195 285436 302050 4117
13:52:17 T:3884   ERROR: Xcddb::queryCDinfo Error: "202 No match for disc ID 0e101313.

13:52:21 T:948   ERROR: DVDPlayerCodec::Init: Error creating demuxer
14:43:43 T:2080   ERROR: Previous line repeats 14 times.
14:43:43 T:2080   ERROR: WebServer: Failed to open
14:44:10 T:948   ERROR: DVDPlayerCodec::Init: Error creating demuxer
14:45:10 T:2080   ERROR: WebServer: Failed to open
14:46:50 T:948   ERROR: DVDPlayerCodec::Init: Error creating demuxer
15:31:21 T:2340   ERROR: Previous line repeats 3 times.
15:31:21 T:2340  NOTICE: -->Python Interpreter Initialized<--
15:31:24 T:2024  NOTICE: -->Python Interpreter Initialized<--
15:31:24 T:2024  NOTICE: It has not been 1440 minutes since C:\Users\Stammhaus\AppData\Roaming\XBMC\userdata\addon_data\plugin.audio.sky.fm\cache_lastcheckin.dat was last updated
15:31:24 T:2024  NOTICE: [PLUGIN] Sky.fm v2.0.0 (30. October 2012)
15:31:24 T:2024  NOTICE: The cachefile C:\Users\Stammhaus\AppData\Roaming\XBMC\userdata\addon_data\plugin.audio.sky.fm\cache_streamlist.dat + has expired
15:31:24 T:2024  NOTICE: Going for Public streams
15:31:25 T:2024   ERROR: Error Type: <type 'exceptions.UnicodeEncodeError'>
15:31:25 T:2024   ERROR: Error Contents: 'ascii' codec can't encode character u'\xe9' in position 18: ordinal not in range(128)
15:31:25 T:2024   ERROR: Traceback (most recent call last):
                                              File "C:\Users\Stammhaus\AppData\Roaming\XBMC\addons\plugin.audio.sky.fm\default.py", line 396, in <module>
                                              File "C:\Users\Stammhaus\AppData\Roaming\XBMC\addons\plugin.audio.sky.fm\default.py", line 153, in start
                                                streamList = self.customizeStreamListAddMenuitem(jsonList, "") # sending a blank string as listenkey
                                              File "C:\Users\Stammhaus\AppData\Roaming\XBMC\addons\plugin.audio.sky.fm\default.py", line 207, in customizeStreamListAddMenuitem
                                                print "Channelart for " + channel['name'] + " not found in cache at " + self._addonProfilePath + channelArt
                                              File "<string>", line 6, in write
                                            UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 18: ordinal not in range(128)
15:31:25 T:948   ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.audio.sky.fm
15:31:25 T:948   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.audio.sky.fm) failed
15:31:27 T:884  NOTICE: -->Python Interpreter Initialized<--
15:31:27 T:884  NOTICE: '\x00'
15:31:27 T:884  NOTICE: No JSON object could be decoded
15:31:27 T:884  NOTICE: '_csv.reader' object has no attribute 'items'
15:31:27 T:884   ERROR: Error Type: <type 'exceptions.ValueError'>
15:31:27 T:884   ERROR: Error Contents: File not in a supported format
15:31:27 T:884   ERROR: Traceback (most recent call last):
                                              File "C:\Users\Stammhaus\AppData\Roaming\XBMC\addons\plugin.audio.radio_de\addon.py", line 47, in <module>
                                                my_stations = plugin.get_storage('my_stations.json', file_format='json')
                                              File "C:\Users\Stammhaus\AppData\Roaming\XBMC\addons\script.module.xbmcswift2\lib\xbmcswift2\xbmcmixin.py", line 123, in get_storage
                                                storage = TimedStorage(filename, file_format, TTL)
                                              File "C:\Users\Stammhaus\AppData\Roaming\XBMC\addons\script.module.xbmcswift2\lib\xbmcswift2\storage.py", line 154, in __init__
                                                _Storage.__init__(self, filename, file_format=file_format)
                                              File "C:\Users\Stammhaus\AppData\Roaming\XBMC\addons\script.module.xbmcswift2\lib\xbmcswift2\storage.py", line 121, in __init__
                                                _PersistentDictMixin.__init__(self, filename, file_format=file_format)
                                              File "C:\Users\Stammhaus\AppData\Roaming\XBMC\addons\script.module.xbmcswift2\lib\xbmcswift2\storage.py", line 44, in __init__
                                              File "C:\Users\Stammhaus\AppData\Roaming\XBMC\addons\script.module.xbmcswift2\lib\xbmcswift2\storage.py", line 96, in load
                                                raise ValueError('File not in a supported format')
                                            ValueError: File not in a supported format
15:31:27 T:948   ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.audio.radio_de
15:31:27 T:948   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.audio.radio_de) failed

The full log can be found here: xbmc.log

Thanks a million in advance, if someone would be willing to help me here.



I already identified and fixed that issue but the new version is still not available in the repository.
You can install it manually from here: https://github.com/downloads/dersphere/p...-2.0.1.zip

Or you wait a few days.

The 2.0.1 is the version I have installed, i.e the version producing the error...

Please let me know, how I can help you with this.

Looks like your "my_stations.json" is not valid. Interesting is that you have a similar issue with the sky_fm plugin - could be related or not.

Please send me your file. Should be located: "C:\Users\Stammhaus\AppData\Roaming\XBMC\addon_data\plugin.audio.radio_de\.storage\my_stations.json"

I would prefer receiving it via email.

Hi was this resolved? I have a very similar issue.
I cant reproduce, please send me your xbmc.log when debug is enabled and also your my_stations.json file so that I can fix (if there is an issue)
I logged this in my previous post: [Windows] Music addon script error - addon.py

But this is my xbmc.log: http://pastebin.com/aEjTXkPQ

I will email my_stations.json file to you

Many Thanks
I still don't know what is causing your issues.

Do you have any "special or extraordinary" internet connection?
It looks like the plugin receives a malformed json-response via the api. It could be possible that it is a gzip'ed version. The plugin does not request a gzip'ed version but "some" internet access provider simply inject the header. The plugin then does not know how to handle the response.

The my_stations.json file you sent me via mail looks correct.

Thanks for taking a look. We do have a web filter in place - which should allow the traffic through, as had been working for two weeks and the BBC Iplayer add-on works, but several other add-ons all stopped working at the same time.

Will take a closer look at that and test on an unfiltered connection see if that works out.