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 create does not create env_dirs (and parents) if they do not exist #3790

Open
3 tasks done
holzman opened this issue Jan 31, 2025 · 0 comments · May be fixed by #3796
Open
3 tasks done

mamba create does not create env_dirs (and parents) if they do not exist #3790

holzman opened this issue Jan 31, 2025 · 0 comments · May be fixed by #3796
Labels
type::bug Something isn't working

Comments

@holzman
Copy link

holzman commented Jan 31, 2025

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?

Micromamba

Search tried in issue tracker

envs, envs_dirs

Latest version of Mamba

  • My problem is not solved with the latest version

Tried in Conda?

I didn't try

Describe your issue

If a directory in envs_dirs does not exist, it is skipped.

This is a change in behavior from 1.x, which would do mkdir -p.

mamba info / micromamba info

libmamba version : 2.0.6.rc2
          mamba version : 2.0.6.rc2
           curl version : libcurl/8.11.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.6.3 bz2lib/1.0.8 liblz4/1.10.0 libzstd/1.5.6
       envs directories : /home/burt/test123/envs
                          /home/burt/miniforge3/envs
          package cache : /home/burt/miniforge3/pkgs
                          /home/burt/.mamba/pkgs
            environment : base
           env location : /home/burt/miniforge3
      user config files : /home/burt/.mambarc
 populated config files : /home/burt/.mambarc
                          /home/burt/.condarc
                          /home/burt/miniforge3/.condarc
       virtual packages : __unix=0=0
                          __linux=5.14.0=0
                          __glibc=2.34=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/burt/miniforge3
               platform : linux-64

Logs

$ rm -rf ~/test123/envs
$ ./build/micromamba/mamba create -n testenv
Empty environment created at prefix: /home/burt/miniforge3/envs/testenv
$ ./build/micromamba/mamba env remove -n testenv -y
Nothing to do.
No packages to remove from environment.
Environment removed at prefix: /home/burt/miniforge3/envs/testenv
$ mkdir ~/test123/envs
$ ./build/micromamba/mamba create -n testenv
Empty environment created at prefix: /home/burt/test123/envs/testenv

environment.yml

~/.condarc

channels:
  - conda-forge

auto_activate_base: false
local_repodata_ttl: 176800
channel_priority: strict
envs_dirs:
  - /home/burt/test123/envs
@jjerphan jjerphan added the type::bug Something isn't working label Feb 3, 2025
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

Successfully merging a pull request may close this issue.

2 participants