Skip to content

Instantly share code, notes, and snippets.

@DangerOnTheRanger
Created December 24, 2020 11:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DangerOnTheRanger/4bad35343d3cc99aa5b47538b116842b to your computer and use it in GitHub Desktop.
Save DangerOnTheRanger/4bad35343d3cc99aa5b47538b116842b to your computer and use it in GitHub Desktop.
xonsh traceback
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/xonsh/__amalgam__.py", line 10833, in xontribs_load
update_context(name, ctx=ctx)
File "/usr/lib/python3/dist-packages/xonsh/__amalgam__.py", line 10778, in update_context
modctx = xontrib_context(name)
File "/usr/lib/python3/dist-packages/xonsh/__amalgam__.py", line 10744, in xontrib_context
m = importlib.import_module(spec.name)
File "/usr/lib/python3.9/importlib/__init__.py", 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/__amalgam__.py", line 24289, in get_code
code = execer.compile(src, glbs=ctx, locs=ctx)
File "/usr/lib/python3/dist-packages/xonsh/__amalgam__.py", line 23974, in compile
tree = self.parse(input, ctx, mode=mode, filename=filename, transform=transform)
File "/usr/lib/python3/dist-packages/xonsh/__amalgam__.py", line 23934, in parse
tree, input = self._parse_ctx_free(input, mode=mode, filename=filename)
File "/usr/lib/python3/dist-packages/xonsh/__amalgam__.py", line 24058, in _parse_ctx_free
tree = self.parser.parse(
File "/usr/lib/python3/dist-packages/xonsh/parsers/base.py", line 497, in parse
tree = self.parser.parse(input=s, lexer=self.lexer, debug=debug_level)
File "/usr/lib/python3/dist-packages/ply/yacc.py", line 333, in parse
return self.parseopt_notrack(input, lexer, debug, tracking, tokenfunc)
File "/usr/lib/python3/dist-packages/ply/yacc.py", line 1120, in parseopt_notrack
p.callable(pslice)
File "/usr/lib/python3/dist-packages/xonsh/parsers/base.py", line 2221, in p_atom_expr
p[0] = self.apply_trailers(p[1], p[2])
File "/usr/lib/python3/dist-packages/xonsh/parsers/base.py", line 2215, in apply_trailers
assert False
AssertionError
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