Python 3.4.3 win32 while using IDLE and an up-to-date version of pywikibot:
>>> import pywikibot as pwb >>> pwb.Site('fa').login() Traceback (most recent call last): File "<pyshell#1>", line 1, in <module> pwb.Site('fa').login() File "E:\core\pywikibot\site.py", line 1676, in login if loginMan.login(retry=True): File "E:\core\pywikibot\login.py", line 232, in login password=True) File "E:\core\pywikibot\bot.py", line 540, in input data = ui.input(question, password) File "E:\core\pywikibot\userinterfaces\terminal_interface_base.py", line 212, in input self.output(question + ' ') File "E:\core\pywikibot\userinterfaces\terminal_interface_base.py", line 191, in output self._print(text, targetStream) File "E:\core\pywikibot\userinterfaces\terminal_interface_base.py", line 132, in _print self.printColorized(text, targetStream) File "E:\core\pywikibot\userinterfaces\terminal_interface_win32.py", line 91, in printColorized targetStream.write(text.encode(self.encoding, 'replace')) File "C:\Python34\lib\idlelib\PyShell.py", line 1344, in write raise TypeError('must be str, not ' + type(s).__name__) TypeError: must be str, not bytes >>>