xonsh problem with sytax highlighting?

15 views
Skip to first unread message

Toby Shepard

unread,
Mar 12, 2020, 12:26:06 PM3/12/20
to xonsh
desk:toby:~(2)> cat /etc/issue
Ubuntu 16.04.5 LTS \n \l

desk:toby:~(2)> xonsh

                                                        Welcome to the xonsh shell (0.9.14)

                                                 ~ With great shell comes great reproducibility ~

-------------------------------------------------------------------------------------------------------------------------------------------------
xonfig tutorial    ->    Launch the tutorial in the browser
xonfig web         ->    Run the configuration tool in the browser and claim your shell
(Note: Run the configurationn tool or create a ~/.xonshrc file to suppress the welcome screen)

toby@desk ~ $ 3+3
xonsh: To log full traceback to a file set: $XONSH_TRACEBACK_LOGFILE = <filename>
Traceback (most recent call last):
   File "/usr/local/lib/python3.5/dist-packages/xonsh/__amalgam__.py", line 17757, in default
     run_compiled_code(code, self.ctx, None, "single")
   File "/usr/local/lib/python3.5/dist-packages/xonsh/__amalgam__.py", line 2948, in run_compiled_code
     func(code, glb, loc)
   File "<xonsh-code>", line 1, in <module>
   File "/usr/local/lib/python3.5/dist-packages/xonsh/__amalgam__.py", line 24003, in _pprint_displayhook
     print_color(tokens, end=end)
   File "/usr/local/lib/python3.5/dist-packages/xonsh/__amalgam__.py", line 6131, in print_color
     builtins.__xonsh__.shell.shell.print_color(string, **kwargs)
   File "/usr/local/lib/python3.5/dist-packages/xonsh/__amalgam__.py", line 20560, in print_color
     style_proxy = pyghooks.xonsh_style_proxy(self.styler)
   File "/usr/local/lib/python3.5/dist-packages/xonsh/pyghooks.py", line 428, in xonsh_style_proxy
     pygments.style.ansicolors.update(ANSICOLOR_NAMES_MAP)
AttributeError: module 'pygments.style' has no attribute 'ansicolors'
toby@desk ~ $
Reply all
Reply to author
Forward
0 new messages