Bugs item #1988755, was opened at 2008-06-09 02:58 Message generated for change (Tracker Item Submitted) made by Item Submitter 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: Open Resolution: None 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).
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1988755...