python-soundfile
python-soundfile copied to clipboard
Load error in Arch: libsndfile, libm and libFLAC
I'm trying to install PySoundfile library un Arch Linux.
I followed the installation scheme proposed in the docs:
> conda install cffi numpy
> pip install pysoundfile
> pacman -Ss libsndfile
When i try to import the library the following error pops:
Traceback (most recent call last):
File "features.py", line 7, in <module>
import soundfile as sf
File "/data/anaconda3/envs/voyanedel_full/lib/python3.6/site-packages/soundfile.py", line 267, in <module>
_snd = _ffi.dlopen('sndfile')
File "/data/anaconda3/envs/voyanedel_full/lib/python3.6/site-packages/cffi/api.py", line 146, in dlopen
lib, function_cache = _make_ffi_library(self, name, flags)
File "/data/anaconda3/envs/voyanedel_full/lib/python3.6/site-packages/cffi/api.py", line 828, in _make_ffi_library
backendlib = _load_backend_lib(backend, libname, flags)
File "/data/anaconda3/envs/voyanedel_full/lib/python3.6/site-packages/cffi/api.py", line 824, in _load_backend_lib
return backend.load_library(path, flags)
OSError: cannot load library 'libsndfile.so.1': /usr/lib/libm.so.6: version `GLIBC_2.29' not found (required by /usr/lib/libFLAC.so.8)
I couldn't find any clues to fix this issue. I dont even use the FLAC encoder/decoder.
So it seems that there is some kind of dependency between libsndfile to libflac to libm (part of glibc) that seems to be upset here. The error message sounds like some of these libraries were compiled for different versions of glibc (but I might be reading that wrong). Did you manually compile any of these libraries?
I'm not sure because it's a shared-use computer and i'm not the sysadmin. Anyway, I'm currently asking him about this.
BTW, there is an AUR package for pysoundfile: https://aur.archlinux.org/packages/python-soundfile/