'XBMC Music Database Missing...'
#1
Hi,

I'm new at all this, but I am trying to get cdART Manager working to no avail. I have a very limited music collection consisting of just Billboards Hot 100, roughly from 1950 to 2012. The music is not tagged fully, the only consistent tags are artist and title. I enter the music into xbmc eden and scan to library, I can then view it in library mode and even play the music. Unfortunately when I open cdART Manager I am getting an error message titled: 'XBMC Music Database Missing...' and the comment within the error reads: 'Please ensure music library is built.' I thought I had done this, guess not Confused could someone please point me in the right direction? (I have a party this coming weekend and I was hoping to wow the guests)

Also please note:
- I am using the skin Aeon Nox
- the song files have been removed from their original directory which was the year eg. c:\music\2010\files.mp3
they have now been organized as 'c:\Artist\files.mp3'
Reply
#2
You need to build a "cdart music library", not to be mixed up with the XBMC music library. Somewhere into cdart manager settings, you can build your database.

At least, that's how I understand the cdart manager addon.
Reply
#3
I have the same problem. I get this message when i try to build the cdart database, at the end of the progress, after it scanned al my albums? My xbmc library is built ...
Reply
#4
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.
Reply

Logout Mark Read Team Forum Stats Members Help
'XBMC Music Database Missing...'0