Bugs item #2675814, was opened at 2009-03-09 18:46
Message generated for change (Comment added) made by nicdumz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2675814&group_…
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: Invalid
Priority: 5
Private: No
Submitted By: Daniel Barrett (djbarrett)
Assigned to: Nobody/Anonymous (nobody)
Summary: SyntaxError: undefined entity : line 14789, column 89
Initial Comment:
When I run "python redirect.py double", after the first redirect gets fixed, I get:
Changing page [[My article name]]
Traceback (most recent call last):
File "redirect.py", line 840, in <module>
main()
File "redirect.py", line 836, in main
bot.run()
File "redirect.py", line 757, in run
self.fix_double_redirects()
File "redirect.py", line 611, in fix_double_redirects
self.fix_1_double_redirect(mysite, redir_name, summary)
File "redirect.py", line 707, in fix_1_double_redirect
redir.put(text)
File "c:\temp\pywikipedia\wikipedia.py", line 1419, in put
newPage, self.site().getToken(sysop = sysop), sysop = sysop)
File "c:\temp\pywikipedia\wikipedia.py", line 1549, in _putPage
if self.site().has_mediawiki_message("spamprotectiontitle")\
File "c:\temp\pywikipedia\wikipedia.py", line 4983, in has_mediawiki_message
v = self.mediawiki_message(key)
File "c:\temp\pywikipedia\wikipedia.py", line 4951, in mediawiki_message
tree = XML(decode)
File "<string>", line 85, in XML
SyntaxError: undefined entity : line 14789, column 89
Likewise for "python category.py move -from:"name" -to:"name2":
Traceback (most recent call last):
File "category.py", line 974, in <module>
bot.run()
File "category.py", line 446, in run
comment=self.editSummary, inPlace=self.inPlace)
File "c:\temp\pywikipedia\catlib.py", line 506, in change_category
article.put(text, comment)
File "c:\temp\pywikipedia\wikipedia.py", line 1419, in put
newPage, self.site().getToken(sysop = sysop), sysop = sysop)
File "c:\temp\pywikipedia\wikipedia.py", line 1549, in _putPage
if self.site().has_mediawiki_message("spamprotectiontitle")\
File "c:\temp\pywikipedia\wikipedia.py", line 4983, in has_mediawiki_message
v = self.mediawiki_message(key)
File "c:\temp\pywikipedia\wikipedia.py", line 4951, in mediawiki_message
tree = XML(decode)
File "<string>", line 85, in XML
SyntaxError: undefined entity : line 14789, column 89
Output of version.py:
Pywikipedia [http] trunk/pywikipedia (r6503, Mar 09 2009, 14:43:57)
Python 2.6 (r26:66721, Oct 2 2008, 11:35:03) [MSC v.1500 32 bit (Intel)]
----------------------------------------------------------------------
>Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2009-03-25 07:20
Message:
Well it probably means that you haven't specified the good MW version in
your family file ?
def version(self, code):
return "1.11"
The XML is only used if MW version is >= 1.12 ...
----------------------------------------------------------------------
Comment By: Daniel Barrett (djbarrett)
Date: 2009-03-24 21:13
Message:
I tried accessing index.php?title=Special:AllMessages&ot=xml, but XML
doesn't appear to be a valid choice for the output format. This is
MediaWiki 1.11.0, which seems to support only HTML and PHP as output
formats.
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2009-03-24 03:27
Message:
Daniel?
Have you checked your wiki messages?
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2009-03-10 01:44
Message:
And... it's not because you're looking from Spamprotectionttitle that this
message in particular is wrong: since ll messages are loaded at once, any
wrong message can trigger that behavior.
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2009-03-10 01:19
Message:
I know this bug =)
Can you double-check index.php?title=Special:AllMessages&ot=xml for us ?
I'm pretty sure that your browser will output the same error. The last time
I saw this bug, firefox was confused too.
Then, check the source of the page. I think that the first line will be an
empty line. If it is, the XML is non-standard. The first line should be
something like <?xml version="1.0" encoding="utf-8" ?>
Check your mediawiki extensions, one of them is, I think, inserting a new
line everytime that index.php is called. This is okay for HTML, but this is
wrong for XML. (To check which one is doing that, disable all extensions,
and activate them one by one, until the behavior is triggerred. Please
report the bugged extension so I can fix it in Mediawiki SVN, or file a bug
report to their authors...)
----------------------------------------------------------------------
Comment By: Daniel Barrett (djbarrett)
Date: 2009-03-09 21:43
Message:
[[MediaWiki:Spamprotectiontitle]] contains only the default text:
Spam protection filter
----------------------------------------------------------------------
Comment By: Russell Blau (russblau)
Date: 2009-03-09 21:19
Message:
Probably you want to escape the "undefined entity" by changing " " to
"&nbsp;" in the text on [[MediaWiki:Spamprotectiontitle]].
----------------------------------------------------------------------
Comment By: Daniel Barrett (djbarrett)
Date: 2009-03-09 20:36
Message:
This is on our own MediaWiki site, running 1.11.0.
How can I provide you with the source text?
----------------------------------------------------------------------
Comment By: Russell Blau (russblau)
Date: 2009-03-09 19:50
Message:
What site does this occur on? It could be a problem with the site's
formatting of the message, or it could be in the XML parser. We need to
see the source text to know which.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2675814&group_…
Bugs item #2675814, was opened at 2009-03-09 13:46
Message generated for change (Comment added) made by djbarrett
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2675814&group_…
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: Invalid
Priority: 5
Private: No
Submitted By: Daniel Barrett (djbarrett)
Assigned to: Nobody/Anonymous (nobody)
Summary: SyntaxError: undefined entity : line 14789, column 89
Initial Comment:
When I run "python redirect.py double", after the first redirect gets fixed, I get:
Changing page [[My article name]]
Traceback (most recent call last):
File "redirect.py", line 840, in <module>
main()
File "redirect.py", line 836, in main
bot.run()
File "redirect.py", line 757, in run
self.fix_double_redirects()
File "redirect.py", line 611, in fix_double_redirects
self.fix_1_double_redirect(mysite, redir_name, summary)
File "redirect.py", line 707, in fix_1_double_redirect
redir.put(text)
File "c:\temp\pywikipedia\wikipedia.py", line 1419, in put
newPage, self.site().getToken(sysop = sysop), sysop = sysop)
File "c:\temp\pywikipedia\wikipedia.py", line 1549, in _putPage
if self.site().has_mediawiki_message("spamprotectiontitle")\
File "c:\temp\pywikipedia\wikipedia.py", line 4983, in has_mediawiki_message
v = self.mediawiki_message(key)
File "c:\temp\pywikipedia\wikipedia.py", line 4951, in mediawiki_message
tree = XML(decode)
File "<string>", line 85, in XML
SyntaxError: undefined entity : line 14789, column 89
Likewise for "python category.py move -from:"name" -to:"name2":
Traceback (most recent call last):
File "category.py", line 974, in <module>
bot.run()
File "category.py", line 446, in run
comment=self.editSummary, inPlace=self.inPlace)
File "c:\temp\pywikipedia\catlib.py", line 506, in change_category
article.put(text, comment)
File "c:\temp\pywikipedia\wikipedia.py", line 1419, in put
newPage, self.site().getToken(sysop = sysop), sysop = sysop)
File "c:\temp\pywikipedia\wikipedia.py", line 1549, in _putPage
if self.site().has_mediawiki_message("spamprotectiontitle")\
File "c:\temp\pywikipedia\wikipedia.py", line 4983, in has_mediawiki_message
v = self.mediawiki_message(key)
File "c:\temp\pywikipedia\wikipedia.py", line 4951, in mediawiki_message
tree = XML(decode)
File "<string>", line 85, in XML
SyntaxError: undefined entity : line 14789, column 89
Output of version.py:
Pywikipedia [http] trunk/pywikipedia (r6503, Mar 09 2009, 14:43:57)
Python 2.6 (r26:66721, Oct 2 2008, 11:35:03) [MSC v.1500 32 bit (Intel)]
----------------------------------------------------------------------
>Comment By: Daniel Barrett (djbarrett)
Date: 2009-03-24 16:13
Message:
I tried accessing index.php?title=Special:AllMessages&ot=xml, but XML
doesn't appear to be a valid choice for the output format. This is
MediaWiki 1.11.0, which seems to support only HTML and PHP as output
formats.
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2009-03-23 22:27
Message:
Daniel?
Have you checked your wiki messages?
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2009-03-09 20:44
Message:
And... it's not because you're looking from Spamprotectionttitle that this
message in particular is wrong: since ll messages are loaded at once, any
wrong message can trigger that behavior.
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2009-03-09 20:19
Message:
I know this bug =)
Can you double-check index.php?title=Special:AllMessages&ot=xml for us ?
I'm pretty sure that your browser will output the same error. The last time
I saw this bug, firefox was confused too.
Then, check the source of the page. I think that the first line will be an
empty line. If it is, the XML is non-standard. The first line should be
something like <?xml version="1.0" encoding="utf-8" ?>
Check your mediawiki extensions, one of them is, I think, inserting a new
line everytime that index.php is called. This is okay for HTML, but this is
wrong for XML. (To check which one is doing that, disable all extensions,
and activate them one by one, until the behavior is triggerred. Please
report the bugged extension so I can fix it in Mediawiki SVN, or file a bug
report to their authors...)
----------------------------------------------------------------------
Comment By: Daniel Barrett (djbarrett)
Date: 2009-03-09 16:43
Message:
[[MediaWiki:Spamprotectiontitle]] contains only the default text:
Spam protection filter
----------------------------------------------------------------------
Comment By: Russell Blau (russblau)
Date: 2009-03-09 16:19
Message:
Probably you want to escape the "undefined entity" by changing " " to
"&nbsp;" in the text on [[MediaWiki:Spamprotectiontitle]].
----------------------------------------------------------------------
Comment By: Daniel Barrett (djbarrett)
Date: 2009-03-09 15:36
Message:
This is on our own MediaWiki site, running 1.11.0.
How can I provide you with the source text?
----------------------------------------------------------------------
Comment By: Russell Blau (russblau)
Date: 2009-03-09 14:50
Message:
What site does this occur on? It could be a problem with the site's
formatting of the message, or it could be in the XML parser. We need to
see the source text to know which.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2675814&group_…
Bugs item #2709588, was opened at 2009-03-24 14:07
Message generated for change (Comment added) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2709588&group_…
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: interwiki
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: ARZ not recognized
Initial Comment:
interwiki.py doesn't recognize the language ARZ, and moves its interwiki links away from the interwiki list.
Pywikipedia [http] trunk/pywikipedia (r5788, Aug 06 2008, 16:29:47)
Python 2.5.1 (r251:54863, Jun 15 2008, 18:24:56)
[GCC 4.3.0 20080428 (Red Hat 4.3.0-8)]
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2009-03-24 18:43
Message:
strange...
I'm updating every 2-3 days from this site:
http://toolserver.org/~valhallasw/pywiki/
it claims to have r6537 from march 23rd.
I've updated again, just to make sure, and still, the output of "python
version.py" is the same as the above text.
I'll try the SVN ...
----------------------------------------------------------------------
Comment By: Mikko Silvonen (silvonen)
Date: 2009-03-24 17:17
Message:
You seem to be using an ancient version of pywikipedia. The current version
is r6554. Please check out the latest version and update it from the
Subversion repository every day:
http://meta.wikimedia.org/wiki/Using_the_python_wikipediabot#Download_with_…
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2709588&group_…
Bugs item #2709588, was opened at 2009-03-24 16:07
Message generated for change (Comment added) made by silvonen
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2709588&group_…
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: interwiki
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: ARZ not recognized
Initial Comment:
interwiki.py doesn't recognize the language ARZ, and moves its interwiki links away from the interwiki list.
Pywikipedia [http] trunk/pywikipedia (r5788, Aug 06 2008, 16:29:47)
Python 2.5.1 (r251:54863, Jun 15 2008, 18:24:56)
[GCC 4.3.0 20080428 (Red Hat 4.3.0-8)]
----------------------------------------------------------------------
Comment By: Mikko Silvonen (silvonen)
Date: 2009-03-24 19:17
Message:
You seem to be using an ancient version of pywikipedia. The current version
is r6554. Please check out the latest version and update it from the
Subversion repository every day:
http://meta.wikimedia.org/wiki/Using_the_python_wikipediabot#Download_with_…
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2709588&group_…
Bugs item #2709588, was opened at 2009-03-24 14:07
Message generated for change (Tracker Item Submitted) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2709588&group_…
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: interwiki
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: ARZ not recognized
Initial Comment:
interwiki.py doesn't recognize the language ARZ, and moves its interwiki links away from the interwiki list.
Pywikipedia [http] trunk/pywikipedia (r5788, Aug 06 2008, 16:29:47)
Python 2.5.1 (r251:54863, Jun 15 2008, 18:24:56)
[GCC 4.3.0 20080428 (Red Hat 4.3.0-8)]
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2709588&group_…
Bugs item #2709338, was opened at 2009-03-24 12:19
Message generated for change (Tracker Item Submitted) made by purodha
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2709338&group_…
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: None
Group: None
Status: Open
Resolution: None
Priority: 6
Private: No
Submitted By: Purodha B Blissenbach (purodha)
Assigned to: Nobody/Anonymous (nobody)
Summary: Weblinkchecker not working
Initial Comment:
Here is the error output:
python /.../pywikipedia/weblinkchecker.py -start:! -v
Checked for running processes. 1 processes currently running, including the current process.
Pywikipediabot (r6439 (wikipedia.py), Feb 24 2009, 21:48:26)
Python 2.5.2 (r252:60911, Jan 4 2009, 21:59:32)
[GCC 4.3.2]
Traceback (most recent call last):
File "/home/.../pywikipedia/pagegenerators.py", line 787, in __iter__
for page in self.wrapped_gen:
File "/home/.../pywikipedia/pagegenerators.py", line 709, in DuplicateFilterPageGenerator
for page in generator:
File "/home/.../pywikipedia/pagegenerators.py", line 248, in AllpagesPageGenerator
for page in site.allpages(start = start, namespace = namespace, includeredirects = includeredirects):
File "/home/.../pywikipedia/wikipedia.py", line 5502, in allpages
for p in soup.api.query.allpages:
AttributeError: 'NoneType' object has no attribute 'allpages'
'NoneType' object has no attribute 'allpages'
Saving history...
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2709338&group_…
Bugs item #2708281, was opened at 2009-03-24 05:04
Message generated for change (Settings changed) made by nicdumz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2708281&group_…
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: interwiki
Group: None
Status: Closed
Resolution: Fixed
Priority: 8
Private: No
Submitted By: Mikko Silvonen (silvonen)
Assigned to: Nobody/Anonymous (nobody)
Summary: Interwiki.py does not stay running in autonomous mode
Initial Comment:
I can't run interwiki.py in autonomous mode, because it exits after a few seconds. I don't know if the "Section not found" warning is related to the problem.
> interwiki.py -autonomous -lang:fi -start:"Kurenai Yuhi"
...
======Post-processing [[fi:Kurt Bruncrona]]======
Updating links on page [[fi:Kurt Bruncrona]].
No changes needed
Getting 60 pages from wikipedia:en...
WARNING: Section not found: [[en:List of Konoha ninja#Kurenai Yuhi]]
NOTE: [[en:List of Konoha ninja#Kurenai Yuhi]] is redirect to [[en:List of Naruto characters#Kurenai Yuhi]]
[[Kurenai Yuhi]]: [[en:List of Konoha ninja#Kurenai Yuhi]] gives new redirect [[en:List of Naruto characters#Kurenai Yuhi]]
Dump fi (wikipedia) saved
> python version.py
Pywikipedia [http] trunk/pywikipedia (r6547, Mar 24 2009, 02:23:49)
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-03-24 06:12
Message:
Okay, Fixed in r6553. That was an indentation problem =/
Thanks for your help :)
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2009-03-24 06:03
Message:
Confirmed.
I tried starting at G, I just get the same behavior, stops when fetching
en: .
Trying python interwiki.py -autonomous -lang:en -start:"G"
is even worse. Apparently there's an issue, specific to en.
----------------------------------------------------------------------
Comment By: Mikko Silvonen (silvonen)
Date: 2009-03-24 05:42
Message:
I think I see a pattern here: The script exits after the first "Getting 60
pages from wikipedia:en" message.
> interwiki.py -autonomous -lang:fi -start:"Krun Bruncronb"
...
======Post-processing [[fi:Kräk]]======
Updating links on page [[fi:Kräk]].
No changes needed
======Post-processing [[fi:Krytos-virus]]======
Updating links on page [[fi:Krytos-virus]].
No changes needed
Getting 60 pages from wikipedia:en...
Sleeping for 3.2 seconds, 2009-03-24 06:37:38
Dump fi (wikipedia) saved
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2708281&group_…
Bugs item #2708281, was opened at 2009-03-24 05:04
Message generated for change (Settings changed) made by nicdumz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2708281&group_…
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: interwiki
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 8
Private: No
Submitted By: Mikko Silvonen (silvonen)
Assigned to: Nobody/Anonymous (nobody)
Summary: Interwiki.py does not stay running in autonomous mode
Initial Comment:
I can't run interwiki.py in autonomous mode, because it exits after a few seconds. I don't know if the "Section not found" warning is related to the problem.
> interwiki.py -autonomous -lang:fi -start:"Kurenai Yuhi"
...
======Post-processing [[fi:Kurt Bruncrona]]======
Updating links on page [[fi:Kurt Bruncrona]].
No changes needed
Getting 60 pages from wikipedia:en...
WARNING: Section not found: [[en:List of Konoha ninja#Kurenai Yuhi]]
NOTE: [[en:List of Konoha ninja#Kurenai Yuhi]] is redirect to [[en:List of Naruto characters#Kurenai Yuhi]]
[[Kurenai Yuhi]]: [[en:List of Konoha ninja#Kurenai Yuhi]] gives new redirect [[en:List of Naruto characters#Kurenai Yuhi]]
Dump fi (wikipedia) saved
> python version.py
Pywikipedia [http] trunk/pywikipedia (r6547, Mar 24 2009, 02:23:49)
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-03-24 06:12
Message:
Okay, Fixed in r6553. That was an indentation problem =/
Thanks for your help :)
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2009-03-24 06:03
Message:
Confirmed.
I tried starting at G, I just get the same behavior, stops when fetching
en: .
Trying python interwiki.py -autonomous -lang:en -start:"G"
is even worse. Apparently there's an issue, specific to en.
----------------------------------------------------------------------
Comment By: Mikko Silvonen (silvonen)
Date: 2009-03-24 05:42
Message:
I think I see a pattern here: The script exits after the first "Getting 60
pages from wikipedia:en" message.
> interwiki.py -autonomous -lang:fi -start:"Krun Bruncronb"
...
======Post-processing [[fi:Kräk]]======
Updating links on page [[fi:Kräk]].
No changes needed
======Post-processing [[fi:Krytos-virus]]======
Updating links on page [[fi:Krytos-virus]].
No changes needed
Getting 60 pages from wikipedia:en...
Sleeping for 3.2 seconds, 2009-03-24 06:37:38
Dump fi (wikipedia) saved
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2708281&group_…