OSError: sndfile library not found

Hey snehankekre!

I have followed your instructions but my streamlit app has an error installing dependencies!
I ahve tried rebooting it a couple of times to no avail.

Can you help me out please?
This is the app - https://share.streamlit.io/soft-nougat/dqw-ivves/app.py
This is the repo - GitHub - soft-nougat/dqw-ivves: DQW is an EDA tool for training data.

Thanks!
Tia

Fixed it! :slight_smile:

All it needed is deleting! I deleted the app and redeployed it - works fine.

Happy holidays! :christmas_tree:

1 Like

ERROR: No matching distribution found for libsndfile1-dev
WARNING: You are using pip version 22.0.3; however, version 22.3.1 is available.
You should consider upgrading via the ‘/home/appuser/venv/bin/python -m pip install --upgrade pip’ command.

raise OSError(‘sndfile library not found’)

I faced the same issue. sndfiIe not found. tried to use above solutions. I used libsndfile1-dev as per the solutions. but now its gave “No matching distribution found for libsndfile1-dev” error. Please help me.

mmtdmackonal/spoofed-audio-detector (github.com)

https://mmtdmackonal-spoofed-audio-detector-main-ce5rkb.streamlit.app/

Reequipments file include:
streamlit
numpy
tensorflow
pandas
matplotlib
opencv-python
wave
opencv-python
soundfile

Thank you.

1 Like

@TM_Daminda welcome to the Streamlit forum! :balloon:

Please read our guidelines on how to post an effective question to the forum, and edit your original post to include all of the following:

Links to your app, GitHub repo, and the contents of your requirements file + packages.txt

@snehankekre Thank you very much for the instructions.

You have entries in your requirements.txt that are not Python packages…

The solution above was to create a packages.txt containing:

libsndfile1-dev

If you keep those non-Python-packages in your requirements file, you are bound to run into more errors.

Thank you sir. now getting error with importing cv2 .