bark icon indicating copy to clipboard operation
bark copied to clipboard

No certificate issue

Open Deepwater1000 opened this issue 2 years ago • 5 comments

Hello,

I have met below issue when I run the Python code, it seems there is no certificate, how to fix this?

urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:992)>

Deepwater1000 avatar Apr 24 '23 12:04 Deepwater1000

hm not sure, but seems unrelated? when are you getting the error?

gkucsko avatar Apr 24 '23 16:04 gkucsko

I got the same error using an older version of Python (3.10.2)

Updating Python to the latest version (3.11.3) seems to have newer SSL certificates and fixed the issue for me.

8bitben avatar Apr 25 '23 01:04 8bitben

hm not sure, but seems unrelated? when are you getting the error? it happens after download all the necessary packages, here it looks like ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:992)

Deepwater1000 avatar Apr 25 '23 15:04 Deepwater1000

actually, I already use below version Python 3.11.3

Deepwater1000 avatar Apr 25 '23 15:04 Deepwater1000

some people had success with this: https://gist.github.com/marschhuynh/31c9375fc34a3e20c2d3b9eb8131d8f3

gkucsko avatar Apr 26 '23 01:04 gkucsko

Many thanks this works and solve my issue.

Deepwater1000 avatar Apr 27 '23 12:04 Deepwater1000

Great!

gkucsko avatar Apr 27 '23 13:04 gkucsko

You don't need to update your Python version from 3.10 to 3.11. Please follow the instructions from this Stackoverflow answer (solved the issue for me): https://stackoverflow.com/a/70495761

ableinc avatar Apr 28 '23 15:04 ableinc

I could solve this Error in an Windows venv with the following steps:

  1. I copied the Path for the File that should be downloaded and downloaded it manually.
  2. I moved to file to the given location in the Error Message.

CREW8 avatar Jun 20 '23 17:06 CREW8