Bugs item #2791509, was opened at 2009-05-14 04:36 Message generated for change (Comment added) made by nicdumz You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2791509...
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: Closed Resolution: Fixed
Priority: 5 Private: No Submitted By: Mikko Silvonen (silvonen) Assigned to: Nobody/Anonymous (nobody) Summary: ERROR: title for namespace 101 in language _default unknown
Initial Comment: I get the following error whenever interwiki.py loads pages from huwiki. I think this is related to the fact that huwiki namespace 101 has been renamed from "Portál vita" to "Portálvita", but the error message is somewhat cryptic...
Getting 20 pages from wikipedia:hu... Traceback (most recent call last): File "c:\svn\pywikipedia\pagegenerators.py", line 800, in __iter__ for loaded_page in self.preload(somePages): File "c:\svn\pywikipedia\pagegenerators.py", line 819, in preload wikipedia.getall(site, pagesThisSite) File "C:\svn\pywikipedia\wikipedia.py", line 3159, in getall _GetAll(site, pages, throttle, force).run() File "C:\svn\pywikipedia\wikipedia.py", line 3003, in run xml.sax.parseString(data, handler) File "C:\Python25\lib\xml\sax__init__.py", line 49, in parseString parser.parse(inpsrc) File "C:\Python25\lib\xml\sax\expatreader.py", line 107, in parse xmlreader.IncrementalParser.parse(self, source) File "C:\Python25\lib\xml\sax\xmlreader.py", line 123, in parse self.feed(buffer) File "C:\Python25\lib\xml\sax\expatreader.py", line 207, in feed self._parser.Parse(data, isFinal) File "C:\Python25\lib\xml\sax\expatreader.py", line 304, in end_element self._cont_handler.endElement(name) File "c:\svn\pywikipedia\xmlreader.py", line 190, in endElement self.headercallback(self.header) File "C:\svn\pywikipedia\wikipedia.py", line 3099, in headerDone dflt = self.site.family.namespace('_default', id) File "C:\svn\pywikipedia\family.py", line 3123, in namespace raise KeyError('ERROR: title for namespace %d in language %s unknown' % (ns_number, code)) KeyError: 'ERROR: title for namespace 101 in language _default unknown' 'ERROR: title for namespace 101 in language _default unknown'
python version.py
Pywikipedia [http] trunk/pywikipedia (r6881, May 13 2009, 14:40:03) Python 2.5.4 (r254:67916, Jan 29 2009, 12:02:11) [MSC v.1310 32 bit (Intel)]
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2009-05-14 05:14
Message: That should be fixed now and should not crash anymore (r6881 & r6884)
I also changed the namespace name in r6885
Thanks!
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2791509...