You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can I suggest changing the documentation of the error message perhaps to mention "CURL_CA_BUNDLE_AUTODETECT"? If you google "CURL_CA_BUNDLE_AUTODETECT" there's just over 1000 hits, if you google the error message there are 5000+. And/or the documentation can be updated to include the above code snippet which basically replicates CURL_CA_BUNDLE_AUTODETECT in the same way curl looks for the files.
This is really a bug with the wheel that I haven't figured out how to solve yet. The problem is that manylinux_2_28 wheels are build using AlmaLinux 8, which has a different default CA path that Debian/Ubuntu systems.
Prior to creating an issue, please review the troubleshooting documentation:
http://pycurl.io/docs/dev/troubleshooting.html
What did you try to do?
Load https://seifried.org
What happened?
pycurl.error: (77, 'error setting certificate verify locations:\n CAfile: /etc/pki/tls/certs/ca-bundle.crt\n CApath: none')
What did you expect to happen?
Load website
What is the PycURL version?
What is your Python version?
(output of
python -V
)python3 -V
Python 3.10.12
What is your operating system and its version?
cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.4 LTS"
SUGGESTED SOLUTION:
curl supports a CURL_CA_BUNDLE_AUTODETECT
https://github.com/curl/curl/blob/9e2ee704940e4e8ba38ba770b86a79ec091990bf/CMakeLists.txt#L999
so if this option could be supported in PycURL, so we can use it natively, e.g.:
c.setopt(c.CURL_CA_BUNDLE_AUTODETECT, True)
QUICK WAY TO FIX IN YOUR PYTHON CODE (basically recreate the function):
and then later on:
The text was updated successfully, but these errors were encountered: