heroku / heroku-buildpack-python

Heroku's buildpack for Python applications.
https://www.heroku.com/python
MIT License
2 stars 3 forks source link

Could not install packages due to an EnvironmentError: Could not find a suitable TLS CA certificate bundle, #1484

Closed metinjakupi closed 1 year ago

metinjakupi commented 1 year ago

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

edmorley commented 1 year ago

@metinjakupi Please could you post the full build log? The error would suggest the build was using a very old (and unsupported) Python 3.7 version, however, such old versions are not available on supported Heroku stacks, so something strange must be going on (is this being run outside of Heroku?).

metinjakupi commented 1 year ago

@edmorley, I've been deploying applications on DigitalOcean's App Platform for the past couple of weeks without any issues. However, starting this week, I've been encountering challenges and can't successfully deploy anymore. Here is my build log:

Screenshot 2023-09-11 at 14 17 08

Could you assist me in resolving this? Thank you.

edmorley commented 1 year ago

From the build log I can see that the build is:

The reported error can only occur when using Python <3.7.2 (that doesn't have https://github.com/python/cpython/commit/c743a6ac360cfa1d9de7e6fad98b68fca39367d5). Such Python versions aren't available on supported Heroku stacks, so this is a Digitalocean-specific problem, since they've chosen to continue to support the end of life and insecure Ubuntu 18.04.

Please report the issue to Digitalocean support.

In the meantime updating either Python version or Digitalocean stack will fix the issue you are seeing.

edmorley commented 1 year ago

Closing since this isn't an issue with this buildpack.