https://bugzilla.wikimedia.org/show_bug.cgi?id=72786
Bug ID: 72786 Summary: -start crashes the script Product: Pywikibot Version: compat (1.0) Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: Unprioritized Component: pagegenerators Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: mastigm@gmail.com Web browser: --- Mobile Platform: ---
running a script with -start:something parameter crashes in wikipedia.py
example running on pl.wiktionary python interwiki.py -wiktionary -top -auto -start:"megfagy" NOTE: Number of pages queued is 0, trying to add 50 more. Dump pl (wiktionary) appended. Traceback (most recent call last): File "interwiki.py", line 2665 , in <module> main() File "interwiki.py", line 2639, in main bot.run() File "interwiki.py", line 2358, in run self.queryStep() File "interwiki.py", line 2331, in queryStep self.oneQuery() File "interwiki.py", line 2299, in oneQuery site = self.selectQuerySite() File "interwiki.py", line 2270, in selectQuerySite self.generateMore(globalvar.maxquerysize - mycount) File "interwiki.py", line 2178, in generateMore page = self.pageGenerator.next() File "/usr/home/masti/pw/cwikt/pagegenerators.py", line 1022, in DuplicateFilterPageGenerator for page in generator: File "/usr/home/masti/pw/cwikt/pagegenerators.py", line 549, in AllpagesPageGenerator includeredirects=includeredirects): File "/usr/home/masti/pw/cwikt/wikipedia.py", line 8579, in allpages warning = data['warnings']['allpages']['*']
python version.py Pywikibot: [https] r-pywikibot-compat.git (fc4a881, g11087, 2014/10/30, 17:01:42, ok) Release version: 1.0b1 Python: 2.7.5 (default, Jul 7 2013, 01:26:18) [GCC 4.3.4] config-settings: use_api = True use_api_login = True unicode test: ok