It is working on localhost but throws error when deploying on streamlit share
Welcome to the Streamlit Community
Can you make a
packages.txt file and add cmake to it and try deploying again?
This file has been truncated.
[client] Deleting app...
[client] Provisioning machine...
[client] Preparing system...
[32m[manager] [0mStarting up repository: 'facerecognition-drowsinessdetection', branch: 'main', main module: 'app.py'
[32m[manager] [0mCloning repository...
[32m[manager] [0mCloning into '/app/facerecognition-drowsinessdetection'...
[32m[manager] [0mCloned repository!
[32m[manager] [0mPulling code changes from Github...
[32m[manager] [0mProcessing dependencies...
[32m[manager] [0mapt dependencies were installed from /app/facerecognition-drowsinessdetection/packages.txt using apt-get.
Hit:1 http://deb.debian.org/debian bullseye InRelease
Get:2 http://deb.debian.org/debian bullseye-updates InRelease [39.4 kB]
Get:3 http://security.debian.org/debian-security bullseye-security InRelease [44.1 kB]
Get:4 http://security.debian.org/debian-security stretch/updates InRelease [53.0 kB]
Get:5 https://packages.microsoft.com/debian/10/prod buster InRelease [29.8 kB]
[client] Spinning up manager process...
Get:6 http://security.debian.org/debian-security bullseye-security/main amd64 Packages [124 kB]
Get:7 http://security.debian.org/debian-security stretch/updates/main amd64 Packages [762 kB]
c++: fatal error: Killed signal terminated program cc1plus
compilation terminated. Still facing error.
According to the discussion
c++: fatal error: Killed signal terminated program cc1plus · Issue #280 · soedinglab/hh-suite (github.com), this error occurs due to overutilization of resources.
Since the resources on Cloud are limited (specifically on the free tier) I don’t think it is possible to run your app. Though my knowledge of the subject is limited and I am curious to know what other people think about this.
I followed the steps mentioned in
this discussion by @snehankekre
Got this error,
Do you have any idea on how to fix this?
Since you already added opencv to your environment.yml file and it seems to be running perfectly, you don’t need to add cv2.
Also pickle and datetime library also come preinstalled with python so you don’t need to install them.
streamlit_webrtc is tricky though. It is not available to be installed through conda
conda install available soon? · Issue #220 · whitphx/streamlit-webrtc (github.com).