dahlia / wikidata

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

http error 404 #36

Open PetersProblem opened 3 years ago

PetersProblem commented 3 years ago

Hello, I'm running this package for more than two weeks on a project, but since a few days a get this error on all of my machines (Ubuntu 20.04). To me it seems to be that wikidata changed some sort of server port, address or api.


  File ".../lib/python3.9/site-packages/wikidata/client.py", line 140, in get
    entity.load()
  File ".../lib/python3.9/site-packages/wikidata/entity.py", line 261, in load
    result = self.client.request(url)
  File ".../lib/python3.9/site-packages/wikidata/client.py", line 200, in request
    raise e
  File ".../lib/python3.9/site-packages/wikidata/client.py", line 194, in request
    response = self.opener.open(url)
  File "/usr/lib/python3.9/urllib/request.py", line 523, in open
    response = meth(req, response)
  File "/usr/lib/python3.9/urllib/request.py", line 632, in http_response
    response = self.parent.error(
  File "/usr/lib/python3.9/urllib/request.py", line 561, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.9/urllib/request.py", line 494, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.9/urllib/request.py", line 641, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found```
fabcancia commented 3 years ago

I am having the same issue too