Streamlit app unable to deploy

  1. Here is my Streamlit app on the cloud: https://streamchatgit-ctiwubmfcvu6s5knez4q8x.streamlit.app/

  2. Here is my github link, the dependencies are stored in the Dependencies folder under the “src” subdirectory: GitHub - B-IJoe1/Streamchat

  3. Here is the full list of the error:

[22:53:20] ❗️ installer returned a non-zero exit code
[22:56:46] 🖥 Provisioning machine...
[22:56:51] 🎛 Preparing system...
[22:56:51] 🚀 Starting up repository: 'streamchat', branch: 'main', main module: 'src/Main/main.py'
[22:56:51] 🐙 Cloning repository...
[22:56:51] 🐙 Cloning into '/mount/src/streamchat'...
[22:56:51] 🐙 Cloned repository!
[22:56:51] 🐙 Pulling code changes from Github...
[22:56:52] 📦 Processing dependencies...
──────────────────────────────────────── uv ───────────────────────────────────────────
Using uv pip install.
error: Expected `--hash`, found `"--index-url"` at requirements.txt:14:20
Checking if Streamlit is installed
Installing rich for an improved exception logging
Using uv pip install.
Using Python 3.13.5 environment at /home/adminuser/venv
Resolved 4 packages in 126ms
Prepared 4 packages in 127ms
Installed [2025-06-30 22:56:52.724414] 4 packages in 24ms
 + markdown-it-py==3.0.0
 +[2025-06-30 22:56:52.724906]  mdurl==0.1.2
 + pygments==2.19.2
 + rich==14.0.0

────────────────────────────────────────────────────────────────────────────────────────

[22:56:53] ⛓ Spinning up manager process...

──────────────────────────────────────── pip ───────────────────────────────────────────

Using standard pip install.
Collecting pip==25.1.1 (from -r /mount/src/streamchat/requirements.txt (line 2))
  Downloading pip-25.1.1-py3-none-any.whl.metadata (3.6 kB)
Collecting streamlit (from -r /mount/src/streamchat/requirements.txt (line 4))
  Downloading streamlit-1.46.1-py3-none-any.whl.metadata (9.0 kB)
Collecting langchain-community (from -r /mount/src/streamchat/requirements.txt (line 5))
  Downloading langchain_community-0.3.26-py3-none-any.whl.metadata (2.9 kB)
Collecting langchain-huggingface (from -r /mount/src/streamchat/requirements.txt (line 6))
  Downloading langchain_huggingface-0.3.0-py3-none-any.whl.metadata (996 bytes)
Collecting sentence-transformers (from -r /mount/src/streamchat/requirements.txt (line 7))
  Downloading sentence_transformers-4.1.0-py3-none-any.whl.metadata (13 kB)
Collecting transformers (from -r /mount/src/streamchat/requirements.txt (line 8))
  Downloading transformers-4.53.0-py3-none-any.whl.metadata (39 kB)
Collecting faiss-cpu (from -r /mount/src/streamchat/requirements.txt (line 9))
  Downloading faiss_cpu-1.11.0-cp313-cp313-manylinux_2_28_x86_64.whl.metadata (4.8 kB)
Collecting bertopic (from -r /mount/src/streamchat/requirements.txt (line 10))
  Downloading bertopic-0.17.0-py3-none-any.whl.metadata (23 kB)
Collecting toml (from -r /mount/src/streamchat/requirements.txt (line 11))
  Downloading toml-0.10.2-py2.py3-none-any.whl.metadata (7.1 kB)
ERROR: Ignored the following versions that require a different python version: 0.55.2 Requires-Python <3.5
ERROR: Could not find a version that satisfies the requirement torch==2.0.1+cu121 (from versions: 2.5.0, 2.5.1, 2.6.0, 2.7.0, 2.7.1)
ERROR: No matching distribution found for torch==2.0.1+cu121

[notice] A new release of pip is available: 24.0 -> 25.1.1
[notice] To update, run: pip install --upgrade pip
Checking if Streamlit is installed
Installing rich for an improved exception logging
Using standard pip install.
Collecting rich>=10.14.0
  Downloading rich-14.0.0-py3-none-any.whl.metadata (18 kB)
Collecting markdown-it-py>=2.2.0 (from rich>=10.14.0)
  Downloading markdown_it_py-3.0.0-py3-none-any.whl.metadata (6.9 kB)
Collecting pygments<3.0.0,>=2.13.0 (from rich>=10.14.0)
  Downloading pygments-2.19.2-py3-none-any.whl.metadata (2.5 kB)
Collecting mdurl~=0.1 (from markdown-it-py>=2.2.0->rich>=10.14.0)
  Downloading mdurl-0.1.2-py3-none-any.whl.metadata (1.6 kB)
Downloading rich-14.0.0-py3-none-any.whl (243 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 243.2/243.2 kB 15.8 MB/s eta 0:00:00[2025-06-30 22:56:58.135776] 
Downloading markdown_it_py-3.0.0-py3-none-any.whl (87 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 87.5/87.5 kB 141.4 MB/s eta 0:00:00
Downloading pygments-2.19.2-py3-none-any.whl (1.2 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 77.4 MB/s eta 0:00:00[2025-06-30 22:56:58.185428] 
Downloading mdurl-0.1.2-py3-none-any.whl (10.0 kB)
Installing collected packages: pygments, mdurl, markdown-it-py, rich
  Attempting uninstall: pygments
    Found existing installation: Pygments 2.19.2
    Uninstalling Pygments-2.19.2:
      Successfully uninstalled Pygments-2.19.2
  Attempting uninstall: mdurl
    Found existing installation: mdurl 0.1.2
    Uninstalling mdurl-0.1.2:
      Successfully uninstalled mdurl-0.1.2
  Attempting uninstall: markdown-it-py
    Found existing installation: markdown-it-py 3.0.0
    Uninstalling markdown-it-py-3.0.0:
      Successfully uninstalled markdown-it-py-3.0.0
  Attempting uninstall: rich
    Found existing installation: rich 14.0.0
    Uninstalling rich-14.0.0:
      Successfully uninstalled rich-14.0.0
Successfully installed markdown-it-py-3.0.0 mdurl-0.1.2 pygments-2.19.2 rich-14.0.0

[notice] A new release of pip is available: 24.0 -> 25.1.1
[notice] To update, run: pip install --upgrade pip

────────────────────────────────────────────────────────────────────────────────────────

[22:57:01] ❗️ installer returned a non-zero exit code
[22:57:01] ❗️ Error during processing dependencies! Please fix the error and push an update, or try restarting the app.
  1. Here is my streamlit version: 1.46.1

  2. My Python version is 3.11.4

Within the logs you posted, three lines are labeled “ERROR:”

ERROR: Ignored the following versions that require a different python version: 0.55.2 Requires-Python <3.5
ERROR: Could not find a version that satisfies the requirement torch==2.0.1+cu121 (from versions: 2.5.0, 2.5.1, 2.6.0, 2.7.0, 2.7.1)
ERROR: No matching distribution found for torch==2.0.1+cu121

Did you set the version of Python when you deployed the app?

I may not have done that because when I write pip show python on my VsCode it didn’t show a version. If anything how do I set the python version?

The link provided in the previous post shows how to set the version during deployment. You can also access your app’s settings from your app dashboard.

1 Like

Thank you!