Page MenuHomePhabricator

Wikibase operations fail when -simulate enabled
Open, HighPublic


Similar errors occur in addClaim, addSource, etc .. but here is the backtrace for editEntity updating an item.

Welcome to the Pywikibot interactive shell!
>>> import pywikibot
>>> datasite ='test', 'wikidata', None, None)
>>> item =, 'Q68')
>>> item.get()
Found 4 wikidata:test processes running, including this one.
{'claims': {u'P115': [< instance at 0xb611b5ac>]}, 'labels': {u'en': u'Test123'}, 'sitelinks': {}, 'descriptions': {}, 'aliases': {u'en': [u'1417625792.03']}}
>>> item.editEntity(data=item.toJSON())
Logging in to wikidata:test as JVbot
Should be logged in now
SIMULATION: wbeditentity action blocked.
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File ".../pywikibot/", line 3035, in editEntity
    self.lastrevid = updates['entity']['lastrevid']
KeyError: 'entity'

Event Timeline

jayvdb created this task.Dec 4 2014, 7:26 AM
jayvdb raised the priority of this task from to Needs Triage.
jayvdb updated the task description. (Show Details)
jayvdb added a project: Pywikibot-Wikidata.
jayvdb changed Security from none to None.
jayvdb added a subscriber: jayvdb.
Abbe98 added a subscriber: Abbe98.Jul 9 2016, 9:21 PM
Xqt triaged this task as High priority.Nov 6 2018, 6:56 AM
Restricted Application added a subscriber: Liuxinyu970226. · View Herald TranscriptMar 23 2019, 10:16 PM