Traceback (most recent call last):
File "demo01_similarity.py", line 1, in <module>
from demo_utils import *
File "/home/marco/Resemblyzer/demo_utils.py", line 3, in <module>
from resemblyzer import sampling_rate
File "/home/marco/Resemblyzer/resemblyzer/__init__.py", line 3, in <module>
from resemblyzer.audio import preprocess_wav, wav_to_mel_spectrogram, trim_long_silences, \
File "/home/marco/Resemblyzer/resemblyzer/audio.py", line 7, in <module>
import librosa
File "/home/marco/anaconda3/lib/python3.7/site-packages/librosa/__init__.py", line 13, in <module>
from . import core
File "/home/marco/anaconda3/lib/python3.7/site-packages/librosa/core/__init__.py", line 115, in
<module>
from .audio import * # pylint: disable=wildcard-import
File "/home/marco/anaconda3/lib/python3.7/site-packages/librosa/core/audio.py", line 8, in <module>
import soundfile as sf
File "/home/marco/anaconda3/lib/python3.7/site-packages/soundfile.py", line 142, in <module>
raise OSError('sndfile library not found')
OSError: sndfile library not found
And I have problems with the installation of sndfile library with pip3:
(base) marco@pc:~/Resemblyzer$ pip3 install sndfile
Collecting sndfile
Using cached https://files.pythonhosted.org/packages/db/ce
/797cacd78490aa9de2e0e119491079d380e2fbbd7a1c5057c9fb2120a643/sndfile-0.2.0.tar.gz
Requirement already satisfied: cffi>=1.0.0 in /home/marco/anaconda3/lib/python3.7/site-packages
(from sndfile) (1.12.3)
Requirement already satisfied: pycparser in /home/marco/anaconda3/lib/python3.7/site-packages
(from cffi>=1.0.0->sndfile) (2.19)
Building wheels for collected packages: sndfile
Building wheel for sndfile (setup.py) ... error
I installed the required packages with pip3:
But when trying to execute demo01_similarity.py :
And I have problems with the installation of sndfile library with pip3:
I reported the issue also here: https://github.com/sangoma/sndfile/issues
Looking forward to your kind help. Marco