UserWarning for Autobpm plugin
Problem
Beets is generating a Warning when importing files with the autobpm plugin enabled.
/home/user/.local/lib/python3.9/site-packages/beetsplug/autobpm.py:64: UserWarning: PySoundFile failed. Trying audioread instead.
y, sr = librosa.load(item.filepath, res_type="kaiser_fast")
/home/user/.local/lib/python3.9/site-packages/librosa/core/audio.py:184: FutureWarning: librosa.core.audio.__audioread
_load
Deprecated as of librosa version 0.10.0.
It will be removed in librosa version 1.0.
Pip versions:
Setup
- OS: Debian 11 (bullseye)
- Python version: 3.9.2
- beets version: 2.2.0
- Turning off plugins made problem go away (yes/no): Yes
Pip versions:
audioread 3.0.1
librosa 0.10.2.post1
My configuration (output of beet config) is:
autobpm:
auto: yes
overwrite: no
beat_track_kwargs: {}
If you'd like to mute this warning in the meantime set the PYTHONWARNINGS environment variable to ignore::UserWarning,ignore::FutureWarning.
Could prefix your import commands with it or create an alias if you don't want to do that every time.
I think this should have been fixed now as we updated librosa at some point earlier. Reopen this issue if it's still happening with beets==2.10.0.
I am still seeing this error. Please consider reopening the issue.
Error:
/home/user/.local/share/pipx/venvs/beets/lib/python3.14/site-packages/beetsplug/autobpm.py:110: UserWarning: PySoundFile failed. Trying audioread instead.
y, sr = librosa.load(item.filepath, res_type="kaiser_fast")
/home/user/.local/share/pipx/venvs/beets/lib/python3.14/site-packages/librosa/core/audio.py:184: FutureWarning: librosa.core.audio.__audioread_load
Deprecated as of librosa version 0.10.0.
It will be removed in librosa version 1.0.
y, sr_native = __audioread_load(path, offset, duration, dtype)
Installation details:
❯ pipx runpip beets list |grep librosa
librosa 0.11.0
❯ beet version
beets version 2.11.0
Python version 3.14.4
plugins: albumtypes, autobpm, bandcamp, chroma, deezer, discogs, edit, embedart, fetchart, fromfilename, fuzzy, hook, importadded, info, inline, lyrics, rewrite, scrub, the, types, zero