Hello, maybe somebody could help to solve a strange interwiki bot bug.
Now I often get it when bot is checking articles with some letters with diacritics, as in example bellow it stops when it founds Spanish letter ํ. It also hapens with some Hungarian, Finnish letters. The most strange thing is that on another computer with the same OS, the same Python version and the same pywikipedia version everything works perfectly.
C:\Python26\pywikipedia>interwiki.py Kategorija:Lietuvos archeologija
Getting 1 pages from wikipedia:lt...
[[Kategorija:Lietuvos archeologija]]: [[lt:Kategorija:Lietuvos archeologija]] gi
ves new interwiki [[en:Category:Archaeology of Lithuania]]
Getting 1 pages from wikipedia:en...
[[Kategorija:Lietuvos archeologija]]: [[en:Category:Archaeology of Lithuania]] g
ives new interwiki [[es:CategorDump lt (wikipedia) saved
Traceback (most recent call last):
File "C:\Python26\pywikipedia\interwiki.py", line 2186, in <module>
bot.run()
File "C:\Python26\pywikipedia\interwiki.py", line 1888, in run
self.queryStep()
File "C:\Python26\pywikipedia\interwiki.py", line 1861, in queryStep
self.oneQuery()
File "C:\Python26\pywikipedia\interwiki.py", line 1857, in oneQuery
subject.batchLoaded(self)
File "C:\Python26\pywikipedia\interwiki.py", line 1210, in batchLoaded
wikipedia.output(u"%s: %s gives new interwiki %s"% (self.originPage.aslink()
, page.aslink(True), linkedPage.aslink(True)))
File "C:\Python26\pywikipedia\wikipedia.py", line 7421, in output
ui.output(text, toStdout = toStdout)
File "C:\Python26\pywikipedia\userinterfaces\terminal_interface.py", line 221,
in output
self.printColorized(text, targetStream)
File "C:\Python26\pywikipedia\userinterfaces\terminal_interface.py", line 174,
in printColorized
self.printColorizedInWindows(text, targetStream)
File "C:\Python26\pywikipedia\userinterfaces\terminal_interface.py", line 156,
in printColorizedInWindows
targetStream.write(text.encode(config.console_encoding, 'replace'))
IOError: [Errno 42] Illegal byte sequence
Sarunas (User:Hugo.arg)