Changing to the documented version, these values are completely ignored and the system drops down to a dockerfile for Python 2.7… with the error
Step #1: DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at…
runtime: python
env: flex
entrypoint: gunicorn -k eventlet -b :8080 main:app
runtime_config:
operating_system: "ubuntu22"
runtime_version: "3.10" # I've tried a few variations with and without quotes 3.8, 3.9 etc.
network:
session_affinity: true
manual_scaling:
instances: 1
resources:
cpu: .2
memory_gb: 0.5
disk_size_gb: 10
I understand that you are using the latest gcloud version but based on the deprecation error you shared, it looks like it was caused by a Python/pip compatibility and dependency issue.
Ensure Python compatibility:
Make sure your application is compatible and fully migrated to use Python 3.8 and above and you have tested it locally with this version
Check dependencies:
Ensure all dependencies in your requirements.txt are compatible with Python 3.8 and above. Update any outdated or incompatible packages
Use latest version: Omit the runtime_version to always install the latest supported Python version on Ubuntu 22
Hi @jaydubu thanks so much for your quick reply, this sorted it.
I’m still not au fait with venv and the current python interpreter etc. having a bearing on deployment.. I’ll try to make sure everything is in sync the next time I deploy or need to move beyond what I have now.