Bug#970588: accerciser: exception on plugin initialzation
Samuel Thibault
sthibault at debian.org
Sat Sep 19 14:27:40 BST 2020
Control: reassign -1 python3-prompt-toolkit
Control: clone -1 -2
Control: retitle -1 io.UnsupportedOperation: fileno fd = stdout.fileno() on vt100.py line 449
Control: forwarded -1 https://github.com/prompt-toolkit/python-prompt-toolkit/issues/1136
Control: tags -1 + upstream fixed-upstream
Control: affects -1 + accerciser
Control: retitle -2 TypeError: a bytes-like object is required, not 'str'
Control: forwarded -2 https://github.com/prompt-toolkit/python-prompt-toolkit/issues/934
Control: tags -2 + upstream
Control: affects -2 + accerciser
Hello,
ydirson at free.fr, le sam. 19 sept. 2020 14:29:27 +0200, a ecrit:
> When starting accerciser (on a recently installed buster upgraded to testing) I get
> a "plugin errors" tab with a "io.UnsupportedOperation: fileno" title and the following
> contents. Not sure whose problem it is given the presence of ipython in this stack trace.
It is with prompt_toolkit actually, already fixed upstream.
Note that there is also
https://github.com/prompt-toolkit/python-prompt-toolkit/issues/934
which will also affect accerciser.
Samuel
> Traceback (most recent call last):
> File "/usr/lib/python3/dist-packages/accerciser/plugin/plugin_manager.py", line 192, in _enablePlugin
> plugin_instance.init()
> File "/usr/share/accerciser/plugins/console.py", line 42, in init
> self.ipython_view = ipython_view.IPythonView()
> File "/usr/share/accerciser/plugins/ipython_view.py", line 587, in __init__
> IterableIPShell.__init__(self, cout=self.cout, cerr=self.cout,
> File "/usr/share/accerciser/plugins/ipython_view.py", line 111, in __init__
> self.IP = IPython.terminal.embed.InteractiveShellEmbed.instance(\
> File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 510, in instance
> inst = cls(*args, **kwargs)
> File "/usr/lib/python3/dist-packages/IPython/terminal/embed.py", line 159, in __init__
> super(InteractiveShellEmbed,self).__init__(**kw)
> File "/usr/lib/python3/dist-packages/IPython/terminal/interactiveshell.py", line 526, in __init__
> self.init_prompt_toolkit_cli()
> File "/usr/lib/python3/dist-packages/IPython/terminal/interactiveshell.py", line 318, in init_prompt_toolkit_cli
> self.pt_app = PromptSession(
> File "/usr/lib/python3/dist-packages/prompt_toolkit/shortcuts/prompt.py", line 466, in __init__
> self.app = self._create_application(editing_mode, erase_when_done)
> File "/usr/lib/python3/dist-packages/prompt_toolkit/shortcuts/prompt.py", line 717, in _create_application
> application: Application[_T] = Application(
> File "/usr/lib/python3/dist-packages/prompt_toolkit/application/application.py", line 271, in __init__
> self.output = output or session.output
> File "/usr/lib/python3/dist-packages/prompt_toolkit/application/current.py", line 70, in output
> self._output = create_output()
> File "/usr/lib/python3/dist-packages/prompt_toolkit/output/defaults.py", line 74, in create_output
> return Vt100_Output.from_pty(
> File "/usr/lib/python3/dist-packages/prompt_toolkit/output/vt100.py", line 458, in from_pty
> fd = stdout.fileno()
> io.UnsupportedOperation: fileno
More information about the Pkg-a11y-devel
mailing list