Deployment Failing: runtime.txt is ignored, forcing Python 3.13

Hello Streamlit Team,

I am having a persistent issue deploying my app. My app requires TensorFlow, so I have specified a compatible Python version in my runtime.txt file, but the deployment process seems to be ignoring this file completely.

  • GitHub Repo: https://github.com/Niammwhb/deteksi-katarak-app
  • Streamlit App URL: https://deteksi-katarak-app-qswadmqdwy3madjqpao9jc.streamlit.app/

Problem Description: I have a runtime.txt file in my repository with "python-3.11" as the content. However, the deployment logs consistently show that the environment is being built with Python 3.13.3. This causes the installation of tensorflow-cpu==2.12.0 to fail, as there is no compatible version for Python 3.13.

What I have already tried:

  • Rebooting the app multiple times.
  • Deleting the app from the dashboard and redeploying it from scratch.

Despite these actions, the issue persists. It seems to be a platform-side problem where the runtime.txt configuration is not being respected.

Could you please look into this? Thank you.

Here are the latest logs:

Community Cloud does not use a runtime.txt file to set the version of Python. Instead, you need to select the version of Python in the UI (or change it from the app settings in your dashboard).