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.
Hi,
I am trying to build a script to add a reference to a few hundred articles on pt.wikipedia. I would like to use the noreferences.py script that is part of core, to add a reference section in the same run, if it is not already present in the article.
I have tried to import the script, the NoReferencesBot class, but I must be doing something wrong. It says that the function hasn't been defined.
You can check what I have been trying to do here: https://public.paws.wmcloud.org/User:GoEThe/IUCN%20status.ipynb
Any help will be greatly appreciated!
Regards,
GoEThe