BirdNET icon indicating copy to clipboard operation
BirdNET copied to clipboard

Trying docker version on Debian 10 (buster) 64bit gives Errors

Open jrcoding opened this issue 5 years ago • 1 comments

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

jrcoding avatar May 15 '20 12:05 jrcoding

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....

  1. 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 packages RUN 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 [...]

  2. 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 future RUN pip install numpy scipy future ## Install librosa from github because bug https://github.com/librosa/librosa/issues/1113 is already fixed there RUN git clone https://github.com/librosa/librosa.git RUN 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!!!

jrcoding avatar May 15 '20 14:05 jrcoding