It is working on localhost but throws error when deploying on streamlit share
Kanak
April 12, 2022, 10:46am
2
Hey @Selva-Subramanian
Welcome to the Streamlit Community
Can you make a packages.txt file and add cmake to it and try deploying again?
Best
Kanak
Thank you,
[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]
This file has been truncated. show original
c++: fatal error: Killed signal terminated program cc1plus
compilation terminated. Still facing error.
Kanak
April 12, 2022, 12:56pm
4
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,
ResolvePackageNotFound:
cv2
streamlit_webrtc
datetime
pickle
Do you have any idea on how to fix this?
Kanak
April 12, 2022, 1:42pm
6
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) .