Bugs item #2860410, was opened at 2009-09-17 04:17 Message generated for change (Comment added) made by xqt You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2860410...
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: 9 Private: No Submitted By: Mikko Silvonen (silvonen) Assigned to: Nobody/Anonymous (nobody) Summary: mediawiki_message crashes with SyntaxError: undefined entity
Initial Comment:
interwiki.py -autonomous -lang:fi -namespace:0 -start:"Albert Camus"
Traceback (most recent call last): File "C:\svn\pywikipedia\interwiki.py", line 2122, in <module> mainpagename = site.mediawiki_message('mainpage') File "c:\svn\pywikipedia\wikipedia.py", line 5422, in mediawiki_message tree = XML(decode) File "<string>", line 85, in XML SyntaxError: undefined entity : line 669, column 150
python version.py
Pywikipedia [http] trunk/pywikipedia (r7255, 2009/09/16, 20:45:00) Python 2.5.4 (r254:67916, Jan 29 2009, 12:02:11) [MSC v.1310 32 bit (Intel)]
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-09-17 12:47
Message: API also doesn't works because it gets an error message.
----------------------------------------------------------------------
Comment By: xqt (xqt) Date: 2009-09-17 12:39
Message: For the moment use the API as workaround. Just put the following line into user_config.py:
use_api = True
----------------------------------------------------------------------
Comment By: Bertrand Grondin (grondin85) Date: 2009-09-17 11:19
Message: I've the same problem too with : python replace.py -cat -putthrottle:"3" -summary:"Article archivé, veuillez en créer un nouveau pour mieux coller à l’actualité" -regex "{{[p|P]ublication}}" "{{Publication}}\n{{Archive}}"
Changing page [[Un des criminels « les plus recherchés » par Scotland Yard détenu aux Pays-Bas]] Saving page [[Un des criminels « les plus recherchés » par Scotland Yard détenu aux Pays-Bas]] failed: Traceback (most recent call last): File "/home/bertrand/pywikipedia/wikipedia.py", line 7507, in async_put page.put(newtext, comment, watchArticle, minorEdit, force) File "/home/bertrand/pywikipedia/wikipedia.py", line 1434, in put newPage, self.site().getToken(sysop = sysop), sysop = sysop, botflag=botflag, maxTries=maxTries) File "/home/bertrand/pywikipedia/wikipedia.py", line 1466, in _putPage newPage, token, newToken, sysop, captcha, botflag, maxTries) File "/home/bertrand/pywikipedia/wikipedia.py", line 1813, in _putPageOld if self.site().has_mediawiki_message("spamprotectiontitle")\ File "/home/bertrand/pywikipedia/wikipedia.py", line 5454, in has_mediawiki_message v = self.mediawiki_message(key) File "/home/bertrand/pywikipedia/wikipedia.py", line 5422, in mediawiki_message tree = XML(decode) File "<string>", line 85, in XML SyntaxError: undefined entity : line 641, column 166
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz) Date: 2009-09-17 10:17
Message: It is because Special:Allmessages has changed on WMF sites and does not accept anymore the ot=xml parameter.
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2860410...