I'm getting error when creating my app in streamlit

I’m creating a DETR object detection app, I also got the account from the streamlit that I can now deploy it but, when I’m deploying the error from streamlit falls below…

[client] Provisioning machine…
[client] Preparing system…
[manager] Starting up for owner: ‘debparth’, repository: ‘detr_with_streamlit’, branch: ‘main’, main module: ‘app.py’
[manager] Cloning repository …
[manager] Cloning into ‘detr_with_streamlit’…
[manager] Cloned repository!
[manager] Processing dependencies …
Collecting numpy==1.18.5
Downloading numpy-1.18.5-cp37-cp37m-manylinux1_x86_64.whl (20.1 MB)
Collecting opencv-python==4.1.2.30
Downloading opencv_python-4.1.2.30-cp37-cp37m-manylinux1_x86_64.whl (28.3 MB)
Collecting pillow==7.0.0
Downloading Pillow-7.0.0-cp37-cp37m-manylinux1_x86_64.whl (2.1 MB)
Collecting torch==1.7.0
Downloading torch-1.7.0-cp37-cp37m-manylinux1_x86_64.whl (776.7 MB)
[client] Spinning up manager process…
Collecting torchvision==0.8.1
Downloading torchvision-0.8.1-cp37-cp37m-manylinux1_x86_64.whl (12.7 MB)
Collecting dataclasses
Downloading dataclasses-0.6-py3-none-any.whl (14 kB)
Collecting future
Downloading future-0.18.2.tar.gz (829 kB)
Collecting typing-extensions
Downloading typing_extensions-3.7.4.3-py3-none-any.whl (22 kB)
Building wheels for collected packages: future
Building wheel for future (setup.py): started
Building wheel for future (setup.py): finished with status ‘done’
Created wheel for future: filename=future-0.18.2-py3-none-any.whl size=491058 sha256=b0e11e3935e5d9d3de67e6d98c4d8e4a62dbea07bfaf1e61c40dd3be4d6eb41e
Stored in directory: /home/appuser/.cache/pip/wheels/56/b0/fe/4410d17b32f1f0c3cf54cdfb2bc04d7b4b8f4ae377e2229ba0
Successfully built future
Installing collected packages: typing-extensions, numpy, future, dataclasses, torch, pillow, torchvision, opencv-python
Successfully installed dataclasses-0.6 future-0.18.2 numpy-1.18.5 opencv-python-4.1.2.30 pillow-7.0.0 torch-1.7.0 torchvision-0.8.1 typing-extensions-3.7.4.3
[manager] Processed dependencies!
[manager] Error checking Streamlit healthz: Get “http://localhost:8501/healthz”: dial tcp 127.0.0.1:8501: connect: connection refused
[manager] Error checking Streamlit healthz: Get “http://localhost:8501/healthz”: dial tcp 127.0.0.1:8501: connect: connection refused
[manager] Error checking Streamlit healthz: Get “http://localhost:8501/healthz”: dial tcp 127.0.0.1:8501: connect: connection refused
[manager] Error checking Streamlit healthz: Get “http://localhost:8501/healthz”: dial tcp 127.0.0.1:8501: connect: connection refused
[manager] Error checking Streamlit healthz: Get “http://localhost:8501/healthz”: dial tcp 127.0.0.1:8501: connect: connection refused
[manager] Error checking Streamlit healthz: Get “http://localhost:8501/healthz”: dial tcp 127.0.0.1:8501: connect: connection refused
[manager] Error checking Streamlit healthz: Get “http://localhost:8501/healthz”: dial tcp 127.0.0.1:8501: connect: connection refused
[manager] Error checking Streamlit healthz: Get “http://localhost:8501/healthz”: dial tcp 127.0.0.1:8501: connect: connection refused
[manager] Error checking Streamlit healthz: Get “http://localhost:8501/healthz”: dial tcp 127.0.0.1:8501: connect: connection refused
[manager] Error checking Streamlit healthz: Get “http://localhost:8501/healthz”: dial tcp 127.0.0.1:8501: connect: connection refused
[manager] Streamlit server consistently failed status checks
[manager] Please fix the errors, push an update to the git repo, or reboot the app.

My github repo: debparth/detr_with_streamlit (github.com)
Can anyone help me!?

1 Like

Same error here:

Log trace: https://pastebin.com/7jT96YXj
Repo: https://github.com/CharlyWargnier/StreamlitZeroShotTransformersTest
App on S4: https://share.streamlit.io/charlywargnier/streamlitzeroshottransformerstest/main/app.py

I’ve documented my issue in more details here:

Thanks,
Charly

** EDIT 2: I found out here at that matplotlib and streamlit isnt the best combination
I added `from matplotlib.backends.backend_agg import RendererAgg
_lock = RendererAgg.lock

and all the plotcode in a `with _lock:``

EDIT: I deleted the app and reinstalled it. Now it works :slight_smile:

Same error here. Everything worked perfectly, I made one error in a string, corrected it and bye bye :frowning:

The code is generating three graphs from a formula, no data involved, so I guess it’s not a memory issue…

https://share.streamlit.io/rcsmit/covidcases/main/number_of_cases_interactive.py