Bugs item #1909468, was opened at 2008-03-07 06:28 Message generated for change (Comment added) made by russblau You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1909468...
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: Invalid
Priority: 5 Private: No Submitted By: Alex S.H. Lin (lin4h) Assigned to: Nobody/Anonymous (nobody) Summary: AssertionError when running in others wikisite
Initial Comment: I tried to run redirect.py in this wiki (http://twbsball.dils.tku.edu.tw/), but it rollback this error.
Traceback (most recent call last): File "D:\My Documents\SOURCE\mwbot\pywikipedia\redirect.py", line 436, in <module> main() File "D:\My Documents\SOURCE\mwbot\pywikipedia\redirect.py", line 432, in main
bot.run() File "D:\My Documents\SOURCE\mwbot\pywikipedia\redirect.py", line 386, in run self.delete_broken_redirects() File "D:\My Documents\SOURCE\mwbot\pywikipedia\redirect.py", line 251, in delete_broken_redirects for redir_name in self.generator.retrieve_broken_redirects(): File "D:\My Documents\SOURCE\mwbot\pywikipedia\redirect.py", line 180, in retrieve_broken_redirects maintenance_txt = mysite.getUrl(path) File "D:\My Documents\SOURCE\mwbot\pywikipedia\wikipedia.py", line 4162, in getUrl self._getUserData(text, sysop = sysop) File "D:\My Documents\SOURCE\mwbot\pywikipedia\wikipedia.py", line 4183, in _getUserData blocked = self.isBlocked(sysop = sysop) File "D:\My Documents\SOURCE\mwbot\pywikipedia\wikipedia.py", line 3863, in isBlocked % self.api_address(), sysop=sysop) File "D:\My Documents\SOURCE\mwbot\pywikipedia\wikipedia.py", line 4151, in getUrl self.checkCharset(charset) File "D:\My Documents\SOURCE\mwbot\pywikipedia\wikipedia.py", line 5241, in checkCharset % (repr(self), self.charset, charset) AssertionError: charset for twbsball:twbsball changed from UTF-8 to iso-8859-1
(I think maybe my family files lost some settings, so I update my file)
----------------------------------------------------------------------
Comment By: Russell Blau (russblau)
Date: 2008-03-07 08:12
Message: Logged In: YES user_id=855050 Originator: NO
You need to add a method to the twbsball_family.py file:
def apipath(self, code): raise NotImplementedError, "api.php not implemented on the twbsball wiki"
You also need to find out what the variable {{SCRIPTPATH}} converts to on this wiki, and then add a method:
def scriptpath(self, code): return "{{SCRIPTPATH}}" # Replace with actual value of variable on the wiki
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1909468...