I am running a simple CNN using Pytorch for some audio classification on my Raspberry Pi 4 on Python 3.9.2 (64-bit). For the audio manipulation needed I am using librosa. librosa depends on the numba package which is only compatible with numpy version <= 1.20.
When running my code, the line
spect_tensor = torch.from_numpy(spect).double()
throws the RuntimeError:
RuntimeError: Numpy is not available
Searching the internet for solutions I found upgrading Numpy to the latest version to resolve that specific error, but throwing another error, because Numba only works with Numpy <= 1.20.
Is there a solution to this problem which does not include searching for an alternative to using librosa?
numpy
upgraded itsc
API between 1.19 and 1.20 in a mildly non backwards compatible way and it's taken a while to get everyone on the same page. Newnumba
versions supportnumpy
>1.20 but I'm not sure iflibrosa
has gotten with the program yet. If not you might need to keep everything in an older version – Cubby