Bugs item #2935366, was opened at 2010-01-20 02:19
Message generated for change (Tracker Item Submitted) made by basilicofresco
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=293536…
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: Davide Bolsi (basilicofresco)
Assigned to: Nobody/Anonymous (nobody)
Summary: Dump file: 'NoneType' object has no attribute 'strip'
Initial Comment:
Replace.py still halts on some pages with deleted usernames. The problem was solved for
direct page loading (thanks), but is still present with dump file scanning.
C:\pywikipedia>replace.py -xml:enwiki-20091128-pages-articles.xml "a"
"b" -xmlstart:"Successions of Philosophers" -lang:en
Reading XML dump...
Traceback (most recent call last):
File "C:\pywikipedia\pagegenerators.py", line 849, in __iter__
for page in self.wrapped_gen:
File "C:\pywikipedia\pagegenerators.py", line 781, in
DuplicateFilterPageGenerator
for page in generator:
File "C:\pywikipedia\replace.py", line 218, in __iter__
for entry in self.parser:
File "C:\pywikipedia\xmlreader.py", line 301, in new_parse
for rev in self._parse(event, elem):
File "C:\pywikipedia\xmlreader.py", line 310, in _parse_only_latest
yield self._create_revision(revision)
File "C:\pywikipedia\xmlreader.py", line 347, in _create_revision
redirect=self.isredirect
File "C:\pywikipedia\xmlreader.py", line 64, in __init__
self.username = username.strip()
AttributeError: 'NoneType' object has no attribute 'strip'
'NoneType' object has no attribute 'strip'
C:\pywikipedia>version.py
Pywikipedia [http] trunk/pywikipedia (r7885, 2010/01/19, 07:31:56)
Python 2.6 (r26:66721, Oct 2 2008, 11:35:03) [MSC v.1500 32 bit (Intel)]
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=293536…