[Pywikipedia-bugs] [ pywikipediabot-Bugs-3427930 ] Impossible to create Page object with : in page title

SourceForge.net noreply at sourceforge.net
Mon Oct 24 18:35:23 UTC 2011


Bugs item #3427930, was opened at 2011-10-24 19:56
Message generated for change (Comment added) made by valhallasw
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3427930&group_id=93107

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: General
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Merlijn S. van Deen (valhallasw)
Assigned to: Nobody/Anonymous (nobody)
Summary: Impossible to create Page object with : in page title

Initial Comment:
>>> catlib.Category('en', 'Books by Ayaan Hirsi Ali').articlesList()
Getting [[Category:Books by Ayaan Hirsi Ali]]...
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "catlib.py", line 431, in articlesList
    for article in self.articles(recurse, sortby=sortby, sortdir=sortdir):
  File "catlib.py", line 416, in articles
    sortby=sortby, sortdir=sortdir):
  File "catlib.py", line 169, in _getContentsNaive
    sortby=sortby, sortdir=sortdir):
  File "catlib.py", line 239, in _parseCategory
    yield ARTICLE, wikipedia.Page(self.site(), memb['title'], defaultNamespace=memb['ns'])
  File "wikipedia.py", line 374, in __init__
    % (title, self._site, familyName))
pywikibot.exceptions.NoPage: Nomad: From Islam to America is not a local page on wikipedia:en, and the nomad family is
not supported by PyWikipediaBot!
>>> wikipedia.Page('en', 'Nomad: From Islam to America')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "wikipedia.py", line 374, in __init__
    % (title, self._site, familyName))
pywikibot.exceptions.NoPage: Nomad: From Islam to America is not a local page on wikipedia:en, and the nomad family is
not supported by PyWikipediaBot!

>>> wikipedia.Page('en', ':Nomad: From Islam to America')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "wikipedia.py", line 374, in __init__
    % (title, self._site, familyName))
pywikibot.exceptions.NoPage: :Nomad: From Islam to America is not a local page on wikipedia:en, and the nomad family is
not supported by PyWikipediaBot!
>>> wikipedia.Page('en', '::Nomad: From Islam to America')
Page{[[en::Nomad: From Islam to America]]}
>>> wikipedia.Page('en', '::Nomad: From Islam to America').get()

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "wikipedia.py", line 662, in get
    % (self.aslink(), self.site()))
pywikibot.exceptions.NoPage: [[en::Nomad: From Islam to America]] is not a local page on wikipedia:en!

See also: http://thread.gmane.org/gmane.comp.python.pywikipediabot.general/11535

----------------------------------------------------------------------

>Comment By: Merlijn S. van Deen (valhallasw)
Date: 2011-10-24 20:35

Message:
But it's not in the interwiki map:
http://en.wikipedia.org/w/api.php?action=query&meta=siteinfo&siprop=interwikimap

maybe known_families should be updated?

----------------------------------------------------------------------

Comment By: xqt (xqt)
Date: 2011-10-24 20:17

Message:
unfortunately "nomad" is a known family :(

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3427930&group_id=93107



More information about the Pywikipedia-bugs mailing list