I have exactly the same problem. My log when the error message appears:
Code:
09:19:37 T:140225827608320 DEBUG: JSONRPC: Incoming request: {"jsonrpc": "2.0", "method": "AudioLibrary.GetSongs", "params": {"albumid": 2543, "properties": ["file", "musicbrainzalbumartistid"], "sort": {"method":"fullpath","order":"ascending"}}, "id": 1}
09:19:37 T:140225827608320 DEBUG: JSONRPC: Calling audiolibrary.getsongs
09:19:37 T:140225827608320 DEBUG: JSONRPC: Value does not match any of the enum values in type method
09:19:37 T:140225827608320 DEBUG: JSONRPC: Invalid property "method" in type sort
09:19:37 T:140225827608320 ERROR: Traceback (most recent call last):
09:19:37 T:140225827608320 ERROR: File "/home/laasonen/.xbmc/addons/script.cdartmanager/resources/lib/json_utils.py", line 26, in retrieve_json_dict
09:19:37 T:140225827608320 ERROR: result = response['result']
09:19:37 T:140225827608320 ERROR: KeyError: 'result'
09:19:37 T:140225827608320 DEBUG: [json_utils.py] - retrieve_json_dict - Error trying to get json response
09:19:37 T:140225827608320 DEBUG: [script.cdartmanager] - pre_eden_code - Retrieving Album Path
09:19:37 T:140225827608320 DEBUG: [json_utils.py] - JSONRPC Query -
{"jsonrpc": "2.0", "method": "AudioLibrary.GetAlbumDetails", "params": {"properties": ["artist", "title", "musicbrainzalbumid", "musicbrainzalbumartistid"], "albumid": 2545}, "id": 1}
09:19:37 T:140225827608320 DEBUG: JSONRPC: Incoming request: {"jsonrpc": "2.0", "method": "AudioLibrary.GetAlbumDetails", "params": {"properties": ["artist", "title", "musicbrainzalbumid", "musicbrainzalbumartistid"], "albumid": 2545}, "id": 1}
09:19:37 T:140225827608320 DEBUG: JSONRPC: Calling audiolibrary.getalbumdetails
09:19:37 T:140225827608320 ERROR: Traceback (most recent call last):
09:19:37 T:140225827608320 ERROR: File "/home/laasonen/.xbmc/addons/script.cdartmanager/resources/lib/json_utils.py", line 26, in retrieve_json_dict
09:19:37 T:140225827608320 ERROR: result = response['result']
09:19:37 T:140225827608320 ERROR: KeyError: 'result'
09:19:37 T:140225827608320 DEBUG: [json_utils.py] - retrieve_json_dict - Error trying to get json response
09:19:37 T:140226893670336 DEBUG: ------ Window Init (DialogOK.xml) ------
09:19:37 T:140226893670336 DEBUG: Window DialogOK.xml was already loaded
09:19:37 T:140226893670336 DEBUG: Alloc resources: 0.00m
09:19:37 T:140226893670336 DEBUG: ------ Window Deinit (DialogProgress.xml) ------
And when I close it:
Code:
09:20:20 T:140226893670336 DEBUG: Keyboard: scancode: 24, sym: 000d, unicode: 000d, modifier: 0
09:20:20 T:140226893670336 DEBUG: OnKey: return (f00d) pressed, action is Select
09:20:20 T:140226893670336 DEBUG: ------ Window Deinit (DialogOK.xml) ------
09:20:20 T:140225827608320 DEBUG: [script.cdartmanager] - XBMC Music Library does not exist, aborting database creation
09:20:20 T:140225827608320 ERROR: Traceback (most recent call last):
09:20:20 T:140225827608320 ERROR: File "/home/laasonen/.xbmc/addons/script.cdartmanager/resources/lib/gui.py", line 93, in onInit
09:20:20 T:140225827608320 ERROR: self.setup_all()
09:20:20 T:140225827608320 ERROR: File "/home/laasonen/.xbmc/addons/script.cdartmanager/resources/lib/gui.py", line 883, in setup_all
09:20:20 T:140225827608320 ERROR: local_album_count, local_artist_count, local_cdart_count = new_database_setup( self.background )
09:20:20 T:140225827608320 ERROR: File "/home/laasonen/.xbmc/addons/script.cdartmanager/resources/lib/database.py", line 369, in new_database_setup
09:20:20 T:140225827608320 ERROR: return album_count, artist_count, cdart_existing
09:20:20 T:140225827608320 ERROR: UnboundLocalError: local variable 'artist_count' referenced before assignment
EDIT 1:
I built my xbmc today with the latest code from git and my distribution is Arch Linux.
EDIT 2:
I managed to get rid of the error by initializing artist_count variable in new_database_setup function and creating counts, lalist, alblist, unqlist and local_artists tables to l_cdart.db. Even thought it now runs without giving any error messages it incorrectly says that I don't have any discs and artists.
EDIT 3:
I managed to solve the problem by fetching the latest version of the plugin from github.