kahst/BirdNET

Run Docker image as non root user gives cache error

ivoba opened this issue · 0 comments

ivoba commented

When running the Docker image as non root user

 docker run --user $(id -u):$(id -g) -v /home/ivo/Sites/audiomoth-zx/files/destination:/audio breallis/birdnet:cpu --i audio/audios --o /audio/birdnet

this error occurs:

RuntimeError: cannot cache function '__shear_dense': no locator available for file '/usr/local/lib/python3.7/site-packages/librosa/util/utils.py'

I guess the default NUMBA_CACHE_DIR can only be written as root?
I have no clue of python though.
Any ideas how to fix this?

The files created by the Docker image are created by root per default which causes permission problems with further processing of the files.