Last modified: 2014-09-17 10:51:43 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T72069, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 70069 - mw1.24wmf18 - API problem - "entity" not exist in WBgetentities
mw1.24wmf18 - API problem - "entity" not exist in WBgetentities
Status: RESOLVED FIXED
Product: Pywikibot
Classification: Unclassified
Wikidata (Other open bugs)
compat-(1.0)
All All
: Highest critical
: ---
Assigned To: Pywikipedia bugs
:
Depends on: 70081 70082
Blocks:
  Show dependency treegraph
 
Reported: 2014-08-26 23:37 UTC by Jiří Sedláček
Modified: 2014-09-17 10:51 UTC (History)
11 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Jiří Sedláček 2014-08-26 23:37:01 UTC
Hello,
at time of deployment new version of Wikidata files (26/08/2014) i get a "key error" Exception in PyWikiBot (wikipedia.py, line 5058) - which doesn't find key "entity" in return data from Wikimedia APi.

There is err in API (for 98 %), in minutes before this err script runs normally for 45 000 edits.

Thanks.
J.
Comment 1 Kunal Mehta (Legoktm) 2014-08-26 23:40:17 UTC
I think the Wikidata serialization broke whatever compat was relying on.
Comment 2 Amir Ladsgroup 2014-08-27 00:05:09 UTC
The new system literally broke anything, I think Wikidata people should make an announcement about API output changes but it seems this change was not intentional and they are working on it to fix it ASAP, if they don't want to work on it. I will write a wrapper in pywikibot to make the output of wbgetentity the same as before.
Comment 3 Kunal Mehta (Legoktm) 2014-08-27 00:06:56 UTC
It was announced... https://lists.wikimedia.org/pipermail/wikidata-tech/2014-August/000548.html

The format of wbgetentities wasn't changed afaik.
Comment 4 Amir Ladsgroup 2014-08-27 00:36:54 UTC
(In reply to Kunal Mehta (Legoktm) from comment #3)
> It was announced...
> https://lists.wikimedia.org/pipermail/wikidata-tech/2014-August/000548.html
> 
> The format of wbgetentities wasn't changed afaik.

So It was my mistake to miss that. lots of e-mail :(
I checked it changed content that wbgetentities returns. See an example:
http://www.wikidata.org/w/api.php?action=wbgetentities&ids=Q1700&format=json
Comment 5 Jiří Sedláček 2014-08-27 07:58:42 UTC
(In reply to Amir Ladsgroup from comment #4)
> (In reply to Kunal Mehta (Legoktm) from comment #3)
> > It was announced...
> > https://lists.wikimedia.org/pipermail/wikidata-tech/2014-August/000548.html
> > 
> > The format of wbgetentities wasn't changed afaik.
> 
> So It was my mistake to miss that. lots of e-mail :(
> I checked it changed content that wbgetentities returns. See an example:
> http://www.wikidata.org/w/api.php?action=wbgetentities&ids=Q1700&format=json

I agree - in new version is lost key "entity" with "item/value" property.
Comment 6 Lydia Pintscher 2014-08-27 07:59:47 UTC
We're working on a fix right now.
Comment 7 Gerrit Notification Bot 2014-09-02 08:31:16 UTC
Change 156732 had a related patch set uploaded by John Vandenberg:
Add wrapper for new output of Wikidata

https://gerrit.wikimedia.org/r/156732
Comment 8 Gerrit Notification Bot 2014-09-03 04:05:52 UTC
Change 156732 had a related patch set uploaded by John Vandenberg:
Add wrapper for new output of Wikibase

https://gerrit.wikimedia.org/r/156732
Comment 9 Gerrit Notification Bot 2014-09-03 04:06:42 UTC
Change 156732 merged by jenkins-bot:
Add wrapper for new output of Wikibase

https://gerrit.wikimedia.org/r/156732

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links