Error deploying the app (python versions)

Hello and happy holidays everyone!

I have this error with deployment regarding this app: it states that there’s a current python version (3.9) that is not allowed in the project (since I am using python 3.12). Streamlit november 2023 release states that it supports python 3.12, so this shouldn’t be an issue. I’d like to know what I can do to properly deploy the app without having to revert to previous python versions. It seems that it’s possible to change python environment in the cloud but the option is not available any more in the app settings. Please, I need your support solving this issue. Here’s requested data:

Error message:
/mount/src/data-visualization-eda /mount/src/data-visualization-eda
Current Python version (3.9.18) is not allowed by the project (^3.12).
Please change python executable via the “env use” command.

App: []


Streamlit version: 1.29.0
Python version: 3.12.1

Hi @sofiammatias

The app linked in the post seems to run normally, thus I assume the app has deployed successfully.

I was able to fix the issue by dropping poetry and using only virtualenv. This way, the app deploys correctly.

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