Last modified: 2014-11-04 15:14:58 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 T74667, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 72667 - KeyError: allpages for interwiki
KeyError: allpages for interwiki
Status: NEW
Product: Pywikibot
Classification: Unclassified
interwiki.py (Other open bugs)
compat-(1.0)
All All
: Unprioritized critical
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-10-29 10:53 UTC by JAn Dudík
Modified: 2014-11-04 15:14 UTC (History)
1 user (show)

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


Attachments

Description JAn Dudík 2014-10-29 10:53:37 UTC
interwiki.py -async -family:wiktionary -cleanup -continue -array:50 -query:30 -untranslated
...

NOTE: The first unfinished subject is [[cs:Kategorie:Finština]]
NOTE: Number of pages queued is 30, trying to add 30 more.
Dump cs (wiktionary) written.
Traceback (most recent call last):
  File "D:\Py\interwiki.py", line 2665, in <module>
    main()
  File "D:\Py\interwiki.py", line 2639, in main
    bot.run()
  File "D:\Py\interwiki.py", line 2358, in run
    self.queryStep()
  File "D:\Py\interwiki.py", line 2331, in queryStep
    self.oneQuery()
  File "D:\Py\interwiki.py", line 2299, in oneQuery
    site = self.selectQuerySite()
  File "D:\Py\interwiki.py", line 2270, in selectQuerySite
    self.generateMore(globalvar.maxquerysize - mycount)
  File "D:\Py\interwiki.py", line 2178, in generateMore
    page = self.pageGenerator.next()
  File "D:\Py\pagegenerators.py", line 1104, in CombinedPageGenerator
    for page in generator:
  File "D:\Py\pagegenerators.py", line 549, in AllpagesPageGenerator
    includeredirects=includeredirects):
  File "D:\Py\wikipedia.py", line 8559, in allpages
    warning = data['warnings']['allpages']['*']
KeyError: 'allpages'

D:\Py>
Comment 1 Malafaya 2014-11-03 19:58:47 UTC
No news on this?
Comment 2 Malafaya 2014-11-03 20:03:47 UTC
This warning is what is causing the exception:

print data['warnings']

=>

{u'query': {u'*': u"Formatting of continuation data will be changing soon. To co
ntinue using the current formatting, use the 'rawcontinue' parameter. To begin u
sing the new format, pass an empty string for 'continue' in the initial query."}
}
Comment 3 Mpaa 2014-11-03 20:06:05 UTC
Malafaya, I suggest that you try to migrate from compat to core.
More contributors fixing bugs in core than in compat.
Comment 4 Malafaya 2014-11-04 12:13:51 UTC
I'm giving it another try. Things seem to be smoother in the initial setup now.
But I reopened bug 71115, because that same problema is happening in core now (again?).
Comment 5 Malafaya 2014-11-04 15:14:58 UTC
OK, I gave 'core' a try but whereas 'compat' works fine with closed wikis, 'core' does not and halts everytime an interwiki (a working one) for such wikis is found (see my previous comment). So currently I have no working interwiki bot for Wiktionaries. Thanks anyway.

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


Navigation
Links