Radar Usecase
Radar Usecase

Reputation: 21

Cannot import librosa on SageMaker Jupyter notebook instance "OSError: sndfile library not found"

I am trying to import librosa on a SageMaker notebook instance but it's telling me that the sndfile library is not found. I have tried conda install -c conda-forge libsndfile but it is not working. I have been stuck on this for almost 3 hours now. Would appreciate some help. Thank you.

Upvotes: 1

Views: 625

Answers (1)

Radar Usecase
Radar Usecase

Reputation: 21

UPDATE (NOW WORKING): This is what ended up working.. we had to compile the libsndfile from scrach using the following commands

%%bash
wget 'https://github.com/libsndfile/libsndfile/releases/download/1.0.31/libsndfile-1.0.31.tar.bz2'
tar -xf libsndfile-1.0.31.tar.bz2
cd libsndfile-1.0.31/
./configure
make
sudo make install

Upvotes: 1

Related Questions