https://bugzilla.wikimedia.org/show_bug.cgi?id=55318
Web browser: --- Bug ID: 55318 Summary: weblinkchecker.py error Product: Pywikibot Version: unspecified Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: legoktm.wikipedia@gmail.com Classification: Unclassified Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/789/ Reported by: wikishizhao Created on: 2008-09-03 14:56:27 Subject: weblinkchecker.py error Original description: 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)
https://bugzilla.wikimedia.org/show_bug.cgi?id=55318
--- Comment #1 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- 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
https://bugzilla.wikimedia.org/show_bug.cgi?id=55318
--- Comment #2 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- 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
https://bugzilla.wikimedia.org/show_bug.cgi?id=55318
Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://sourceforge.net/p/p | |ywikipediabot/bugs/789
https://bugzilla.wikimedia.org/show_bug.cgi?id=55318
Ricordisamoa ricordisamoa@openmailbox.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ricordisamoa@openmailbox.or | |g Component|General |weblinkchecker.py Summary|weblinkchecker.py error |UnicodeEncodeError in | |weblinkchecker.py
https://bugzilla.wikimedia.org/show_bug.cgi?id=55318
Ricordisamoa ricordisamoa@openmailbox.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |DUPLICATE
--- Comment #3 from Ricordisamoa ricordisamoa@openmailbox.org ---
*** This bug has been marked as a duplicate of bug 55145 ***
pywikipedia-bugs@lists.wikimedia.org