Chromaprint Error

214 views
Skip to first unread message

Fritz

unread,
Dec 31, 2018, 3:05:21 PM12/31/18
to beets
Hello Adrian

I've got an issue with the Chromaprint Plugin on osx 10.14.2. There is a Traceback with beets Version 1.4.7 and also the 1.4.8.

Chromaprint installed with brew and fpcalc in /usr/local/bin ...

Traceback (most recent call last):

  File "/usr/local/lib/python3.7/site-packages/acoustid.py", line 201, in fingerprint

    fper = chromaprint.Fingerprinter()

AttributeError: module 'chromaprint' has no attribute 'Fingerprinter'


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "/usr/local/bin/beet", line 11, in <module>

    sys.exit(main())

  File "/usr/local/lib/python3.7/site-packages/beets/ui/__init__.py", line 1256, in main

    _raw_main(args)

  File "/usr/local/lib/python3.7/site-packages/beets/ui/__init__.py", line 1243, in _raw_main

    subcommand.func(lib, suboptions, subargs)

  File "/usr/local/lib/python3.7/site-packages/beets/ui/commands.py", line 943, in import_func

    import_files(lib, paths, query)

  File "/usr/local/lib/python3.7/site-packages/beets/ui/commands.py", line 913, in import_files

    session.run()

  File "/usr/local/lib/python3.7/site-packages/beets/importer.py", line 329, in run

    pl.run_parallel(QUEUE_SIZE)

  File "/usr/local/lib/python3.7/site-packages/beets/util/pipeline.py", line 445, in run_parallel

    six.reraise(exc_info[0], exc_info[1], exc_info[2])

  File "/usr/local/lib/python3.7/site-packages/six.py", line 693, in reraise

    raise value

  File "/usr/local/lib/python3.7/site-packages/beets/util/pipeline.py", line 312, in run

    out = self.coro.send(msg)

  File "/usr/local/lib/python3.7/site-packages/beets/util/pipeline.py", line 194, in coro

    func(*(args + (task,)))

  File "/usr/local/lib/python3.7/site-packages/beets/importer.py", line 1344, in lookup_candidates

    plugins.send('import_task_start', session=session, task=task)

  File "/usr/local/lib/python3.7/site-packages/beets/plugins.py", line 476, in send

    result = handler(**arguments)

  File "/usr/local/lib/python3.7/site-packages/beets/plugins.py", line 140, in wrapper

    return func(*args, **kwargs)

  File "/usr/local/lib/python3.7/site-packages/beetsplug/chroma.py", line 143, in fingerprint_task

    return fingerprint_task(self._log, task, session)

  File "/usr/local/lib/python3.7/site-packages/beetsplug/chroma.py", line 212, in fingerprint_task

    acoustid_match(log, item.path)

  File "/usr/local/lib/python3.7/site-packages/beetsplug/chroma.py", line 65, in acoustid_match

    duration, fp = acoustid.fingerprint_file(util.syspath(path))

  File "/usr/local/lib/python3.7/site-packages/acoustid.py", line 321, in fingerprint_file

    return _fingerprint_file_audioread(path, maxlength)

  File "/usr/local/lib/python3.7/site-packages/acoustid.py", line 264, in _fingerprint_file_audioread

    fp = fingerprint(f.samplerate, f.channels, iter(f), maxlength)

  File "/usr/local/lib/python3.7/site-packages/acoustid.py", line 212, in fingerprint

    except chromaprint.FingerprintError:

AttributeError: module 'chromaprint' has no attribute 'FingerprintError'


Greetings and

Happy new year


Fritz

Adrian Sampson

unread,
Dec 31, 2018, 3:07:09 PM12/31/18
to beets
Something looks very wrong with your installation of the pyacoustid Python module! Maybe try removing that and installing it again?

Adrian
> --
> You received this message because you are subscribed to the Google Groups "beets" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to beets-users...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Fritz

unread,
Dec 31, 2018, 3:45:50 PM12/31/18
to beets
Hi Adrian

You're right, I had an old installation of pip3 chromaprint. So I've deinstalled it and the Plugin starts without a error.
Thanks
Reply all
Reply to author
Forward
0 new messages