Getting Error on soundfile pkg on read/write audio

I’m geeting this error:
import soundfile as sf
File “/home/appuser/venv/lib/python3.9/site-packages/soundfile.py”, line 189, in
_snd = _ffi.dlopen(_libname)
OSError: cannot load library ‘libsndfile.so’: libsndfile.so: cannot open shared object file: No such file or directory

Possible solution could be as decribed in this SO thread but I don’t know how I can control linux level dependencies. Can anyone please help me on this? Thanks.

Is it possible to feed a conda env file for my deplyoment, so I can try resolving the issue as described in this thread Having to run sudo apt-get install libsndfile1 on Linux · Issue #261 · bastibe/python-soundfile · GitHub

You list those dependencies in packages.txt.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.