Page MenuHomePhabricator

Compat deprecation message broke compat
Closed, InvalidPublic

Description

warning message in throttle.py introduced in https://gerrit.wikimedia.org/r/322502 crasshes with
EOFError: EOF when reading a line

example:

Press <enter> to continue.


Traceback (most recent call last):

File "basicvotes.py", line 29, in <module>
  import wikipedia as pywikibot
File "/usr/home/masti/pw/compat/wikipedia.py", line 10466, in <module>
  get_throttle = Throttle()
File "/usr/home/masti/pw/compat/pywikibot/throttle.py", line 66, in __init__
  self.checkMultiplicity()
File "/usr/home/masti/pw/compat/pywikibot/throttle.py", line 140, in checkMultiplicity
  self._show_warning()
File "/usr/home/masti/pw/compat/pywikibot/throttle.py", line 89, in _show_warning
  \03{default}""")
File "/usr/home/masti/pw/compat/wikipedia.py", line 10329, in input
  data = ui.input(question, password)
File "/usr/home/masti/pw/compat/userinterfaces/terminal_interface_base.py", line 142, in input
  text = self._raw_input()
File "/usr/home/masti/pw/compat/userinterfaces/terminal_interface_base.py", line 120, in _raw_input
  return raw_input()

EOFError: EOF when reading a line

Event Timeline

Masti renamed this task from Compat deprecation message broke comat to Compat deprecation message broke compat.Nov 27 2016, 9:30 PM
Xqt triaged this task as Low priority.Apr 10 2017, 12:18 PM
Xqt added a subscriber: Xqt.

Couldn't find this bug on my repo. Could you give me you basicvotes.py for examination?

A workarround would be:

  • open or create throttle.ctrl as text file (normally inside the pywikibot Folder)
  • Add Compat deprecation warning shown as first line. No deprecation warning will be shown anymore.