Bugs item #2770568, was opened at 2009-04-17 13:40
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=277056…
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: interwiki
Group: None
Status: Pending
Resolution: Out of Date
Priority: 5
Private: No
Submitted By: TaBaZzz (tabazzz)
Assigned to: Nobody/Anonymous (nobody)
Summary: interwiki.py Error messages & more
Initial Comment:
hello.
performing the following command on the hebrew wikipedia:
python interwiki.py -confirm תקשורת_נתונים
gives some error messages, and displaying lots of garbage (probably the coded contents of
the article). here is the error message:
Getting 1 pages from wikipedia:he...
Traceback (most recent call last):
File "/home/tal/pywikipedia/pagegenerators.py", line 790, in __iter__
for loaded_page in self.preload(somePages):
File "/home/tal/pywikipedia/pagegenerators.py", line 809, in preload
wikipedia.getall(site, pagesThisSite)
File "/home/tal/pywikipedia/wikipedia.py", line 3141, in getall
_GetAll(site, pages, throttle, force).run()
File "/home/tal/pywikipedia/wikipedia.py", line 2952, in run
data = self.getData()
File "/home/tal/pywikipedia/wikipedia.py", line 3124, in getData
response, data = self.site.postForm(address, predata)
File "/home/tal/pywikipedia/wikipedia.py", line 4580, in postForm
cookies=self.cookies(sysop = sysop))
File "/home/tal/pywikipedia/wikipedia.py", line 4638, in postData
data = data.decode(self.encoding())
File "/usr/lib64/python2.5/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xd7 in position 3131:
unexpected end of data
'utf8' codec can't decode byte 0xd7 in position 3131: unexpected end of data
version:
Pywikipedia nightly:pywikipedia (r6611, Apr 16 2009, 15:41:15)
Python 2.5.1 (r251:54863, Jun 15 2008, 18:24:56)
[GCC 4.3.0 20080428 (Red Hat 4.3.0-8)]
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-12-10 11:32
Message:
actual revision is r7755
as getData has been changed since r6611, please confirm whether this bug
is still valid.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=277056…