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

mamba 2 no longer honours CONDA_ENVS_PATH #3654

Open
3 tasks done
mathause opened this issue Dec 4, 2024 · 0 comments
Open
3 tasks done

mamba 2 no longer honours CONDA_ENVS_PATH #3654

mathause opened this issue Dec 4, 2024 · 0 comments
Labels
type::bug Something isn't working

Comments

@mathause
Copy link

mathause commented Dec 4, 2024

Troubleshooting docs

  • My problem is not solved in the Troubleshooting docs

Anaconda default channels

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

How did you install Mamba?

Mambaforge or latest Miniforge

Search tried in issue tracker

done

Latest version of Mamba

  • My problem is not solved with the latest version

Tried in Conda?

I do not have this problem with Conda, just with Mamba

Describe your issue

The latest mamba (2.0.4) does not seem to honor $CONDA_ENVS_PATH (I have not tested in other versions of 2.0). So

export CONDA_ENVS_PATH=/home/mathause/test/envs
mamba create -n test_env python

installs into my default location instead of ~/test/envs. This used to work in mamba < 2. Similarly mamba env list does not show environments in locations defined via CONDA_ENVS_PATH.

I could maybe go via MAMBA_ROOT_PREFIX but would prefer not to need to set each path twice (once for mamba and once for conda). Also does MAMBA_ROOT_PREFIX support several locations (a/envs:b/envs)?

mamba info / micromamba info

mamba info

       libmamba version : 2.0.4
          mamba version : 2.0.4
           curl version : libcurl/8.10.1 OpenSSL/3.4.0 zlib/1.3.1 zstd/1.5.6 libssh2/1.11.1 nghttp2/1.64.0
     libarchive version : libarchive 3.7.7 zlib/1.3.1 liblzma/5.2.6 bz2lib/1.0.8 liblz4/1.9.3 libzstd/1.5.6
       envs directories : /home/mathause/.conda/envs
                          /home/mathause/test/envs
          package cache : /home/mathause/.conda/pkgs
            environment : base (active)
           env location : /home/mathause/.mambabase
      user config files : /home/mathause/.mambarc
 populated config files : /home/mathause/.condarc
                          /home/mathause/.mambabase/.condarc
       virtual packages : __unix=0=0
                          __linux=6.8.0=0
                          __glibc=2.35=0
                          __archspec=1=x86_64_v3
               channels : https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
       base environment : /home/mathause/.mambabase
               platform : linux-64

Logs

echo $CONDA_ENVS_PATH; mamba create -n test_env python

/home/mathause/test/envs



conda-forge/linux-64                                        Using cache
conda-forge/noarch                                          Using cache


Transaction

  Prefix: /home/mathause/.conda/envs/test_env

  Updating specs:

   - python

...

environment.yml

-

~/.condarc

channels:
  - conda-forge

envs_dirs:
  - /home/mathause/.conda/envs

pkgs_dirs:
  - /home/mathause/.conda/pkgs
@mathause mathause changed the title mamba 2 does no longor honours CONDA_ENVS_PATH mamba 2 no longer honours CONDA_ENVS_PATH Dec 10, 2024
@JohanMabille JohanMabille added the type::bug Something isn't working label Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type::bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants