Bugs item #2795879, was opened at 2009-05-24 01:38
Message generated for change (Comment added) made by ronga
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=279587…
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: 6
Private: No
Submitted By: Ronga (ronga)
Assigned to: Nobody/Anonymous (nobody)
Summary: AttributeError at replace.py
Initial Comment:
Command:
replace.py -start:"Template:!" "File:Cross.svg" "File:Cross
red.svg"
Error message:
AttributeError: 'NoneType' object has no attribute 'query'
'NoneType' object has no attribute 'query'
Details:
C:\pywikipedia>replace.py -start:"Template:!" "File:Cross.svg"
"File:Cross red.svg"
Traceback (most recent call last):
File "C:\pywikipedia\pagegenerators.py", line 787, in __iter__
for page in self.wrapped_gen:
File "C:\pywikipedia\pagegenerators.py", line 719, in
DuplicateFilterPageGener
ator
for page in generator:
File "C:\pywikipedia\pagegenerators.py", line 250, in AllpagesPageGenerator
for page in site.allpages(start = start, namespace = namespace, includeredir
ects = includeredirects):
File "C:\pywikipedia\wikipedia.py", line 5508, in allpages
for p in soup.api.query.allpages:
AttributeError: 'NoneType' object has no attribute 'query'
'NoneType' object has no attribute 'query'
File version:
Pywikipedia nightly:pywikipedia (r6854, May 07 2009, 13:07:14)
Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)]
----------------------------------------------------------------------
Comment By: Ronga (ronga)
Date: 2009-05-24 04:39
Message:
===================================================
Update:
I got the latest version from
http://toolserver.org/~valhallasw/pywiki/.
Extracted to the same folder. Selected "replace all"
Still the same error persists.
Reply @ Date: 2009-05-24 02:10
Sender: cosoleto
please include, as well as the traceback, family,
language
What traceback? Isn't the message included it already?
family = 'bestbrute'
mylang = 'en'
last 10 lines before that error is raised
The
following has shown all message.
The whole message:
C:\pywikipedia>replace.py -start:"Template:!" "File:Cross.svg"
"File:Cross
red.s
vg"
Traceback (most recent call last):
File "C:\pywikipedia\pagegenerators.py", line 787, in __iter__
for page in self.wrapped_gen:
File "C:\pywikipedia\pagegenerators.py", line 719, in
DuplicateFilterPageGener
ator
for page in generator:
File "C:\pywikipedia\pagegenerators.py", line 250, in
AllpagesPageGenerator
for page in site.allpages(start = start, namespace = namespace,
includeredir
ects = includeredirects):
File "C:\pywikipedia\wikipedia.py", line 5512, in allpages
for p in soup.api.query.allpages:
AttributeError: 'NoneType' object has no attribute 'query'
'NoneType' object has no attribute 'query'
C:\pywikipedia>version.py
Pywikipedia nightly:pywikipedia (r6915, May 22 2009, 23:45:12)
Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit
(Intel)]
----------------------------------------------------------------------
Comment By: Francesco Cosoleto (cosoleto)
Date: 2009-05-24 02:10
Message:
Looks as a problem already reported but I don't remember whether it is
fixed or not. You should update your PyWikipediaBot version as it isn't up
to date (15 days old) and report again the problem here if persists. In
case, please include, as well as the traceback, family, language and last
10 lines before that error is raised.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=279587…