Last modified: 2014-11-12 15:17:55 UTC
When harvesting from some category, there are sometimes new articles which have not own wikidatat item yet. This pages were normally skipped. After some changes there are now error reports which are annoying and makes terminal window hardly readable: harvest_template -template:Commonscat "1" P373 Processing [[cs:Kostel svatého Ducha (Krupka)]] [[cs:Kostel svateho Ducha (Krupka)]] doesn't have a wikidata item :( ERROR: NoPage: Page [[wikidata:-1]] doesn't exist. Traceback (most recent call last): File "D:\Py\rewrite\scripts\harvest_template.py", line 66, in run self.processPage(page) File "D:\Py\rewrite\scripts\harvest_template.py", line 122, in processPage item.get() File "D:\Py\rewrite\pywikibot\page.py", line 2632, in get super(ItemPage, self).get(force=force, *args) File "D:\Py\rewrite\pywikibot\page.py", line 2470, in get raise pywikibot.NoPage(self) NoPage: Page [[wikidata:-1]] doesn't exist.
Change 139096 had a related patch set uploaded by Xqt: (bug 66523) Do not break script when wikidata item does not exists. https://gerrit.wikimedia.org/r/139096
Change 139096 merged by jenkins-bot: (bug 66523) Do not break script when wikidata item does not exists. https://gerrit.wikimedia.org/r/139096
Today again, latest version of pywikibot: pwb.py harvest_template -cat:"Údržba:Commonscat_není_na_Wikidatech" -template:"Commonscat" "1" P373 ... >>> Kostel Nanebevzeti Panny Marie (Vyskov) <<< Adding P373 --> Church of the Assumption of the Virgin Mary (Vyskov) ERROR: Page [[wikidata:-1]] doesn't exist. Traceback (most recent call last): File "D:\Py\rewrite\scripts\harvest_template.py", line 64, in run self.processPage(page) File "D:\Py\rewrite\scripts\harvest_template.py", line 111, in processPage item = pywikibot.ItemPage.fromPage(page) File "D:\Py\rewrite\pywikibot\page.py", line 3142, in fromPage raise pywikibot.NoPage(i) NoPage: Page [[wikidata:-1]] doesn't exist.
Change 161222 had a related patch set uploaded by John Vandenberg: Implement item-centric WikidataBot.run https://gerrit.wikimedia.org/r/161222
Hi JAn, sorry I didnt see this bug. It was caused by my "Support items not stored in repo" https://gerrit.wikimedia.org/r/#/c/135410/ I've tested the fix on newitems, and the others 'should' also be fixed. Will do more testing.
Change 161222 merged by jenkins-bot: Implement item-centric WikidataBot.run https://gerrit.wikimedia.org/r/161222
All patches mentioned in this report were merged - is there more work left to do here (if yes: please reset the bug report status to NEW or ASSIGNED), or can you close this ticket as RESOLVED FIXED?
done