google-code-export / beets

Automatically exported from code.google.com/p/beets
MIT License
0 stars 0 forks source link

Running beets 1.0b15 with an old version of pyacoustid gives a hard to read error. #426

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I had beets 1.0b13 installed and upgraded it to 1.0b15 (through pip), and got 
this output when I tried to run beets again, due to having an old pyacoustid 
version:
Traceback (most recent call last):
  File "/usr/local/bin/beet", line 9, in <module>
    load_entry_point('beets==1.0b15', 'console_scripts', 'beet')()
  File "/usr/local/lib/python2.6/dist-packages/beets/ui/__init__.py", line 764, in main
    subcommand.func(lib, config, suboptions, subargs)
  File "/usr/local/lib/python2.6/dist-packages/beets/ui/commands.py", line 804, in import_func
    timid, query, incremental, ignore, per_disc_numbering)
  File "/usr/local/lib/python2.6/dist-packages/beets/ui/commands.py", line 698, in import_files
    per_disc_numbering = per_disc_numbering,
  File "/usr/local/lib/python2.6/dist-packages/beets/importer.py", line 915, in run_import
    pl.run_parallel(QUEUE_SIZE)
  File "/usr/local/lib/python2.6/dist-packages/beets/util/pipeline.py", line 243, in run
    out = self.coro.send(msg)
  File "/usr/local/lib/python2.6/dist-packages/beets/importer.py", line 558, in initial_lookup
    plugins.send('import_task_start', task=task, config=config)
  File "/usr/local/lib/python2.6/dist-packages/beets/plugins.py", line 305, in send
    handler(**arguments)
  File "/usr/local/lib/python2.6/dist-packages/beetsplug/chroma.py", line 175, in fingerprint_task
    acoustid_match(item.path)
  File "/usr/local/lib/python2.6/dist-packages/beetsplug/chroma.py", line 55, in acoustid_match
    duration, fp = acoustid.fingerprint_file(path)
AttributeError: 'module' object has no attribute 'fingerprint_file'

As sochotnicky pointed out on irc, this should be noticed by setup.py, or at 
least be printed in some sort of readable error output (like "Your version of 
pyacoustid is too old, please upgrade it" :) ).

Original issue reported on code.google.com by akegata@gmail.com on 21 Aug 2012 at 11:55

GoogleCodeExporter commented 9 years ago
Thanks for pointing this out. Alas, because pyacoustid is an optional 
dependency (it's only needed by the chroma plugin), it isn't listed in 
setup.py. But a more readable runtime error is definitely possible.

Original comment by adrian.sampson on 21 Aug 2012 at 3:53

GoogleCodeExporter commented 9 years ago

Original comment by adrian.sampson on 28 Nov 2012 at 12:31