My bot on Hungarian toolserver is broken.
First script: Traceback (most recent call last): File "pywikipedia/frissdump.py", line 43, in <module> pywikibot.output(u'A legfrissebb dump dĂĄtuma: ' + friss) File "/home/binaris/pywikipedia/wikipedia.py", line 7986, in output ui.output(text, toStdout = toStdout) File "/home/binaris/pywikipedia/userinterfaces/terminal_interface_base.py", line 102, in output self._print(text, targetStream) File "/home/binaris/pywikipedia/userinterfaces/terminal_interface_base.py", line 59, in _print self.printNonColorized(text, targetStream) File "/home/binaris/pywikipedia/userinterfaces/terminal_interface_base.py", line 51, in printNonColorized targetStream.write(line.encode(self.encoding, 'replace')) AttributeError: UnixUI instance has no attribute 'encoding'
Second script: Traceback (most recent call last): File "pywikipedia/toc.py", line 124, in <module> pywikibot.output('Initializing (getting month names takes a while)') File "/home/binaris/pywikipedia/wikipedia.py", line 7986, in output ui.output(text, toStdout = toStdout) File "/home/binaris/pywikipedia/userinterfaces/terminal_interface_base.py", line 102, in output self._print(text, targetStream) File "/home/binaris/pywikipedia/userinterfaces/terminal_interface_base.py", line 59, in _print self.printNonColorized(text, targetStream) File "/home/binaris/pywikipedia/userinterfaces/terminal_interface_base.py", line 51, in printNonColorized targetStream.write(line.encode(self.encoding, 'replace')) AttributeError: UnixUI instance has no attribute 'encoding'
Version.py: Pywikipedia [http] trunk/pywikipedia (r10045, 2012/03/26, 00:17:53) Python 2.7.2+ (default, Aug 16 2011, 09:23:59) [GCC 4.6.1] config-settings: use_api = True use_api_login = True unicode test: ok
Linux version 2.6.32-5-openvz-amd64 (Debian 2.6.32-39squeeze1) ( dannf@debian.org) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Mon Jan 9 21:16:36 UTC 2012