Working in Github 100% locally but in Streamlit no working ( all committed )

To make it work in GitHub some requirements versions were updated since it stopped working in both servers.
Now Github locally works. but Streamlit No.
See the log in streamlit.

ERROR: Invalid requirement: 'rembg=2.0.54' (from line 4 of /mount/src/portfolio_idoia/requirements.txt)
Hint: = is not a valid operator. Did you mean == ?
WARNING: You are using pip version 22.0.3; however, version 24.0 is available.
You should consider upgrading via the '/home/adminuser/venv/bin/python -m pip install --upgrade pip' command.
Checking if Streamlit is installed

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

[11:35:43] ❗️ installer returned a non-zero exit code
[11:35:43] ❗️ Error during processing dependencies! Please fix the error and push an update, or try restarting the app.
[11:37:15] ❗️ Streamlit server consistently failed status checks
[11:37:15] ❗️ Please fix the errors, push an update to the git repo, or reboot the app.
[11:35:34] πŸš€ Starting up repository: 'portfolio_idoia', branch: 'master', main module: 'iCodeIdoia_portfolio.py'
[11:35:34] πŸ™ Cloning repository...
[11:35:40] πŸ™ Cloning into '/mount/src/portfolio_idoia'...
Warning: Permanently added the ED25519 host key for IP address '192.30.255.112' to the list of known hosts.
[11:35:40] πŸ™ Cloned repository!
[11:35:40] πŸ™ Pulling code changes from Github...
[11:35:41] πŸ“¦ Processing dependencies...

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

ERROR: Invalid requirement: 'rembg=2.0.54' (from line 4 of /mount/src/portfolio_idoia/requirements.txt)
Hint: = is not a valid operator. Did you mean == ?
WARNING: You are using pip version 22.0.3; however, version 24.0 is available.
You should consider upgrading via the '/home/adminuser/venv/bin/python -m pip install --upgrade pip' command.
Checking if Streamlit is installed

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

[11:35:43] ❗️ installer returned a non-zero exit code
[11:35:43] ❗️ Error during processing dependencies! Please fix the error and push an update, or try restarting the app.
[11:37:15] ❗️ Streamlit server consistently failed status checks
[11:37:15] ❗️ Please fix the errors, push an update to the git repo, or reboot the app.

master

webdevserv/undefined/master/iCodeIdoia_portfolio.py

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

  1. Are you running your app locally or is it deployed?
  2. If your app is deployed:
    a. Is it deployed on Community Cloud or another hosting platform?
    b. Share the link to the public deployed app.
  3. Share the link to your app’s public GitHub repository (including a requirements file).
  4. Share the full text of the error message (not a screenshot).
  5. Share the Streamlit and Python versions.

Hi @LoveCoffee

Could you try using an older version such as rembg==2.0.49 and see if that works.

The error message is quite clear, this was a syntax error in the requirements file, seems to be fixed now.

thanks dataprofessor. All works on python 3.8 (only) but the buy me coffee button works on github space but does not work on the streamlit server.

this line it has problem with.
from streamlit_extras.buy_me_a_coffee import button

ModuleNotFoundError: No module named β€˜streamlit_extras’

2024-02-10 16:19:18.664 503 GET /script-health-check (10.13.29.99) 144.21ms

master

Error message should be quite clear!?
It is not in the requirements.

1 Like

Yes, you were absolutely right. Thank you.

1 Like

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