Digital Ocean Apps deployment fails with “Requested runtime ‘python-3.9.18’ is not available for this stack (heroku-22)”
├── Diamour_backend ├── Dockerfile ├── authent ├── category_images ├── cloud-sql-proxy ├── cloudmigrate.yaml ├── core ├── db.sqlite3 ├── env ├── manage.py ├── requirements.txt ├── runtime.txt ├── static └── uploads
2023-10-15T07:47:26.100177307Z [34m│[0m -----> Using Python version specified in runtime.txt 2023-10-15T07:47:26.340853113Z [34m│[0m ! Requested runtime 'python-3.9.18' is not available for this stack (heroku-22). 2023-10-15T07:47:26.340887065Z [34m│[0m ! For supported versions, see: https://devcenter.heroku.com/articles/python-support
Although the documentation for Digital Ocean Apps states that Python 3.9.18 is a supported runtime, I am receiving the error message above when I try to deploy my application. I have checked that the runtime.txt file is in the root directory of my application, and that it contains the correct Python version.
I am using the heroku-22 stack, which is the latest stack available for Digital Ocean Apps. And according the support article from Heroku it does support the 3.9.18 version.
Can you please help me troubleshoot this issue?
Thank you for your time and assistance.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.