Bugs item #1988755, was opened at 2008-06-09 11:58 Message generated for change (Comment added) made by cosoleto You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1988755...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None
Status: Closed Resolution: Duplicate
Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Server Error in pagegenerators.py
Initial Comment: Hi, on the English Wikisource, the following code:
[...] site = wikipedia.getSite() namespaces = [ u'', u'Author', u'Help', u'Portal', u'Wikisource' ] [...] allpages = set() [...] for namespace in namespaces: allpages |= set(page.title() for page in pagegenerators.AllpagesPageGenerator(namespace = site.getNamespaceIndex(namespace), includeredirects = False))
dutifully loads all the pages from the main namespace, but after the last page of Special:Allpages has been loaded, the following happens:
Traceback (most recent call last): File "./header_check.py", line 34, in <module> allpages |= set(page.title() for page in pagegenerators.AllpagesPageGenerator(namespace = site.getNamespaceIndex(namespace), includeredirects = False)) File "./header_check.py", line 34, in <genexpr> allpages |= set(page.title() for page in pagegenerators.AllpagesPageGenerator(namespace = site.getNamespaceIndex(namespace), includeredirects = False)) File "pagegenerators.py", line 239, in AllpagesPageGenerator for page in site.allpages(start = start, namespace = namespace, includeredirects = includeredirects): File "wikipedia.py", line 4998, in allpages "Couldn't extract allpages special page. Make sure you're using MonoBook skin.") wikipedia.ServerError: Couldn't extract allpages special page. Make sure you're using MonoBook skin.
The bot definitely uses the MonoBook skin. One problem might be the non-English characters in the last page in the main namespace (社會秩序維護法, URL-encoded: %E7%A4%BE%E6%9C%83%E7%A7%A9%E5%BA%8F%E7%B6%AD%E8%AD%B7%E6%B3%95).
----------------------------------------------------------------------
Comment By: Francesco Cosoleto (cosoleto)
Date: 2008-06-13 10:15
Message: Logged In: YES user_id=181280 Originator: NO
Duplicated of [ 1988198 ] replace.py crashes in szl:wiki (http://sourceforge.net/tracker/index.php?func=detail&aid=1988198&gro...). Please monitor this bug report. Patch is coming soon.
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1988755...