Hello guys i am getting the same errors as above but i have deployed the app through heroku, it is successfully deployed but getting an error same as above please help.
this is the content of my requirement.txt file:
streamlit==0.84.1
opencv-python-headless
numpy==1.19.5
Pillow==8.2.0
mediapipe==0.8.6
face-recognition==1.3.0
My requirement.txt file contains the following
av==9.2.0
keras==2.9.0
mediapipe==0.8.10.1
numpy==1.23.0
opencv-python-headless==4.6.0.66
streamlit==1.10.0
streamlit_webrtc==0.42.0
Its running smoothly on my localhost, but giving me error when trying to deploy it on heroku or streamlit.
On my local machine I’ve Python 3.10.5 installed.
ImportError: libGL.so.1: cannot open shared object file: No such file or directory
File “/app/.heroku/python/lib/python3.10/site-packages/streamlit/scriptrunner/script_runner.py”, line 554, in _run_script
exec(code, module.dict)File “music.py”, line 4, in
import cv2
so first it takes Song Language & Singer name as input then it captures facial expressions to detect the mood of the user, but the app crashes in midway.
I got the same problem with open cv. I can run it locally but it doesn’t work online.
File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script
exec(code, module.__dict__)File "/app/web_app_streamlit/pages/02_Gender_and_Age_detection.py", line 4, in <module>
import cv2