Bugs item #2885545, was opened at 2009-10-24 19:27 Message generated for change (Comment added) made by xqt You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2885545...
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: Closed Resolution: Fixed
Priority: 5 Private: No Submitted By: Tgr (tgr_) Assigned to: xqt (xqt) Summary: Encoding problem in wikipedia.py network error handling
Initial Comment: A pywikipedia user received this error:
Traceback (most recent call last): File "D:\progik\pywikipedia\pagegenerators.py", line 801, in __iter__ for loaded_page in self.preload(somePages): File "D:\progik\pywikipedia\pagegenerators.py", line 826, in preload wikipedia.getall(site, pagesThisSite) File "D:\progik\pywikipedia\wikipedia.py", line 3887, in getall _GetAll(site, pages, throttle, force).run() File "D:\progik\pywikipedia\wikipedia.py", line 3698, in run output(u''.join(traceback.format_exception(*sys.exc_info()))) UnicodeDecodeError: 'ascii' codec can't decode byte 0xf3 in position 36: ordinal not in range(128)
She is using a Hungarian Windows, so I'm assuming the system error message has some non-ASCII character causing this error. The error is annoying because it this hides the actual network error, and makes it hard to diagnose the real problem.
She uses Pywikipedia [http] trunk/pywikipedia (r7537, 2009/10/23, 17:13:00) with Python 2.6.3 (r263rc1:75186, Oct 2 2009, 20:40:30) [MSC v.1500 32 bit (Intel)].
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-11-16 11:49
Message: done in r7656
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2885545...