Problem with Xonsh on Ubuntu 18.04

31 views
Skip to first unread message

Grové Steyn

unread,
Jun 20, 2018, 4:37:53 AM6/20/18
to xonsh
I have installed Xonsh by two methods (apt and pip3) and in both cases I get the following error:

====
grove@grove-YOGA-920:~$ xonsh
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/xonsh/main.py", line 341, in main
    args = premain(argv)
  File "/usr/local/lib/python3.6/dist-packages/xonsh/main.py", line 294, in premain
    env = start_services(shell_kwargs, args)
  File "/usr/local/lib/python3.6/dist-packages/xonsh/main.py", line 246, in start_services
    builtins.__xonsh_shell__ = Shell(execer=execer, **shell_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/xonsh/shell.py", line 145, in __init__
    from xonsh.ptk.shell import PromptToolkitShell as shell_class
  File "/usr/local/lib/python3.6/dist-packages/xonsh/ptk/shell.py", line 6, in <module>
    from prompt_toolkit.key_binding.manager import KeyBindingManager
ModuleNotFoundError: No module named 'prompt_toolkit.key_binding.manager'
Xonsh encountered an issue during launch
Failback to /bin/sh
====

It looks like a problem with prompt_toolkit.key_binding.manager. Any suggestions?




Gil Forsyth

unread,
Jun 20, 2018, 9:25:42 AM6/20/18
to Grové Steyn, xonsh
Hi Grové,

That looks like an error caused by having a version of prompt_toolkit >= 2. We're working on making xonsh compatible with that but in the interim you can do a `pip install prompt_toolkit<2` and that should let xonsh start up.

Gil

--
You received this message because you are subscribed to the Google Groups "xonsh" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xonsh+un...@googlegroups.com.
To post to this group, send email to xo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xonsh/25ccd6a7-eeb7-4de8-b7d2-76ee95b20359%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Grové Steyn

unread,
Jun 20, 2018, 12:03:14 PM6/20/18
to xonsh
Yes, that did the trick - thanks!
Reply all
Reply to author
Forward
0 new messages