You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from wikidataintegrator import wdi_core
my_first_wikidata_item = wdi_core.WDItemEngine(wd_item_id='Q5')
This results in the following traceback:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\[USERNAME]\anaconda3\envs\wbsync_test\Lib\site-packages\wikidataintegrator\wdi_core.py", line 461, in __init__
self.init_data_load()
File "C:\Users\[USERNAME]\anaconda3\envs\wbsync_test\Lib\site-packages\wikidataintegrator\wdi_core.py", line 505, in init_data_load
self.wd_json_representation = self.get_wd_entity()
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\[USERNAME]\anaconda3\envs\wbsync_test\Lib\site-packages\wikidataintegrator\wdi_core.py", line 600, in get_wd_entity
return self.parse_wd_json(wd_json=json_data['entities'][self.wd_item_id])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\[USERNAME]\anaconda3\envs\wbsync_test\Lib\site-packages\wikidataintegrator\wdi_core.py", line 620, in parse_wd_json
data_type = [x for x in WDBaseDataType.__subclasses__() if x.DTYPE == z['mainsnak']['datatype']][0]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range
I'm brand new so not exactly sure how to debug; any help appreciated!
The text was updated successfully, but these errors were encountered:
Hello! Trying to run the basic test script, i.e.:
This results in the following traceback:
I'm brand new so not exactly sure how to debug; any help appreciated!
The text was updated successfully, but these errors were encountered: