I'm quite a newbie with python, and programming in general, and I am currently struggling with installing and using the library librosa. I thought I succeeded installing it with:
git clone https://github.com/librosa/librosa.git librosa
and also with installing numpy and scipy seperately, again with:
git clone https://github.com/numpy/numpy.git numpy
git clone https://github.com/scipy/scipy.git scipy
and it seemed to finally work. I could also:
import librosa
without any problems, but as I tried to use:
librosa.load(pathfile, y, sr)
or also:
filename = librosa.util.example_audio_file()
I get the error message:
Traceback (most recently call last):
File "home/pi/new version.py", line 17, in <module>
slowbeat_lib = librosa.load('home/pi/gpio-music-box/samples/slowbeat.ogg', y, sr=None)
Attribute Error: module 'librosa'has no attribute 'load'
The same with:
librosa.util
So, I was thinking that I probably didn't install it completely, or in the right directory, because it is not in the usr/lib, but in home/pi/...
I tried to change that, but failed. Also installing it with:
pip install
sudo pip install
never worked out, because it always failed to build wheels for several side packages such as numpy, scipy, llvmlite,... --> That's also quite weird, right?
Or could the problem be something totally different?
So actually I am quite helpless, and thankful for any hint or advice! :)