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

Issue with conda actions #229

Open
asmeurer opened this issue Sep 14, 2020 · 4 comments
Open

Issue with conda actions #229

asmeurer opened this issue Sep 14, 2020 · 4 comments
Labels

Comments

@asmeurer
Copy link
Contributor

I'm still having issue with the conda support. It now works for the first action, but it breaks on the second action that uses it.

Traceback (most recent call last):
  File "/Users/aaronmeurer/anaconda3/lib/python3.7/site-packages/rever/activity.xsh", line 83, in __call__
    self.func(*args, **kwargs)
  File "rever.xsh", line 31, in build_docs
    with run_in_conda_env(['python=3.8', 'sphinx', 'myst-parser', 'numpy', 'sympy']):
  File "/Users/aaronmeurer/anaconda3/lib/python3.7/contextlib.py", line 112, in __enter__
    return next(self.gen)
  File "/Users/aaronmeurer/anaconda3/lib/python3.7/site-packages/rever/conda.xsh", line 45, in run_in_conda_env
    if env_exists(envname):
  File "/Users/aaronmeurer/anaconda3/lib/python3.7/site-packages/rever/conda.xsh", line 10, in env_exists
    envs = json.loads($(conda env list --json))["envs"]
  File "/Users/aaronmeurer/anaconda3/lib/python3.7/json/__init__.py", line 348, in loads
    return _default_decoder.decode(s)
  File "/Users/aaronmeurer/anaconda3/lib/python3.7/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/Users/aaronmeurer/anaconda3/lib/python3.7/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
rewinding to 44c09b62cb5785e44e58396777a0661444fac08f

It also printed the envs json to the terminal, which may be part of the problem.

@asmeurer
Copy link
Contributor Author

Might be related to me having another env named rever-env but not in the envs directory (I have no idea how that happened, might be another bug which may or may not be fixed already). I deleted it and it worked.

@scopatz scopatz added the bug label Sep 14, 2020
@scopatz
Copy link
Collaborator

scopatz commented Sep 14, 2020

Can you reproduce this still?

@asmeurer
Copy link
Contributor Author

Yeah, it just happened to me again doing a versioned-hdf5 release. I think it goes away after a second run because it doesn't re-run the first action. The other rever-env I guess was unrelated.

@scopatz
Copy link
Collaborator

scopatz commented Sep 15, 2020

Strange, I wonder why the test suite is passing then

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

No branches or pull requests

2 participants