mamba icon indicating copy to clipboard operation
mamba copied to clipboard

Deleting ~/.cache breaks `micromamba install`

Open Xyem opened this issue 1 year ago • 2 comments

Troubleshooting docs

  • [X] My problem is not solved in the Troubleshooting docs

Anaconda default channels

  • [X] I do NOT use the Anaconda default channels (pkgs/* etc.)

How did you install Mamba?

Micromamba

Search tried in issue tracker

yes

Latest version of Mamba

  • [X] My problem is not solved with the latest version

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

Xyem avatar Aug 31 '24 20:08 Xyem

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

Hind-M avatar Sep 19 '24 09:09 Hind-M

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).

Xyem avatar Sep 23 '24 17:09 Xyem

I cannot reproduce this issue as of 2.0.4, unfortunately.

Can you try to come up with a reproducer? In particular, can you indicate the environment specification you are using as well as your configuration?

jjerphan avatar Dec 03 '24 16:12 jjerphan