mamba-org / mamba

The Fast Cross-Platform Package Manager
https://mamba.readthedocs.io
BSD 3-Clause "New" or "Revised" License
6.95k stars 359 forks source link

Deleting ~/.cache breaks `micromamba install` #3427

Open Xyem opened 2 months ago

Xyem commented 2 months ago

Troubleshooting docs

Anaconda default channels

How did you install Mamba?

Micromamba

Search tried in issue tracker

yes

Latest version of Mamba

Tried in Conda?

I didn't try

Describe your issue

I just deleted ~/.cache to clear up some disk space but now micromamba install errors because it is still trying to use the cache which no longer exists.

mamba info / micromamba info

No response

Logs

$ micromamba install cudatoolkit-dev -c conda-forge
conda-forge/linux-64                                        Using cache
conda-forge/noarch                                          Using cache
critical libmamba [json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - unexpected end of input; expected '[', '{', or a literal

environment.yml

No response

~/.condarc

No response

Hind-M commented 2 months ago

Can you try using micromamba clean --all instead so that it does the cleaning properly, and report if this solves the issue? Thanks!

Xyem commented 1 month ago

That is what I did to get it working, but that's beside the point. The issue is that mamba is treating the cache as a persistent data store when they are specifically not meant to be treated that way. It should either be moved elsewhere if it has different mechanics, or mamba should treat the cache with the correct mechanics (i.e. the files can vanish at any time, especially when it isn't running).