I get an error when I try import soundfile
.
I tried reinstalling soundfile via pip, but didn't work.
Here's the error I get.
Traceback (most recent call last):
File "/Users/kona/.pyenv/versions/3.9.5/lib/python3.9/site-packages/soundfile.py", line 142, in <module>
raise OSError('sndfile library not found')
OSError: sndfile library not found
During handling of the above exception, another exception occured:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/kona/.pyenv/versions/3.9.5/lib/python3.9/site-packages/soundfile.py", line 162, in <module>
_snd = _ffi.dlopen(_os.path.join(
OSError: cannot load library '/Users/kona/.pyenv/versions/3.9.5/lib/python3.9/site-packages/_soundfile_data/libsndfile.dylib': dlopen(/Users/kona/.pyenv/versions/3.9.5/lib/python3.9/site-packages/_soundfile_data/libsndfile.dylib, 2): image not found
When I did mdfind _soundfile_data
and mdfind libsndfile.dylib
, it gave me no results.
Also, when I did brew install libsndfile
, it told me it was already installed and up-to-date
.