Help with requirements.txt

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.

  2. Error log:
[     UTC     ] Logs for
[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: ''
[12:22:54] 🐙 Cloning repository...
[12:22:55] 🐙 Cloning into '/mount/src/abapp'...
Warning: Permanently added the ED25519 host key for IP address '' 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 ( started
  Preparing metadata ( 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 ( started
  Preparing metadata ( 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.
  1. The github is a private repository, but here is the current requirements.txt file:






and here are the import statements at the top of my file:

import streamlit as st

import hmac

from PIL import Image

:rotating_light: Before clicking “Create Topic”, please make sure your post includes the following information (otherwise, the post will be locked). :rotating_light:

  1. Share the link to the public deployed app.
  2. Share the link to your app’s public GitHub repository (including a requirements file).
  3. Share the full text of the error message (not a screenshot).
  4. Share the Streamlit and Python versions.

You only need this in your requirements file:


The others are not necessary and/or are already part of the python standard library.

Thank you so much!

I guess this issue can be closed

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