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
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.