Log:
2023-09-11T12:07:14.068171777Z [34m╭────────────[34m[30m[44m git repo clone [0m[0m[34m───────────╼[0m
2023-09-11T12:07:14.068209797Z [34m│[0m [34m › fetching app source code[0m
2023-09-11T12:07:14.068213912Z [34m│[0m => Selecting branch "main"
2023-09-11T12:07:22.493876798Z [34m│[0m => Checking out commit "1190a939239f918a1fecd7a0ca45a6238b436030"
2023-09-11T12:07:23.602301627Z [34m│[0m
2023-09-11T12:07:23.608418491Z [34m│[0m [32m ✔ cloned repo to [35m/workspace[0m[0m
2023-09-11T12:07:23.646228439Z [34m╰────────────────────────────────────────╼[0m
2023-09-11T12:07:23.646265462Z
2023-09-11T12:07:23.851594692Z [34m╭────────────[34m[30m[44m buildpack detection [0m[0m[34m───────────╼[0m
2023-09-11T12:07:23.867523626Z [34m│[0m [34m › using Ubuntu 18.04 stack[0m
2023-09-11T12:07:24.060731031Z [34m│[0m Detected the following buildpacks suitable to build your app:
2023-09-11T12:07:24.060756230Z [34m│[0m
2023-09-11T12:07:24.060759385Z [34m│[0m digitalocean/python-appdetect v0.0.3
2023-09-11T12:07:24.060761312Z [34m│[0m heroku/python v2.234.4 (Python)
2023-09-11T12:07:24.060763035Z [34m│[0m digitalocean/procfile v0.0.4 (Procfile)
2023-09-11T12:07:24.060764799Z [34m│[0m digitalocean/custom v0.1.2 (Custom Build Command)
2023-09-11T12:07:24.060766593Z [34m│[0m
2023-09-11T12:07:24.060769223Z [34m│[0m For documentation on the buildpacks used to build your app, please see:
2023-09-11T12:07:24.060771031Z [34m│[0m
2023-09-11T12:07:24.060772830Z [34m│[0m Python v2.234.4 https://do.co/apps-buildpack-python
2023-09-11T12:07:24.063268831Z [34m╰─────────────────────────────────────────────╼[0m
2023-09-11T12:07:24.063281865Z
2023-09-11T12:07:24.066071532Z [34m╭────────────[34m[30m[44m build caching [0m[0m[34m───────────╼[0m
2023-09-11T12:07:24.068331231Z [34m│[0m [34m › checking for cache from a previous build[0m
2023-09-11T12:07:26.584078882Z [34m│[0m Restoring metadata for "heroku/python:shim" from cache
2023-09-11T12:07:27.733977686Z [34m│[0m Restoring data for "heroku/python:shim" from cache
2023-09-11T12:07:42.955813707Z [34m╰───────────────────────────────────────╼[0m
2023-09-11T12:07:42.955993815Z
2023-09-11T12:07:42.959169425Z [34m╭────────────[34m[30m[44m app build [0m[0m[34m───────────╼[0m
2023-09-11T12:07:53.075187068Z [34m│[0m -----> Using Python version specified in runtime.txt
2023-09-11T12:07:53.405760931Z [34m│[0m !
2023-09-11T12:07:53.405803953Z [34m│[0m ! Python 3.7 reached its upstream end-of-life on June 27th, 2023, so no longer
2023-09-11T12:07:53.405809124Z [34m│[0m ! receives any security updates:
2023-09-11T12:07:53.405811890Z [34m│[0m ! https://devguide.python.org/versions/#supported-versions
2023-09-11T12:07:53.405814026Z [34m│[0m !
2023-09-11T12:07:53.405816031Z [34m│[0m ! Support for Python 3.7 will be removed from this buildpack in October 2023.
2023-09-11T12:07:53.405818218Z [34m│[0m !
2023-09-11T12:07:53.405821249Z [34m│[0m ! Upgrade to a newer Python version as soon as possible to keep your app secure.
2023-09-11T12:07:53.405824374Z [34m│[0m ! See: https://devcenter.heroku.com/articles/python-runtimes
2023-09-11T12:07:53.405841635Z [34m│[0m !
2023-09-11T12:07:53.405845616Z [34m│[0m !
2023-09-11T12:07:53.405848718Z [34m│[0m ! A Python security update is available! Upgrade as soon as possible to: python-3.7.17
2023-09-11T12:07:53.405852030Z [34m│[0m ! See: https://devcenter.heroku.com/articles/python-runtimes
2023-09-11T12:07:53.405855359Z [34m│[0m !
2023-09-11T12:07:53.407999663Z [34m│[0m -----> Requirements file has been changed, clearing cached dependencies
2023-09-11T12:07:53.787510819Z [34m│[0m -----> Installing python-3.7.0
2023-09-11T12:07:54.659120758Z [34m│[0m -----> Installing pip 23.2.1, setuptools 68.0.0 and wheel 0.41.0
2023-09-11T12:07:55.493270768Z [34m│[0m Could not install packages due to an EnvironmentError: Could not find a suitable TLS CA certificate bundle, invalid path: .heroku/python/lib/python3.7/ensurepip/_bundled/pip-10.0.1-py2.py3-none-any.whl/pip/_vendor/certifi/cacert.pem
2023-09-11T12:07:55.493324251Z [34m│[0m
2023-09-11T12:07:55.522602803Z [34m│[0m [31;1mERROR: [0mfailed to build: exit status 1
2023-09-11T12:07:55.647751132Z [34m│[0m
2023-09-11T12:07:55.651095344Z [34m│[0m
2023-09-11T12:07:55.651116684Z [34m│[0m For documentation on the buildpacks used to build your app, please see:
2023-09-11T12:07:55.651120393Z [34m│[0m
2023-09-11T12:07:55.651123064Z [34m│[0m Python v2.234.4 https://do.co/apps-buildpack-python
2023-09-11T12:07:55.651403067Z [34m│[0m
2023-09-11T12:07:55.660010659Z [34m│[0m [31m ✘ build failed[0m
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.
Sign up for Infrastructure as a Newsletter.
Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Hi there,
It sounds like you are using an old buildpack on the App Platform. I could suggest upgrading your buildpacks by following the steps here:
Alternatively, you can manually specify the new version by adding the following to your app spec file:
For more information on this I could suggest this discussion here:
Let me know how it goes!
Best,
Bobby