Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AssertionError from xonsh running rever #240

Open
asmeurer opened this issue Nov 17, 2020 · 2 comments
Open

AssertionError from xonsh running rever #240

asmeurer opened this issue Nov 17, 2020 · 2 comments

Comments

@asmeurer
Copy link
Contributor

This is from running rever 1.2 in deshaw/versioned-hdf5#151

Traceback (most recent call last):
  File "/Users/aaronmeurer/anaconda3/envs/versioned-hdf5/bin/rever", line 6, in <module>
    from rever.main import main
  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 "/Users/aaronmeurer/anaconda3/envs/versioned-hdf5/lib/python3.9/site-packages/xonsh/__amalgam__.py", line 24307, in get_code
    code = execer.compile(src, glbs=ctx, locs=ctx)
  File "/Users/aaronmeurer/anaconda3/envs/versioned-hdf5/lib/python3.9/site-packages/xonsh/__amalgam__.py", line 23992, in compile
    tree = self.parse(input, ctx, mode=mode, filename=filename, transform=transform)
  File "/Users/aaronmeurer/anaconda3/envs/versioned-hdf5/lib/python3.9/site-packages/xonsh/__amalgam__.py", line 23952, in parse
    tree, input = self._parse_ctx_free(input, mode=mode, filename=filename)
  File "/Users/aaronmeurer/anaconda3/envs/versioned-hdf5/lib/python3.9/site-packages/xonsh/__amalgam__.py", line 24076, in _parse_ctx_free
    tree = self.parser.parse(
  File "/Users/aaronmeurer/anaconda3/envs/versioned-hdf5/lib/python3.9/site-packages/xonsh/parsers/base.py", line 497, in parse
    tree = self.parser.parse(input=s, lexer=self.lexer, debug=debug_level)
  File "/Users/aaronmeurer/anaconda3/envs/versioned-hdf5/lib/python3.9/site-packages/xonsh/ply/ply/yacc.py", line 335, in parse
    return self.parseopt_notrack(input, lexer, debug, tracking, tokenfunc)
  File "/Users/aaronmeurer/anaconda3/envs/versioned-hdf5/lib/python3.9/site-packages/xonsh/ply/ply/yacc.py", line 1122, in parseopt_notrack
    p.callable(pslice)
  File "/Users/aaronmeurer/anaconda3/envs/versioned-hdf5/lib/python3.9/site-packages/xonsh/parsers/base.py", line 2221, in p_atom_expr
    p[0] = self.apply_trailers(p[1], p[2])
  File "/Users/aaronmeurer/anaconda3/envs/versioned-hdf5/lib/python3.9/site-packages/xonsh/parsers/base.py", line 2215, in apply_trailers
    assert False
AssertionError
@asmeurer
Copy link
Contributor Author

$ xonsh --version
xonsh/0.9.24
$ conda list rever
# packages in environment at /Users/aaronmeurer/anaconda3/envs/versioned-hdf5:
#
# Name                    Version                   Build  Channel
rever                     0.4.8                      py_0    conda-forge

@asmeurer
Copy link
Contributor Author

Looks like this is xonsh/xonsh#3888. Downgrading to Python 3.8 fixed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant