Closed tcarion closed 1 year ago
Another workaround is to run
py"""
import ssl
ssl._create_default_https_context = ssl._create_unverified_context
"""
but I would prefer to keep ssl certification, so I would be happy to hear if anyone has a better idea :relaxed:
if someone else faces this error, you can set this by:
ENV["SSL_CERT_FILE"]="/path/to/ssl/cert.pem"
ENV["SSL_CERT_DIR"]="/path/to//ssl/certs"
followed by:
using Pkg; Pkg.build("PyCall")
hope this helps!
Thanks! Setting up your environment variables is not something we can really do from the PyCall package…
Hi!
When I'm executing this script in Julia:
it fails on a
URLError(SSLCertVerificationError)
When I'm executing exactly the same directly with python (with the same python installation), everything works fine:
I found a workaround by adding/replacing with these lines:
The problem is that in my case
urllib
is used from another module, and I would like to find an easier workaround than changing the source code of the module. Would you have any other idea? Thanks in advance!