rlhelinski / musicbrainz-catalog

Python code for cataloging your music collection cross-referenced with MusicBrainz
GNU General Public License v2.0
2 stars 0 forks source link

AttributeError: 'module' object has no attribute 'caa' #72

Open carnager opened 8 years ago

carnager commented 8 years ago

carnager@caprica ~/musicbrainz-catalog > python2 mbcat-cmd.py
Traceback (most recent call last): File "mbcat-cmd.py", line 19, in prefs = mbcat.userprefs.PrefManager() File "/home/carnager/musicbrainz-catalog/mbcat/userprefs.py", line 26, in init self.save() File "/home/carnager/musicbrainz-catalog/mbcat/userprefs.py", line 80, in save 'caa_hostname':musicbrainzngs.caa.hostname}) AttributeError: 'module' object has no attribute 'caa'

rlhelinski commented 8 years ago

Ah, OK. Failure of this initial call to save should not be fatal and so we should put it in a try/catch block. It looks like the root cause is differences in versions of musicbrainz-ngs. What revision are you using?

On Sat, Sep 12, 2015, 1:31 AM Rasmus Steinke notifications@github.com wrote:

carnager@caprica ~/musicbrainz-catalog > python2 mbcat-cmd.py

Traceback (most recent call last): File "mbcat-cmd.py", line 19, in prefs = mbcat.userprefs.PrefManager() File "/home/carnager/musicbrainz-catalog/mbcat/userprefs.py", line 26, in init self.save() File "/home/carnager/musicbrainz-catalog/mbcat/userprefs.py", line 80, in save 'caa_hostname':musicbrainzngs.caa.hostname}) AttributeError: 'module' object has no attribute 'caa'

— Reply to this email directly or view it on GitHub https://github.com/rlhelinski/musicbrainz-catalog/issues/72.

carnager commented 8 years ago

It's version 0.5

rlhelinski commented 8 years ago

OK, I am developing this software against 0.6dev. I'll try to see how hard it would be to get the code working with version 0.5, but could you clone the latest from the musicbrainzngs 'master' branch? Here's a link for a zip file: https://github.com/alastair/python-musicbrainzngs/archive/master.zip