Hi there,
I am new to python and streamlit. My streamlit app is working on my local machine, but I am getting an error when trying to deploy to the cloud and I think it has to do with my requirements.txt. If anyone could help me figure this out it would be much appreciated. I’ve fooled with it for a few hours and can’t figure it out.
- ashbreeze.streamlit.app
- Error log:
[ UTC ] Logs for ashbreeze.streamlit.app/
────────────────────────────────────────────────────────────────────────────────────────
[12:23:11] 🖥 Provisioning machine...
[12:23:11] 🎛 Preparing system...
[12:23:11] ⛓ Spinning up manager process...
[12:22:54] 🚀 Starting up repository: 'abapp', branch: 'master', main module: 'app.py'
[12:22:54] 🐙 Cloning repository...
[12:22:55] 🐙 Cloning into '/mount/src/abapp'...
Warning: Permanently added the ED25519 host key for IP address '192.30.255.112' to the list of known hosts.
[12:22:55] 🐙 Cloned repository!
[12:22:55] 🐙 Pulling code changes from Github...
[12:22:56] 📦 Processing dependencies...
──────────────────────────────────────── pip ───────────────────────────────────────────
Collecting streamlit
Downloading streamlit-1.28.2-py2.py3-none-any.whl (8.4 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 8.4/8.4 MB 108.1 MB/s eta 0:00:00[2023-11-25 12:22:57.692199]
Collecting hmac
Downloading hmac-20101005.tar.gz (4.5 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting Pillow
Downloading Pillow-10.1.0-cp39-cp39-manylinux_2_28_x86_64.whl (3.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.6/3.6 MB 257.0 MB/s eta 0:00:00[2023-11-25 12:22:58.494756]
Collecting Image
Downloading image-1.5.33.tar.gz (15 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
ERROR: Could not find a version that satisfies the requirement hashlib (from versions: 20081119)
ERROR: No matching distribution found for hashlib
WARNING: You are using pip version 22.0.3; however, version 23.3.1 is available.
You should consider upgrading via the '/home/adminuser/venv/bin/python -m pip install --upgrade pip' command.
Checking if Streamlit is installed
────────────────────────────────────────────────────────────────────────────────────────
[12:22:59] ❗️ installer returned a non-zero exit code
[12:22:59] ❗️ Error during processing dependencies! Please fix the error and push an update, or try restarting the app.
[12:24:34] ❗️ Streamlit server consistently failed status checks
[12:24:34] ❗️ Please fix the errors, push an update to the git repo, or reboot the app.
- The github is a private repository, but here is the current requirements.txt file:
streamlit
hmac
Pillow
Image
hashlib
and here are the import statements at the top of my app.py file:
import streamlit as st
import hmac
from PIL import Image
Before clicking “Create Topic”, please make sure your post includes the following information (otherwise, the post will be locked).
- Share the link to the public deployed app.
- Share the link to your app’s public GitHub repository (including a requirements file).
- Share the full text of the error message (not a screenshot).
- Share the Streamlit and Python versions.