-
Notifications
You must be signed in to change notification settings - Fork 24
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
libmamba Could not parse state file: Could not load cache state #145
Comments
Ouch that sounds like the new repodata state file is not created correctly. Did you run micromamba with Otherwise we should probably properly align with conda (if conda is writing out state files nowadays). |
I am also seeing some similar errors on Windows CI:
@dholth - have you seen this? |
23.1 produces a pre-CEP |
You mean this CEP, right? |
The conda 23.3 release produces a state.json that is much more similar to mamba's (the keys are no longer _underscore-prefixed)
|
#65 alleviates this, so conda-libmamba-solver 23.3 will have better compliance. We have run some local tests and didn't see any state warnings. Feel free to reopen if you see them again. Thanks! |
I continue to see this with updated versions on linux-64. I'm fairly certain my caches have been cleaned since these updates. I also get this mixed with output of the form |
So conda is producing these error messages without other programs trying to share the cache? Are you using main/conda-forge only or are you also using anaconda.org channels? I assume you are using conda-libmamba-solver, is |
Can you share your |
I see this issue in a docker-based recipe build (using The Before building we run this in the base environment: We do not call anything with the flag I'll follow up with some environment output details. |
I see, there is a mix of mamba and conda. We have seen bugs where mamba's Is it possible to list the contents of ~/miniconda3/pkgs/cache/*.state.json or wherever conda is installed? The upcoming conda does have code to enforce stringiness on these fields: https://github.com/conda/conda/blob/main/conda/gateways/repodata/__init__.py#L362 |
If you are using You could try |
Thank you all for the helpful feedback. I believe part of my previous report was incorrect - it seems that switching from We have some large dev-facing env builds, so I like to have both the mamba solving and the package caching working reliably :) Just discovering that the install instructions have updated is great - hoping to try out micromamba soon! |
Checklist
What happened?
Installed miniconda:
Installed mamba:
Versions:
When I create or update a conda env, I get the following:
conda/mamba seem to run correctly, but the warning is troubling.
Conda Info
The text was updated successfully, but these errors were encountered: