Package: xonsh
Version: 0.9.22+dfsg-1
Severity: important
TLDR; Add a dependency on at least version 3.0.7-1 of python3-prompt-toolkit.
Dear Maintainer,
Thank you very much for maintaining the cool
looking package named "xonsh".
I've often wanted to combine python's array math
with shell pipes, like APL and jsoftware.
So I tried installing the xonsh package, and
running it.
$ ~ xonsh
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/xonsh/__amalgam__.py", line 24554,
in main
args = premain(argv)
File "/usr/lib/python3/dist-packages/xonsh/__amalgam__.py", line 24490,
in premain
env = start_services(shell_kwargs, args)
File "/usr/lib/python3/dist-packages/xonsh/__amalgam__.py", line 24439,
in start_services
builtins.__xonsh__.shell = Shell(execer=execer, **shell_kwargs)
File "/usr/lib/python3/dist-packages/xonsh/__amalgam__.py", line 16310,
in __init__
from xonsh.ptk_shell.shell import PromptToolkitShell as shell_class
File "/usr/lib/python3/dist-packages/xonsh/ptk_shell/shell.py", line 24,
in <module>
from prompt_toolkit.key_binding.bindings.emacs import (
ImportError: cannot import name 'load_emacs_shift_selection_bindings' from
'prompt_toolkit.key_binding.bindings.emacs'
(/usr/lib/python3/dist-packages/prompt_toolkit/key_binding/bindings/emacs.py)
Xonsh encountered an issue during launch
Failback to /bin/bash
As you can see, it failed.
Next, I checked which package contains a file
xonsh complained about.
$ apt-file search
/usr/lib/python3/dist-packages/prompt_toolkit/key_binding/bindings/emacs.py
python3-prompt-toolkit:
/usr/lib/python3/dist-packages/prompt_toolkit/key_binding/bindings/emacs.py
Next, I checked if a newer version of the python3-prompt-toolkit was available.
$ apt-cache policy python3-prompt-toolkit
[...]
Installed: 2.0.10-2
Candidate: 3.0.7-1
[...]
Next, I upgraded python3-prompt-toolkit from
version 2.0.10-2 to 3.0.7-1.
root$ aptitude install python3-prompt-toolkit
Then I tried running xonsh again.
$ xonsh
~ Crustaceanly Yours ~
It worked!
So, it seems to me that Debian's fine xonsh
package might be improved by adding a dependency
for at least version 3.0.7-1 of the
python3-prompt-toolkit package.
So it is said.
So it is done.
Correct package dependencies, are....
(wait for it...)
NUMBER ONE!
;-)
So,
Kingsley
*** Reporter, please consider answering these questions, where appropriate ***
* What led up to the situation?
* What exactly did you do (or not do) that was effective (or
ineffective)?
* What was the outcome of this action?
* What outcome did you expect instead?
*** End of the template - remove these template lines ***
-- System Information:
Debian Release: bullseye/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 4.4.0-1-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)
Versions of packages xonsh depends on:
ii python3-ply 3.11-4
pn python3:any <none>
Versions of packages xonsh recommends:
ii python3-prompt-toolkit 3.0.7-1
ii python3-pygments 2.3.1+dfsg-1
ii python3-setproctitle 1.1.10-2
Versions of packages xonsh suggests:
pn xonsh-doc <none>
-- no debconf information