You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to import an album with the new autobpm plugin, first I had to install librosa and resampy to get it to run, those dependencies should probably be documented.
Then it failed with:
Traceback (most recent call last):
File "/home/user/bin/beet", line 8, in <module>
sys.exit(main())
File "/home/user/.local/pipx/venvs/beets2/lib/python3.7/site-packages/beets/ui/__init__.py", line 1865, in main
_raw_main(args)
File "/home/user/.local/pipx/venvs/beets2/lib/python3.7/site-packages/beets/ui/__init__.py", line 1852, in _raw_main
subcommand.func(lib, suboptions, subargs)
File "/home/user/.local/pipx/venvs/beets2/lib/python3.7/site-packages/beets/ui/commands.py", line 1395, in import_func
import_files(lib, paths, query)
File "/home/user/.local/pipx/venvs/beets2/lib/python3.7/site-packages/beets/ui/commands.py", line 1326, in import_files
session.run()
File "/home/user/.local/pipx/venvs/beets2/lib/python3.7/site-packages/beets/importer.py", line 360, in run
pl.run_parallel(QUEUE_SIZE)
File "/home/user/.local/pipx/venvs/beets2/lib/python3.7/site-packages/beets/util/pipeline.py", line 447, in run_parallel
raise exc_info[1].with_traceback(exc_info[2])
File "/home/user/.local/pipx/venvs/beets2/lib/python3.7/site-packages/beets/util/pipeline.py", line 312, in run
out = self.coro.send(msg)
File "/home/user/.local/pipx/venvs/beets2/lib/python3.7/site-packages/beets/util/pipeline.py", line 195, in coro
func(*(args + (task,)))
File "/home/user/.local/pipx/venvs/beets2/lib/python3.7/site-packages/beets/importer.py", line 1661, in plugin_stage
func(session, task)
File "/home/user/.local/pipx/venvs/beets2/lib/python3.7/site-packages/beets/plugins.py", line 143, in wrapper
return func(*args, **kwargs)
File "/home/user/.local/pipx/venvs/beets2/lib/python3.7/site-packages/beetsplug/autobpm.py", line 49, in imported
self.calculate_bpm(task.imported_items())
File "/home/user/.local/pipx/venvs/beets2/lib/python3.7/site-packages/beetsplug/autobpm.py", line 82, in calculate_bpm
bpm = round(tempo)
TypeError: type numpy.ndarray doesn't define __round__ method
Adding an import numpy and changing the indicated line to bpm = numpy.round(tempo) fixed it here. Might just be a Python 3.7 problem, but the 2.0.0 release notes still claim Python 3.7 support.
Setup
OS: Debian 10.13
Python version: 3.7.3
beets version: 2.0.0
Turning off plugins made problem go away (yes/no): Fixing the plugin made the problem go away
The text was updated successfully, but these errors were encountered:
Problem
Trying to import an album with the new autobpm plugin, first I had to install
librosa
andresampy
to get it to run, those dependencies should probably be documented.Then it failed with:
Adding an
import numpy
and changing the indicated line tobpm = numpy.round(tempo)
fixed it here. Might just be a Python 3.7 problem, but the 2.0.0 release notes still claim Python 3.7 support.Setup
The text was updated successfully, but these errors were encountered: