mamba icon indicating copy to clipboard operation
mamba copied to clipboard

warning libmamba Cache file "xxx.json" was modified by another program

Open sweettyler opened this issue 1 year ago • 8 comments

Troubleshooting docs

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

How did you install Mamba?

Mambaforge

Search tried in issue tracker

libmamba Cache file

Latest version of Mamba

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

Tried in Conda?

Not applicable

Describe your issue

It's quite easy to to duplicate:

  1. run "mamba clean --yes --all";
  2. run "mamba update --all" and you see there is NOT such a warning message;
  3. run "mamba search python";
  4. run again "mamba update --all" and you get the warnings: warning libmamba Cache file "xxx.json" was modified by another program warning libmamba Cache file "yyy.json" was modified by another program

So in conclusion it is command "mamba search" cause these warnings

mamba info / micromamba info

__    __    __    __
                 /  \  /  \  /  \  /  \
                /    \/    \/    \/    \
███████████████/  /██/  /██/  /██/  /████████████████████████
              /  / \   / \   / \   / \  \____
             /  /   \_/   \_/   \_/   \    o \__,
            / _/                       \_____/  `
            |/
        ███╗   ███╗ █████╗ ███╗   ███╗██████╗  █████╗
        ████╗ ████║██╔══██╗████╗ ████║██╔══██╗██╔══██╗
        ██╔████╔██║███████║██╔████╔██║██████╔╝███████║
        ██║╚██╔╝██║██╔══██║██║╚██╔╝██║██╔══██╗██╔══██║
        ██║ ╚═╝ ██║██║  ██║██║ ╚═╝ ██║██████╔╝██║  ██║
        ╚═╝     ╚═╝╚═╝  ╚═╝╚═╝     ╚═╝╚═════╝ ╚═╝  ╚═╝

        mamba (1.4.2) supported by @QuantStack

        GitHub:  https://github.com/mamba-org/mamba
        Twitter: https://twitter.com/QuantStack

█████████████████████████████████████████████████████████████


     active environment : base
    active env location : /private/xxxx/mambaforge
            shell level : 1
       user config file : /private/xxxx/.condarc
 populated config files : /private/xxxx/mambaforge/.condarc
          conda version : 23.3.1
    conda-build version : not installed
         python version : 3.10.10.final.0
       virtual packages : __archspec=1=x86_64
                          __glibc=2.17=0
                          __linux=3.10.0=0
                          __unix=0=0
       base environment : /private/xxxx/mambaforge  (writable)
      conda av data dir : /private/xxxx/mambaforge/etc/conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
          package cache : /private/xxxx/mambaforge/pkgs
                          /private/xxxx/.conda/pkgs
       envs directories : /private/xxxx/mambaforge/envs
                          /private/xxxx/.conda/envs
               platform : linux-64
             user-agent : conda/23.3.1 requests/2.28.2 CPython/3.10.10 Linux/3.10.0-1160.83.1.el7.x86_64 centos/7.9.2009 glibc/2.17
                UID:GID : 26491:26491
             netrc file : None
           offline mode : False

Logs

No response

environment.yml

No response

~/.condarc

No response

sweettyler avatar Apr 12 '23 21:04 sweettyler

I have the same symptoms, but in addition I get this in the mamba update --all output, and for mamba install -yqc conda-forge <packagename> as well. It's repeated twice.

/home/nevd/miniconda3/lib/python3.10/site-packages/conda_package_streaming/package_streaming.py:19: UserWarning: zstandard could not be imported. Running without .conda support.
  warnings.warn("zstandard could not be imported. Running without .conda support.")
/home/nevd/miniconda3/lib/python3.10/site-packages/conda_package_handling/api.py:29: UserWarning: Install zstandard Python bindings for .conda support
  _warnings.warn("Install zstandard Python bindings for .conda support")

I first saw it while I was setting up an environment pointing at https://repo.anaconda.com/pkgs/snowflake/, though I don't think it is related because I've repeatedly rm -rf !/miniconda3 and reinstalled from scratch to rule it out.

nevdelap avatar May 08 '23 05:05 nevdelap

I hit this so often that I decided to google and found this issue. Would it be possible for mamba to relax this check in some way?

leofang avatar Sep 01 '23 13:09 leofang

Every single time I run mamba install I am getting this behavior. And the files are downloaded again.

aseedb avatar Nov 15 '23 11:11 aseedb

Same problem for me.

chahank avatar Jan 08 '24 16:01 chahank

Same problem for me. Could be a mess up with conda?

zuiluo1116 avatar Jan 31 '24 00:01 zuiluo1116

Same for me.

chahank avatar Mar 12 '24 10:03 chahank

Have you solved it yet?

wuyh0328 avatar Apr 01 '24 08:04 wuyh0328