Good day everyone, please I have an issue with my PWB, I am running a script on a site that uses Wikibase, and I want the script to create new items for new pages from the client wiki on the repository wiki.
But unfortunately, I get this error when I run the script, please I have tried fixing it on my own but to no avail, I'm sure someone else has gotten this typa error before, Please help me.
It says pywikibot.exceptions.EntityTypeUnknownError: DataSite("en", "mydatafamilyfile") does not support entity type "item". Please help
Full error that it shows 👇👇
Traceback (most recent call last):
File "C:\Users\Username\pywikibot\curate.newpages.en.py", line 380, in <module>
main()
File "C:\Users\Username\pywikibot\curate.newpages.en.py", line 367, in main
newitem = pywikibot.ItemPage(repo)
File "C:\Users\Username\pywikibot\pywikibot\page\__init__.py", line 3901, in __init__
ns = site.item_namespace
File "C:\Users\Username\pywikibot\pywikibot\site\_datasite.py", line 91, in item_namespace
self._item_namespace = self.get_namespace_for_entity_type(
File "C:\Users\Username\pywikibot\pywikibot\site\_datasite.py", line 78, in get_namespace_for_entity_type
raise EntityTypeUnknownError(
pywikibot.exceptions.EntityTypeUnknownError: DataSite("en", "mydatafamilyfile") does not support entity type "item"
-Joseph.