This is my Streamlit App
This is my GitHub repository
I need to use python 3.10.11 but when I try to deploy it automatically uses python 3.14. I have included a file .runtime.txt to tell it to use 3.10.11 but it bypasses it and uses 3.14 anyway. I tried getting it to use 3.11 but it still ignored it. Due to this I keep bouncing between 2 errors based on if i keep packages.txt with libgl1 and libglib2.0-0 in it, it shows:
Reading package lists…[2026-09-08 16:51:23.294188]
E: Release file for http://deb.debian.org/debian-security/dists/bullseye-security/InRelease is expired (invalid since 19h 38min 18s). Updates for this repository will not be applied.
[16:51:23]
installer returned a non-zero exit code
[16:51:23]
Error during processing dependencies! Please fix the error and push an update, or try restarting the app.
When packages.txt does not exist:
ImportError: libGL.so.1: cannot open shared object file: No such file or
directory
Python: 3.14.7 (main, Sep 1 2026, 00:05:20) [GCC 14.2.0]
OpenCV import failed: libGL.so.1: cannot open shared object file: No such file or directory
It runs just fine locally, using Python 3.10.11 and Streamlit, version 1.62.0, its only when I tried to deploy I have been having these issues due to the versions of python. I am using MediaPipe as part of my app and it needs an older version of python to run.
