Bugs item #2091286, was opened at 2008-09-03 10:56 Message generated for change (Comment added) made by djbarrett You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2091286...
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: 5 Private: No Submitted By: shizhao (wikishizhao) Assigned to: Nobody/Anonymous (nobody) Summary: weblinkchecker.py error
Initial Comment: see:
Exception in thread 中華民國國旗 - http://law.moj.gov.tw/Scripts/Query1A.asp?no=1D0020020&K1=%E5%9C%8B%E6%9...: Traceback (most recent call last): File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner self.run() File "weblinkchecker.py", line 504, in run linkChecker = LinkChecker(self.url, HTTPignore = self.HTTPignore) File "weblinkchecker.py", line 302, in __init__ self.changeUrl(url) File "weblinkchecker.py", line 357, in changeUrl self.query = unicode(urllib.quote(self.query.encode(encoding), '=&')) UnicodeEncodeError: 'latin-1' codec can't encode characters in position 17-18: ordinal not in range(256)
----------------------------------------------------------------------
Comment By: Daniel Barrett (djbarrett) Date: 2008-09-08 13:33
Message: I am getting the same error (tuple index out of range) reported by wikishizhao. It occurs for many URLs.
Platform:
Pywikipedia [http] trunk/pywikipedia (r5880, Sep 07 2008, 21:16:02) Python 2.4.3 (#1, May 24 2008, 13:57:05) [GCC 4.1.2 20070626 (Red Hat 4.1.2-14)]
Example:
Exception while processing URL http://core3.bsn.endeca.com/wine45/controller.jsp?N=0 in page Advanced gallery vendor blog Exception in thread Advanced gallery vendor blog - http://core3.bsn.endeca.com/wine45/controller.jsp?N=0: Traceback (most recent call last): File "/usr/lib64/python2.4/threading.py", line 442, in __bootstrap self.run() File "weblinkchecker.py", line 506, in run ok, message = linkChecker.check() File "weblinkchecker.py", line 437, in check msg = error[1] IndexError: tuple index out of range
----------------------------------------------------------------------
Comment By: shizhao (wikishizhao) Date: 2008-09-03 11:01
Message: Logged In: YES user_id=1853316 Originator: YES
and:
Exception while processing URL http://sat2.hp.infoseek.co.jp/taiwan/cts.jpg in page 中華電視公司 Exception in thread 中華電視公司 - http://sat2.hp.infoseek.co.jp/taiwan/cts.jpg: Traceback (most recent call last): File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner self.run() File "weblinkchecker.py", line 506, in run ok, message = linkChecker.check() File "weblinkchecker.py", line 437, in check msg = error[1] IndexError: tuple index out of range
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2091286...