I wrote my code in Streamlit and I’ve been using “sounddevice” for my app. I placed sounddevice in my requirements.txt in my github repo and also imported it in my streamlit code. It works well in my local Streamlit. However, I keep on getting this error every time I deploy my app in Heroku:
OSError: PortAudio library not found Traceback: File "/app/.heroku/python/lib/python3.6/site-packages/streamlit/ScriptRunner.py", line 314, in _run_script exec(code, module.__dict__) File "/app/helloworld.py", line 11, in <module> import sounddevice as sd File "/app/.heroku/python/lib/python3.6/site-packages/sounddevice.py", line 71, in <module> raise OSError('PortAudio library not found')
Would anyone know how to go about this? Thank you!