Trying docker version on Debian 10 (buster) 64bit gives Errors
I've build BirdNET as you proposed in Installation (Docker) and building works fine so far.
Trying it out gives the following error messages:
sudo docker run -v $PWD/example:/audio birdnet --i Soundscape_1.wav
FILES IN DATASET: 0 /usr/local/lib/python3.7/site-packages/librosa/util/decorators.py:9: NumbaDeprecationWarning: An import was requested from a module that has moved location. Import requested from: 'numba.decorators', please update to use 'numba.core.decorators' or pin to Numba version 0.48.0. This alias will not be present in Numba version 0.50.0. from numba.decorators import jit as optional_jit /usr/local/lib/python3.7/site-packages/librosa/util/decorators.py:9: NumbaDeprecationWarning: An import was requested from a module that has moved location. Import of 'jit' requested from: 'numba.decorators', please update to use 'numba.core.decorators' or pin to Numba version 0.48.0. This alias will not be present in Numba version 0.50.0. from numba.decorators import jit as optional_jit
My System is: Debian Linux 10 (buster) 64bit
Any suggestions what's going wrong here respectively how to solve this???
Cheers, Joachim
The problem seems to be inside of librosa, take a look at https://github.com/librosa/librosa/issues/1113 and https://github.com/librosa/librosa/pull/1107/files
o.k., meanwhile I found two solutions....
-
I've created a Dockerfile for Debian10 and pinned the installaltion of numba explicitly to
numba 0.48.0(if of interest look into Dockerfile-Debian10 at my fork: https://github.com/jrcoding/BirdNET/tree/feature/Debian10)[...]# Install required Python packagesRUN pip install numpy scipy librosa future# the next line seems to be needed for i.e. Debian 10 (buster)RUN pip install numba==0.48.0[...] -
I've modified the original Dockerfile and installed the github version of librosa instead the PyPI version because the bug is fixed there (if of interest look into Dockerfile at my fork: https://github.com/jrcoding/BirdNET/tree/feature/librosa-rom-github)
[...]# Install required Python packages## as long as bug https://github.com/librosa/librosa/issues/1113 is in PyPI version don't use it## RUN pip install numpy scipy librosa futureRUN pip install numpy scipy future## Install librosa from github because bug https://github.com/librosa/librosa/issues/1113 is already fixed thereRUN git clone https://github.com/librosa/librosa.gitRUN pip install -e librosa[...]
If you want I can provide a PR ....
May be there is a more generic way to solve this but for me it works so far...
BTW great work this software!!! very nice the feature to produce a Raven sound selection table!!!