Page MenuHomePhabricator

KeyError 'query' in checkimages
Closed, DeclinedPublic

Description

Execution time: 9251 seconds

Traceback (most recent call last):

File "C:\pwb\compat\checkimages.py", line 1985, in <module>
  main()
File "C:\pwb\compat\checkimages.py", line 1971, in main
  if Bot.checkStep():
File "C:\pwb\compat\checkimages.py", line 1738, in checkStep
  (license_found, hiddenTemplateFound) = self.smartDetection()
File "C:\pwb\compat\checkimages.py", line 1402, in smartDetection
  self.licenses_found = self.image.getTemplates()
File "C:\pwb\compat\wikipedia.py", line 1484, in getTemplates
  self.site)['query']['pages'].values()[0]

KeyError: 'query'

C:\pwb\compat>version.py
Pywikibot: pywikibot-compat (1a90af7, s10887, 2014/03/31, 21:29:43, ok)
Release version: 1.0b1
Python: 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)]
config-settings:
use_api = True
use_api_login = True
unicode test: ok


Version: compat-(1.0)
Severity: normal

Details

Reference
bz63568

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:16 AM
bzimport set Reference to bz63568.
bzimport added a subscriber: Unknown Object (????).

works for me, can you check again?

I had this again weeks ago.

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 claimed this task.

core version works well. I found no reason to investigate into this matter in compat.