Bugs item #2788812, was opened at 2009-05-08 09:49 Message generated for change (Comment added) made by multichill You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2788812...
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: 7 Private: No Submitted By: Multichill (multichill) Assigned to: Nobody/Anonymous (nobody) Summary: TypeError: unsubscriptable object
Initial Comment: Pywikipedia [http] trunk/pywikipedia (r6854, May 07 2009, 13:07:14) Python 2.4.4 (#1, Jun 11 2007, 23:35:50) [GCC 3.3.3 (NetBSD nb3 20040520)]
Traceback (most recent call last): File "/home/bot/pywikipedia/imagerecat.py", line 384, in ? main(sys.argv[1:]) File "/home/bot/pywikipedia/imagerecat.py", line 378, in main categorizeImages(generator, onlyFilter, onlyUncat) File "/home/bot/pywikipedia/imagerecat.py", line 85, in categorizeImages saveImagePage(imagepage, newcats, usage, galleries, onlyFilter) File "/home/bot/pywikipedia/imagerecat.py", line 309, in saveImagePage imagepage.put(newtext, comment) File "/home/bot/pywikipedia/wikipedia.py", line 1419, in put newPage, self.site().getToken(sysop = sysop), sysop = sysop, botflag=botflag) File "/home/bot/pywikipedia/wikipedia.py", line 1552, in _putPage if self.site().has_mediawiki_message("spamprotectiontitle")\ File "/home/bot/pywikipedia/wikipedia.py", line 5024, in has_mediawiki_message v = self.mediawiki_message(key) File "/home/bot/pywikipedia/wikipedia.py", line 4997, in mediawiki_message self._mediawiki_messages = _dict([(tag.get('name').lower(), html2unicode(tag.string)) File "/home/bot/pywikipedia/wikipedia.py", line 4125, in html2unicode text = text[i:] TypeError: unsubscriptable object
Also seen this happen with Commonsdelinker. The new version of added in r6842 seems to cause this error.
----------------------------------------------------------------------
Comment By: Multichill (multichill)
Date: 2009-05-08 09:57
Message: I reverted the changes in r6842 to the previous revision (see r6857).
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2788812...