-
-
Notifications
You must be signed in to change notification settings - Fork 413
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
httpx.ConnectError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000) #3317
Comments
Can you run this successfully? import httpx
resp = httpx.get(URL, verify=CA_CERTS_PATH) |
I ran the following:
obtaining:
|
Did you have custom source config and did you set the |
Not sure if I understand but return
|
It's unclear what is the context of the warning message, but you can try disabling Oh, you should also verify the config is set correctly:
|
Based on httpx release history https://pypi.org/project/httpx/#history it looks that on 28th of November version 0.28.0 was released and it seems that pdm is not fully compatible with it. |
Unfortunately, I won't be able to test it before Jan 9th. I am out of country. |
While it is deprecating |
@ubaldot does it work after running this on the venv?
|
Describe the bug
I run
pdm build
resulting in:Then, I tried:
pdm config pypi.ca_certs "C:\Users\yt75534\my_company_ca.pem" -v
resulting in:
I also have
REQUESTS_CA_BUNDLE = "C:\Users\yt75534\my_company_ca.pem
.To reproduce
I am on my company laptop, so it is a bit difficult to reproduce.
Expected Behavior
the sdist is built.
Environment Information
INFO: Inside an active virtualenv C:\Users\yt75534\AppData\Local\miniforge3\envs\myenv, reusing it.
Set env var PDM_IGNORE_ACTIVE_VENV to ignore it.
PDM version:
2.21.0
Python Interpreter:
C:\Users\yt75534\AppData\Local\miniforge3\envs\myenv\python.exe (3.12)
Project Root:
C:/Users/yt75534/Documents/dymoval
Local Packages:
WARNING: Failed to get latest version: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local
issuer certificate (_ssl.c:1000)
INFO: Inside an active virtualenv C:\Users\yt75534\AppData\Local\miniforge3\envs\myenv, reusing it.
Set env var PDM_IGNORE_ACTIVE_VENV to ignore it.
{
"implementation_name": "cpython",
"implementation_version": "3.12.7",
"os_name": "nt",
"platform_machine": "AMD64",
"platform_release": "10",
"platform_system": "Windows",
"platform_version": "10.0.19045",
"python_full_version": "3.12.7",
"platform_python_implementation": "CPython",
"python_version": "3.12",
"sys_platform": "win32"
}
WARNING: Failed to get latest version: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local
issuer certificate (_ssl.c:1000)
pdm -v output
Additional Context
I had the same problem with conda but it has been fixed when I set the REQUESTS_CA_BUNDLE environment variable, I am working on Windows 10 and I installed pdm through conda. The pdm --version is PDM, version 2.21.0.
Are you willing to submit a PR to fix this bug?
The text was updated successfully, but these errors were encountered: