Deploying in Streamlit Share gives error. I am using Python 3.8

Hi, I am using Streamlit share to deploy my app. I get the following error. And I found somewhere that Python 3.8 will not work for streamlit share. Is it true?

Last few lines of my log given below

Collecting ipykernel==6.7.0
  Downloading ipykernel-6.7.0-py3-none-any.whl (127 kB)
ERROR: Could not find a version that satisfies the requirement ipython==8.0.1 (from versions: 0.10, 0.10.1, 0.10.2, 0.11, 0.12, 0.12.1, 0.13, 0.13.1, 0.13.2, 1.0.0, 1.1.0, 1.2.0, 1.2.1, 2.0.0, 2.1.0, 2.2.0, 2.3.0, 2.3.1, 2.4.0, 2.4.1, 3.0.0, 3.1.0, 3.2.0, 3.2.1, 3.2.2, 3.2.3, 4.0.0b1, 4.0.0, 4.0.1, 4.0.2, 4.0.3, 4.1.0rc1, 4.1.0rc2, 4.1.0, 4.1.1, 4.1.2, 4.2.0, 4.2.1, 5.0.0b1, 5.0.0b2, 5.0.0b3, 5.0.0b4, 5.0.0rc1, 5.0.0, 5.1.0, 5.2.0, 5.2.1, 5.2.2, 5.3.0, 5.4.0, 5.4.1, 5.5.0, 5.6.0, 5.7.0, 5.8.0, 5.9.0, 5.10.0, 6.0.0rc1, 6.0.0, 6.1.0, 6.2.0, 6.2.1, 6.3.0, 6.3.1, 6.4.0, 6.5.0, 7.0.0b1, 7.0.0rc1, 7.0.0, 7.0.1, 7.1.0, 7.1.1, 7.2.0, 7.3.0, 7.4.0, 7.5.0, 7.6.0, 7.6.1, 7.7.0, 7.8.0, 7.9.0, 7.10.0, 7.10.1, 7.10.2, 7.11.0, 7.11.1, 7.12.0, 7.13.0, 7.14.0, 7.15.0, 7.16.0, 7.16.1, 7.16.2, 7.16.3, 7.17.0, 7.18.0, 7.18.1, 7.19.0, 7.20.0, 7.21.0, 7.22.0, 7.23.0, 7.23.1, 7.24.0, 7.24.1, 7.25.0, 7.26.0, 7.27.0, 7.28.0, 7.29.0, 7.30.0, 7.30.1, 7.31.0, 7.31.1)
ERROR: No matching distribution found for ipython==8.0.1
WARNING: You are using pip version 21.1.1; however, version 21.3.1 is available.
You should consider upgrading via the '/home/appuser/venv/bin/python -m pip install --upgrade pip' command.
[manager] installer returned a non-zero exit code
  Stopping...
[manager] Streamlit server consistently failed status checks
[manager] Please fix the errors, push an update to th

I found the solution friends. You can change the version of Python in your app (Advanced settings). You can choose from 3.7, 3.8, and 3.9. I am not sure if it can be done after creating the app. I deleted and created a new app again since I am just beginning with mine.

2 Likes

Unfortunately streamlit is ignoring the python version set in a Pipfile. So even if locally your application runs successfully, it might fail to deploy in the streamlit cloud. Instead to change the Python version for an app one has to delete the app and create it new. Only when creating a new app can one select a different Python version (3.7,3.8,3.9) in the dialog under advanced settings. In my case to deploy ipython 8.4.0 I selected Python 3.9 and that solved my problem.

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