Bugs item #2927337, was opened at 2010-01-07 05:12
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=292733…
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: 8
Private: No
Submitted By: Mikko Silvonen (silvonen)
Assigned to: xqt (xqt)
Summary: Interwiki run terminates with KeyError in _getEditPage
Initial Comment:
This now happens every time I try to restart my autonomous interwiki run:
interwiki.py -autonomous -lang:fi -namespace:0
-start:"Steffi Graf"
...
Updating links on page [[sv:Stena Line]].
No changes needed
Getting 2 pages from wikipedia:tg...
Getting 2 pages from wikipedia:nds-nl...
Getting 2 pages from wikipedia:bar...
Traceback (most recent call last):
File "c:\svn\pywikipedia\pagegenerators.py", line 860, in __iter__
for loaded_page in self.preload(somePages):
File "c:\svn\pywikipedia\pagegenerators.py", line 879, in preload
wikipedia.getall(site, pagesThisSite)
File "c:\svn\pywikipedia\wikipedia.py", line 4158, in getall
_GetAll(site, pages, throttle, force).run()
File "c:\svn\pywikipedia\wikipedia.py", line 3837, 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 182, in endElement
text, self.username,
AttributeError: MediaWikiXmlHandler instance has no attribute 'username'
MediaWikiXmlHandler instance has no attribute 'username'
Dump fi (wikipedia) appended.
Traceback (most recent call last):
File "C:\svn\pywikipedia\interwiki.py", line 2370, in <module>
main()
File "C:\svn\pywikipedia\interwiki.py", line 2344, in main
bot.run()
File "C:\svn\pywikipedia\interwiki.py", line 2104, in run
self.queryStep()
File "C:\svn\pywikipedia\interwiki.py", line 2077, in queryStep
self.oneQuery()
File "C:\svn\pywikipedia\interwiki.py", line 2073, in oneQuery
subject.batchLoaded(self)
File "C:\svn\pywikipedia\interwiki.py", line 1240, in batchLoaded
if not page.exists():
File "c:\svn\pywikipedia\wikipedia.py", line 996, in exists
self.get()
File "c:\svn\pywikipedia\wikipedia.py", line 684, in get
self._contents = self._getEditPage(get_redirect = get_redirect, throttle = throttle,
sysop = sysop)
File "c:\svn\pywikipedia\wikipedia.py", line 767, in _getEditPage
self._userName = pageInfo['revisions'][0]['user']
KeyError: 'user'
python version.py
Pywikipedia [http]
trunk/pywikipedia (r7862, 2010/01/06, 10:53:08)
Python 2.5.4 (r254:67916, Jan 29 2009, 12:02:11) [MSC v.1310 32 bit (Intel)]
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-01-07 11:21
Message:
maybe solved in r7863
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-01-07 08:27
Message:
I've learned there are some pages with hidden usernames.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=292733…