[Pywikipedia-l] [ pywikipediabot-Bugs-2508909 ] AttributeError: no attribute _catredirect

SourceForge.net noreply at sourceforge.net
Mon Jan 19 05:10:25 UTC 2009


Bugs item #2508909, was opened at 2009-01-15 07:18
Message generated for change (Comment added) made by silvonen
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2508909&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: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Mikko Silvonen (silvonen)
Assigned to: Nobody/Anonymous (nobody)
Summary: AttributeError: no attribute _catredirect

Initial Comment:
I just got this error message. Is there something wrong with the newly added support for category redirects?

>interwiki.py -untranslated "Luokka:Gregg Arakin ohjaamat elokuvat"
Checked for running processes. 2 processes currently running, including the current process.
Getting 1 pages from wikipedia:fi...
NOTE: [[fi:Luokka:Gregg Arakin ohjaamat elokuvat]] does not have any interwiki links
Give a hint (? to see pagetext): en:Category:Films directed by Gregg Araki
Give a hint (? to see pagetext): nl:Categorie:Film van Gregg Araki
Give a hint (? to see pagetext):
Getting 1 pages from wikipedia:nl...
Getting 1 pages from wikipedia:en...
Traceback (most recent call last):
  File "c:\svn\pywikipedia\pagegenerators.py", line 764, in __iter__
    for loaded_page in self.preload(somePages):
  File "c:\svn\pywikipedia\pagegenerators.py", line 781, in preload
    wikipedia.getall(site, pagesThisSite)
  File "c:\svn\pywikipedia\wikipedia.py", line 3134, in getall
    _GetAll(site, pages, throttle, force).run()
  File "c:\svn\pywikipedia\wikipedia.py", line 2967, 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 176, in endElement
    self.callback(entry)
  File "c:\svn\pywikipedia\wikipedia.py", line 3013, in oneDone
    elif page2.is_category_redirect():
  File "c:\svn\pywikipedia\wikipedia.py", line 1016, in is_category_redirect
    return self._catredirect
AttributeError: 'Page' object has no attribute '_catredirect'
'Page' object has no attribute '_catredirect'

>python version.py
Pywikipedia [http] trunk/pywikipedia (r6259, Jan 14 2009, 21:01:07)
Python 2.5.1 (r251:54863, May  1 2007, 17:47:05) [MSC v.1310 32 bit (Intel)]

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

>Comment By: Mikko Silvonen (silvonen)
Date: 2009-01-19 07:10

Message:
This appears to have been fixed.

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

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



More information about the Pywikipedia-l mailing list