Bugs item #2823378, was opened at 2009-07-18 00:47
Message generated for change (Comment added) made by siebrand
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=282337…
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: 8
Private: No
Submitted By: siebrand (siebrand)
Assigned to: Nobody/Anonymous (nobody)
Summary: replace.py crashes against latest MediaWiki (r53425)
Initial Comment:
Replace.py crashes against MediaWiki r53425 with the following error after the first edit.
I tried r7000, r7060 and 7075. Neither works. My guess is MediaWiki pages changed and now
screen scraping is broken. Tried against -family:i18n -lang:i18n
Changing page [[MediaWiki:Optin-improvements/tr]]
Traceback (most recent call last):
File "replace.py", line 705, in <module>
main()
File "replace.py", line 701, in main
bot.run()
File "replace.py", line 429, in run
page.put(new_text, self.editSummary)
File "/home/siebrand/i18n/wikipedia.py", line 1424, in put
newPage, self.site().getToken(sysop = sysop), sysop = sysop, botflag=botflag,
maxTries=maxTries)
File "/home/siebrand/i18n/wikipedia.py", line 1560, in _putPage
if self.site().has_mediawiki_message("spamprotectiontitle")\
File "/home/siebrand/i18n/wikipedia.py", line 5053, in has_mediawiki_message
v = self.mediawiki_message(key)
File "/home/siebrand/i18n/wikipedia.py", line 5021, in mediawiki_message
tree = XML(decode)
File "<string>", line 85, in XML
SyntaxError: syntax error: line 1, column 0
----------------------------------------------------------------------
Comment By: siebrand (siebrand)
Date: 2009-07-18
00:47
Message:
$ python version.py
Pywikipedia [http] trunk/pywikipedia (r7075, 2009/07/17, 20:29:14)
Python 2.5.2 (r252:60911, Jul 31 2008, 17:31:22)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)]
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=282337…