Page MenuHomePhabricator

References cannot be set anymore
Closed, ResolvedPublic

Description

Author: dr.trigon

Description:
subster.py was able to set references to wikidata claims/entries, but this does not work anymore, instead it raises an exception:

Traceback (most recent call last):

File "subster.py", line 609, in data_save
  comment=summary)
File "/data/toolserver/pywikipedia-git/wikipedia.py", line 4826, in editclaim
  raise RuntimeError("API query error: %s" % data)

RuntimeError: API query error: {u'servedby': u'mw1191', u'error': {u'info': u'Malformed input: +00000002013-11-23T12:50:53Z', u'code': u'invalid-snak-value', u'messages': {u'0': {u'type': u'error', u'name': u'wikibase-validator-malformed-value', u'parameters': [u'+00000002013-11-23T12:50:53Z']}, u'html': {u'*': u'<p>Malformed input: +00000002013-11-23T12:50:53Z\n</p>'}}}}

Since subster.py has not changed during this time, this has to be caused either by changes in wikipedia.py or (IMHO more probable) in wikidata mw software.


Version: compat-(1.0)
Severity: major

Details

Reference
bz57480

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:39 AM
bzimport set Reference to bz57480.
bzimport added a subscriber: Unknown Object (????).
Aklapper triaged this task as Lowest priority.Jun 5 2015, 1:41 PM
Aklapper subscribed.

Pywikibot has two versions: Compat and Core. This task was filed about the older version, called Pywikibot-compat, which is not under active development anymore. Hence I'm lowering the priority of this task to reflect the reality. Unfortunately, the Pywikibot team does not have the manpower to retest every single bug report / feature request against the (maintained) Pywikibot code base. Furthermore, the code base of Pywikibot-Compat has changed a lot compared to the code base of Pywikibot-Core so there is a chance that the problem described in this task might not exist anymore. Please help: Unfortunately manpower is limited and does not allow testing every single reported task again. If you have time and interest in Pywikibot, please upgrade to Pywikibot-Core and add a comment to this task if the problem in this task still happens in Pywikibot-Core (or directly edit the task by removing the Pywikibot-compat project and adding the Pywikibot project to this task). To learn more about Pywikibot and to get involved in its development, please check out https://www.mediawiki.org/wiki/Manual:Pywikibot/Development Thank you for your understanding.

Xqt assigned this task to DrTrigon.

patch has been merged. On the other hand wikibase data form has been changed. Change your script to follow them.