Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
xonsh traceback
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/xonsh/", line 10833, in xontribs_load
update_context(name, ctx=ctx)
File "/usr/lib/python3/dist-packages/xonsh/", line 10778, in update_context
modctx = xontrib_context(name)
File "/usr/lib/python3/dist-packages/xonsh/", line 10744, in xontrib_context
m = importlib.import_module(
File "/usr/lib/python3.9/importlib/", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 786, in exec_module
File "/usr/lib/python3/dist-packages/xonsh/", line 24289, in get_code
code = execer.compile(src, glbs=ctx, locs=ctx)
File "/usr/lib/python3/dist-packages/xonsh/", line 23974, in compile
tree = self.parse(input, ctx, mode=mode, filename=filename, transform=transform)
File "/usr/lib/python3/dist-packages/xonsh/", line 23934, in parse
tree, input = self._parse_ctx_free(input, mode=mode, filename=filename)
File "/usr/lib/python3/dist-packages/xonsh/", line 24058, in _parse_ctx_free
tree = self.parser.parse(
File "/usr/lib/python3/dist-packages/xonsh/parsers/", line 497, in parse
tree = self.parser.parse(input=s, lexer=self.lexer, debug=debug_level)
File "/usr/lib/python3/dist-packages/ply/", line 333, in parse
return self.parseopt_notrack(input, lexer, debug, tracking, tokenfunc)
File "/usr/lib/python3/dist-packages/ply/", line 1120, in parseopt_notrack
File "/usr/lib/python3/dist-packages/xonsh/parsers/", line 2221, in p_atom_expr
p[0] = self.apply_trailers(p[1], p[2])
File "/usr/lib/python3/dist-packages/xonsh/parsers/", line 2215, in apply_trailers
assert False
Failed to load xontrib prompt_ret_code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment