Hi there, today I rebooted my DigitalOcean app and kept encountering build errors.
-15 19:40:58] │ -----> Using Python version specified in runtime.txt
[2023-08-15 19:40:59] │ ! Requested runtime 'python-3.10.4' is not available for this stack (heroku-18).
[2023-08-15 19:40:59] │ ! For supported versions, see: https://devcenter.heroku.com/articles/python-support
[2023-08-15 19:40:59] │ ERROR: failed to build: exit status 1
[2023-08-15 19:40:59] │
[2023-08-15 19:40:59] │
[2023-08-15 19:40:59] │ For documentation on the buildpacks used to build your app, please see:
[2023-08-15 19:40:59] │
[2023-08-15 19:40:59] │ Python v2.231.4 https://do.co/apps-buildpack-python
[2023-08-15 19:40:59] │
[2023-08-15 19:40:59] │ ✘ build failed
It is surprising to me that DigitalOcean apps utilize heroku-18 since that has been officially declared as end-of-life since april 30th. Is there anyway that I can upgrade this heroku version so it can support my current Python version?
As addition, running the app with the supposed supported runtimes (https://devcenter.heroku.com/articles/python-support#supported-runtimes) also threw a build error.
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.
👋 hello,
Thanks for reaching out. For better support for newer Python runtimes, consider upgrading your app to our ubuntu-22 stack.
You can do this by adding a flag to your app spec (in app settings):
A full example spec could be:
Hi there,
I could suggest checking if there are any buildpacks upgrades available for your app.
To upgrade all of the app’s and its components’ buildpacks simultaneously, go to the control panel and click on the app with buildpacks you want to upgrade. Then, click on the app’s Overview tab. If any buildpacks have available upgrades, this page has a card titled Buildpack Upgrades Available. To upgrade, click the Deploy Upgrades button in this card. Note that this process redeploys your app.
If there are no buildpack upgrades available, is your repository open-source by any chance? If so, can you share a link here so I could take a look and see if there are any configuration settings that might be causing the problem?
Best,
Bobby