Bugs item #2870574, was opened at 2009-09-30 10:30 Message generated for change (Comment added) made by xqt You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2870574...
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: Closed Resolution: Duplicate
Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: replace.py crashes with wikipedia.py (?)
Initial Comment: An error occurs when my bot submit the new version of a page to the server, which has lasted for around two weeks. Due to this error, the bot will stop right after its first edit, but the page is correctly saved. The error message is as follows:
Traceback (most recent call last): File "replace.py", line 711, in <module> main() File "replace.py", line 707, in main bot.run() File "replace.py", line 431, in run page.put(new_text, self.editSummary) File "c:\python26\pywikipedia\wikipedia.py", line 1448, in put newPage, self.site().getToken(sysop = sysop), sysop = sysop, botflag=botflag , maxTries=maxTries) File "c:\python26\pywikipedia\wikipedia.py", line 1480, in _putPage newPage, token, newToken, sysop, captcha, botflag, maxTries) File "c:\python26\pywikipedia\wikipedia.py", line 1827, in _putPageOld if self.site().has_mediawiki_message("spamprotectiontitle")\ File "c:\python26\pywikipedia\wikipedia.py", line 5478, in has_mediawiki_message v = self.mediawiki_message(key) File "c:\python26\pywikipedia\wikipedia.py", line 5443, in mediawiki_message tree = XML(decode) File "<string>", line 85, in XML SyntaxError: undefined entity : line 637, column 117
Output of python version.py: Pywikipedia [http] trunk/pywikipedia (r7338, 2009/09/29, 20:33:35) Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)]
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-10-04 20:26
Message: fixed in r7267, r7349, r7354 duplicate to #2867449, #2865679, #2862265, #2860410
actualize your bot
----------------------------------------------------------------------
Comment By: siebrand (siebrand) Date: 2009-09-30 10:33
Message: Please try again with the following in your user-config.py: use_api = True
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2870574...
pywikipedia-bugs@lists.wikimedia.org