Page MenuHomePhabricator

Python 3 on Windows 7 SP1 exception running generate_user_files
Closed, ResolvedPublic

Description

Exception on Windows, using either py3.3 or py3.4

C:\pywikibot\core>c:\Python34\python.exe .\generate_user_files.py
WARNING: Skipping loading of user-config.py.
WARNING: Running on Windows and transliteration_target is not set.
Please see https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Pywikibot/Wi
ndows
WARNING: family and mylang are not set.
Defaulting to family='test' and mylang='test'.

Your default user directory is "C:\pywikibot\core"
Do you want to use that directory? ([y]es, [N]o) y
Traceback (most recent call last):
  File ".\generate_user_files.py", line 325, in <module>
    default=False, automatic_quit=False):
  File "C:\pywikibot\core\pywikibot\bot.py", line 565, in input_yn
    automatic_quit=automatic_quit) == 'y'
  File "C:\pywikibot\core\pywikibot\bot.py", line 537, in input_choice
    automatic_quit)
  File "C:\pywikibot\core\pywikibot\userinterfaces\terminal_interface_base.py",
line 279, in input_choice
    answer = self.input(question)
  File "C:\pywikibot\core\pywikibot\userinterfaces\terminal_interface_base.py", line 203, in input
    text = self._raw_input()
  File "C:\pywikibot\core\pywikibot\userinterfaces\terminal_interface_win32.py",  line 97, in _raw_input
    if '\x1a' in data:
TypeError: Type str doesn't support the buffer API
<class 'TypeError'>
CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort

Event Timeline

jayvdb raised the priority of this task from to Needs Triage.
jayvdb updated the task description. (Show Details)
jayvdb added a project: Pywikibot.
jayvdb changed Security from none to None.
jayvdb subscribed.

Change 176371 had a related patch set uploaded (by Merlijn van Deen):
Win32 input for py3: streams are unicode not bytes

https://gerrit.wikimedia.org/r/176371

Patch-For-Review

Change 176371 merged by jenkins-bot:
Win32 input for py3: streams are unicode not bytes

https://gerrit.wikimedia.org/r/176371

jayvdb removed a project: Patch-For-Review.