Bugs item #3164394, was opened at 2011-01-23 21:41 Message generated for change (Tracker Item Submitted) made by valhallasw You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3164394...
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: Merlijn S. van Deen (valhallasw) Assigned to: Nobody/Anonymous (nobody) Summary: generate_family_file.py does not implement namespaces correc
Initial Comment: Generate a family file, for instance http://callofduty.wikia.com/wiki/Call_of_Duty_Wiki as codwiki
import wikipedia wikipedia.getSite('en', 'codwiki').family.namespace('en', 2)
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "family.py", line 3589, in namespace raise KeyError('ERROR: title for namespace %d in language %s unknown' % (ns_number, code)) KeyError: 'ERROR: title for namespace 2 in language en unknown'
Expected result was: u'User'
This was introduced in r8421.
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3164394...
pywikipedia-bugs@lists.wikimedia.org