I am deploying streamlit app on streamlit cloud. the app uses opencv and mediapipe … i can not solve this error . Can anyone help me solve the below issue
Libraries used
requirements.txt
numpy
opencv-python-headless
mediapipe
I am deploying streamlit app on streamlit cloud. the app uses opencv and mediapipe … i can not solve this error . Can anyone help me solve the below issue
Libraries used
requirements.txt
numpy
opencv-python-headless
mediapipe
Hi @karim-abdulnabi . Instead of opencv-python-headless
use opencv-python-contrib-headless
.
@Guna_Sekhar_Venkata . I changed it but not work also
hi @karim-abdulnabi . could you share the code block of error?
hey @karim-abdulnabi i have seen your github repo. You mentioned requirements.txt file in Sing_Language_Project/st_project/requirements.txt
. Instead of there, move it to the root directory (Sing_Language_Project
) where streamlit can first see the requirements.txt before building the app. So move requirements.text to the root folder named Sing_Language_Project.
Sing_Language_Project
--- requirements.txt
--- rest of the sub directories
Use the follows names in your requirements.txt as follows:
numpy
opencv-contrib-python-headless
streamlit_webrtc==0.47.0
av==10.0.0
deepface==0.0.75
mediapipe==0.9.0.1
tensorflow-cpu==2.13.0
![Screenshot (1)|690x388](upload://qEuFWpeE0JeAKBEH8hgQ8iXILMU.png)
After implementing the modifications, the same problem appears
sorry i have shared wrong directory structure. Follow:
Signe_Language
--- requirements.txt
--- Sing_Language_Project
--- README.md
the same error
@karim-abdulnabi , You are using which python version of your cloud and what is the use of tensorflow-cpu pacakge?
@Guna_Sekhar_Venkata
python 3.10.9
cv2 4.9.0
streamit 1.31.1
Hey @karim-abdulnabi delete the app once and redeploy the app by selecting the python version as 3.9. Don’t mention any specific version of package in the requirements.txt file. Im hoping that it should work now.
Happy Streamlit-ing
@Guna_Sekhar_Venkata , not work But a change in error
packages.txt
and requirements.txt
to the root folder of the github repo.@Franky1 , Yes, there were some requirements that I added, but they did not work either
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
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.
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.
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.
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.