-
I am calling a Python package from Julia using PythonCall. A function in the package is doing an HTTP request to download some data from a website. When I import and run the function from Julia, I get the following error about some SSL certificate issue. ERROR: Python: URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)> However, when I run the same function directly from the Python installed in the local conda environment (the .CondaPkg env), everything is working like a charm. Is there something I am doing wrong? Maybe there are some option I should change in PythonCall related to libraries or something? I am a bit desperate right now after trying some solutions for hours without any success so I am hoping someone more competent will be able to help 😅 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 11 replies
-
Only thing that springs to mind is to see if |
Beta Was this translation helpful? Give feedback.
I think HTTP.jl just doesn't use OpenSSL's defaults at all and uses NetworkOptions instead to find the certs.
There may be some magic PythonCall can do to get this working automagically, for example it could set
SSL_CERT_FILE
as you do above, or could do