Open marswong opened 1 day ago
Run this small snippet and see if that produces error:
import truststore, certifi, ssl
ctx = truststore.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
cert_path = certifi.where()
print(cert_path)
ctx.load_verify_locations(cert_path)
Run this small snippet and see if that produces error:
import truststore, certifi, ssl ctx = truststore.SSLContext(ssl.PROTOCOL_TLS_CLIENT) cert_path = certifi.where() print(cert_path) ctx.load_verify_locations(cert_path)
I cannot install truststore
using my default python version 3.9.19, but it works fine if I switch to 3.12.6 using pyenv
.
run that in the same environment of pdm
run that in the same environment of pdm
same as the error logs above:
Python 3.12.6 (main, Sep 6 2024, 19:03:47) [Clang 16.0.0 (clang-1600.0.26.3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import truststore, certifi, ssl
>>> ctx = truststore.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
>>> cert_path = certifi.where()
>>> print(cert_path)
/opt/homebrew/opt/certifi/lib/python3.12/site-packages/certifi/cacert.pem
>>> ctx.load_verify_locations(cert_path)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/homebrew/Cellar/pdm/2.18.2/libexec/lib/python3.12/site-packages/truststore/_api.py", line 135, in load_verify_locations
return self._ctx.load_verify_locations(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory
does the cert_path exist? and anyway it proves not a problem of pdm
does the cert_path exist? and anyway it proves not a problem of pdm
Yes, but the cacert.pem
is a blank file, is it expected? So how can I fix this, it worked before upgrading to macOS 15.0
try reinstalling the forluma with homebrew
Make sure you run commands with
-v
flag before pasting the output.Steps to reproduce
pdm
throughbrew install pdm
on macOS 15.0pdm self update -v
Actual behavior
Expected behavior
No errors.
Environment Information
always get an error of
FileNotFoundError: [Errno 2] No such file or directory
while running any comand.