dahlia / wikidata

Wikidata client library for Python
https://pypi.org/project/Wikidata/
GNU General Public License v3.0
337 stars 31 forks source link

SSL error #40

Closed hankhank10 closed 8 months ago

hankhank10 commented 2 years ago

After installing and running the demonstration code I get the following error after the first two lines

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

dahlia commented 2 years ago

What does the following Python script print on your machine?

from urllib.request import urlopen
r = urlopen('https://www.wikidata.org/')
print(r.code, r.reason)
aGGre55or commented 8 months ago

Install the latest version of OpenSSL on your computer and add "ssl" module for python. https://slproweb.com/download/Win64OpenSSL-3_2_0.msi python -m pip install ssl