Streamlit App can't deploy -> Solved!

Hello.

I could deploy this app a few month ago, but it stopped working some time ago…

I’ve had to reboot many times already.
No signs of improvement.

“installer returned a non-zero exit code”
“Error during processing dependencies! Please fix the error and push an update, or try restarting the app.”
“Streamlit server consistently failed status checks”
“Please fix the errors, push an update to the git repo, or reboot the app.”

package.txt

freeglut3-dev
libgtk2.0-dev
libgl1-mesa-glx
tesseract-ocr
libtesseract-dev
libtesseract4
tesseract-ocr-all

requirements.txt

streamlit==1.10.0
numpy==1.22.4
deepface
opencv-python-headless==4.6.0.66
pillow

I can’t get it to work because of using “deepface” in my estimation.
Git Hub of this app

Hi @K_Kikuchi and welcome to our forums! :vulcan_salute:

I’m not familiar with Deepface, but upon checking the library, it relies on some other important packages such as TensorFlow, Keras, and OpenCV. Although you have specified opencv-python-headless, TensorFlow, and Keras are not listed.

Could you please try to explicitly list all dependencies in your requirements.txt and see whether that solves this issue?

Thanks,
Charly

Thank you very much for your help.
I specified others.
But it didn’t work yet…

requirements.txt

streamlit==1.10.0
numpy==1.22.4
deepface==0.0.79
opencv-python-headless==4.6.0.66
Pillow==9.5.0
pandas==2.0.2
tqdm==4.65.0
gdown==4.7.1
tensorflow==2.12.0
keras==2.12.0
Flask==2.3.2
mtcnn==0.1.1
retina-face==0.0.13
fire==0.5.0
gunicorn==20.1.0
six==1.16.0
termcolor==2.3.0
Werkzeug==2.3.6
Jinja2==3.1.2
itsdangerous==2.1.2
click==8.1.3
blinker==1.6.2
filelock==3.12.2
requests==2.31.0
requests-oauthlib==1.3.1
beautifulsoup4==4.12.2
setuptools==65.5.0
python-dateutil==2.8.2
pytz==2023.3
pytz-deprecation-shim==0.1.0.post0
tzdata==2023.3
tensorflow-intel==2.12.0
absl-py==1.4.0
astunparse==1.6.3
flatbuffers==23.5.26
gast==0.4.0
google-pasta==0.2.0
h5py==3.8.0
jax==0.4.12
libclang==16.0.0
opt-einsum==3.3.0
packaging==23.1
protobuf==4.23.2
typing-extensions==4.6.3
wrapt==1.14.1
grpcio==1.54.2
tensorboard==2.12.3
tensorflow-estimator==2.12.0
tensorflow-io-gcs-filesystem==0.31.0
colorama==0.4.6
MarkupSafe==2.1.3
soupsieve==2.4.1
charset-normalizer==3.1.0
idna==3.4
urllib3==1.26.16
certifi==2023.5.7
PySocks==1.7.1
wheel==0.40.0
ml-dtypes==0.2.0
scipy==1.10.1
google-auth==2.20.0
google-auth-oauthlib==1.0.0
Markdown==3.4.3
markdown-it-py==2.2.0
tensorboard-data-server==0.7.1
cachetools==5.3.1
pyasn1==0.5.0
pyasn1-modules==0.3.0
oauthlib==3.2.2

Thanks, @K_Kikuchi!

There’s possibly an issue with libtesseract4 as the error log mentions:

Unable to locate the package libtesseract4.

I’ve passed your issue to the devs to get feedback about this. We’ll keep you posted soon with a more precise diagnosis.

Thanks for your patience.

Charly

2 Likes

Hi @K_Kikuchi :wave:

I was able to fork your repo and successfully deploy + use your app by cleaning up the requirements and packages files. If making the below changes and rebooting the app doesn’t work, I’d suggest deleting the app on Community Cloud, making the below changes and redeploying using Python 3.9.

Here are the cleaned up files:

packages.txt
libgl1
requirements.txt
opencv-python-headless==4.8.0.74
streamlit==1.25.0
Pillow==9.5.0
deepface==0.0.79

Making only the above changes, I was able to both deploy and use the app without errors! :point_down:

Hope this helps!

Happy Streamlit-ing :balloon:

4 Likes

Great one!

Thanks for your help, Snehan!

@snehankekre
Oh my…

Thank you sooooooooooooo much!!!

Thank you very much for your cooperation!!!

Safely up and running without incident!
:smile:
Kikuchi

1 Like

@Charly_Wargnier

Thank you for your efforts to resolve this issue!
This is trouble for the first time, so I’m so nervous!

You were encouraging!

Kikuchi

1 Like

You’re welcome!

I’m glad it’s working for you now, @K_Kikuchi! :hugs:

Charly

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.