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

envs_dirs not respected when creating an environment #14027

Open
2 tasks done
ReveStobinson opened this issue Jul 9, 2024 · 1 comment
Open
2 tasks done

envs_dirs not respected when creating an environment #14027

ReveStobinson opened this issue Jul 9, 2024 · 1 comment
Labels
pending::feedback indicates we are waiting on feedback from the user source::community catch-all for issues filed by community members type::bug describes erroneous operation, use severity::* to classify the type

Comments

@ReveStobinson
Copy link
Contributor

Checklist

  • I added a descriptive title
  • I searched open reports and couldn't find a duplicate

What happened?

This issue is similar to #13453, but this bug is distinct from the issue described there. I recognize that ~/.conda/envs is always going to be added to conda info and conda config --show, no matter what your envs_dirs config entries look like in your .condarc file(s).

However, even when another location is specified and writeable (in this case /opt/miniforge/envs), conda no longer respects that specified location, and will create all new environments in ~/.conda/envs unless the --prefix option is used. This appears to also apply to the CONDA_ENVS_PATH environment variable.

This is contrary to the documentation for envs_dirs, which states:

If this key is set, the root prefix envs_dir is not used unless explicitly included. This key also determines where the package caches are located.

Conda Info

active environment : None
            shell level : 0
       user config file : ~/.condarc
 populated config files : /opt/miniforge/.condarc
                          ~/.condarc
          conda version : 24.5.0
    conda-build version : not installed
         python version : 3.10.14.final.0
                 solver : libmamba (default)
       virtual packages : __archspec=1=icelake
                          __conda=24.5.0=0
                          __cuda=12.4=0
                          __glibc=2.35=0
                          __linux=5.15.0=0
                          __unix=0=0
       base environment : /opt/miniforge  (writable)
      conda av data dir : /opt/miniforge/etc/conda
  conda av metadata url : None
           channel URLs : MASKED
          package cache : /mnt/dev-data/.cache/conda
       envs directories : /opt/miniforge/envs
                          ~/.conda/envs
               platform : linux-64
             user-agent : conda/24.5.0 requests/2.31.0 CPython/3.10.14 Linux/5.15.0-111-fips ubuntu/22.04.4 glibc/2.35 solver/libmamba conda-libmamba-solver/24.1.0 libmambapy/1.5.8
                UID:GID : 1464601145:1464600513
             netrc file : None
           offline mode : False

Conda Config

==> /opt/miniforge/.condarc <==
envs_dirs:
  - /opt/miniforge/envs
pkgs_dirs:
  - /mnt/dev-data/.cache/conda
ssl_verify: MASKED
remote_read_timeout_secs: 240.0
channels:
  - conda-forge

==> /home/$USER/.condarc <==
auto_activate_base: False
channel_alias: MASKED
default_channels:
  - MASKED

Conda list

# packages in environment at /opt/miniforge:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                       2_gnu    conda-forge
archspec                  0.2.3              pyhd8ed1ab_0    conda-forge
boltons                   24.0.0             pyhd8ed1ab_0    conda-forge
brotli-python             1.1.0           py310hc6cd4ac_1    conda-forge
bzip2                     1.0.8                hd590300_5    conda-forge
c-ares                    1.28.1               hd590300_0    conda-forge
ca-certificates           2024.7.4             hbcca054_0    /conda-forge
certifi                   2024.7.4           pyhd8ed1ab_0    /conda-forge
cffi                      1.16.0          py310h2fee648_0    conda-forge
charset-normalizer        3.3.2              pyhd8ed1ab_0    conda-forge
colorama                  0.4.6              pyhd8ed1ab_0    conda-forge
conda                     24.5.0          py310hff52083_0    /conda-forge
conda-libmamba-solver     24.1.0             pyhd8ed1ab_0    conda-forge
conda-package-handling    2.2.0              pyh38be061_0    conda-forge
conda-package-streaming   0.9.0              pyhd8ed1ab_0    conda-forge
distro                    1.9.0              pyhd8ed1ab_0    conda-forge
fmt                       10.2.1               h00ab1b0_0    conda-forge
frozendict                2.4.4           py310hc51659f_0    /conda-forge
icu                       73.2                 h59595ed_0    conda-forge
idna                      3.6                pyhd8ed1ab_0    conda-forge
jsonpatch                 1.33               pyhd8ed1ab_0    conda-forge
jsonpointer               2.4             py310hff52083_3    conda-forge
keyutils                  1.6.1                h166bdaf_0    conda-forge
krb5                      1.21.2               h659d440_0    conda-forge
ld_impl_linux-64          2.40                 h41732ed_0    conda-forge
libarchive                3.7.2                h2aa1ff5_1    conda-forge
libcurl                   8.7.1                hca28451_0    conda-forge
libedit                   3.1.20191231         he28a2e2_2    conda-forge
libev                     4.33                 hd590300_2    conda-forge
libffi                    3.4.2                h7f98852_5    conda-forge
libgcc-ng                 13.2.0               h807b86a_5    conda-forge
libgomp                   13.2.0               h807b86a_5    conda-forge
libiconv                  1.17                 hd590300_2    conda-forge
libmamba                  1.5.8                had39da4_0    conda-forge
libmambapy                1.5.8           py310h39ff949_0    conda-forge
libnghttp2                1.58.0               h47da74e_1    conda-forge
libnsl                    2.0.1                hd590300_0    conda-forge
libsolv                   0.7.28               hfc55251_2    conda-forge
libsqlite                 3.45.2               h2797004_0    conda-forge
libssh2                   1.11.0               h0841786_0    conda-forge
libstdcxx-ng              13.2.0               h7e041cc_5    conda-forge
libuuid                   2.38.1               h0b41bf4_0    conda-forge
libxcrypt                 4.4.36               hd590300_1    conda-forge
libxml2                   2.12.6               h232c23b_1    conda-forge
libzlib                   1.2.13               hd590300_5    conda-forge
lz4-c                     1.9.4                hcb278e6_0    conda-forge
lzo                       2.10              h516909a_1000    conda-forge
mamba                     1.5.8           py310h51d5547_0    conda-forge
menuinst                  2.0.2           py310hff52083_0    conda-forge
ncurses                   6.4.20240210         h59595ed_0    conda-forge
openssl                   3.3.1                h4ab18f5_1    /conda-forge
packaging                 24.0               pyhd8ed1ab_0    conda-forge
pip                       24.0               pyhd8ed1ab_0    conda-forge
platformdirs              4.2.0              pyhd8ed1ab_0    conda-forge
pluggy                    1.4.0              pyhd8ed1ab_0    conda-forge
pybind11-abi              4                    hd8ed1ab_3    conda-forge
pycosat                   0.6.6           py310h2372a71_0    conda-forge
pycparser                 2.22               pyhd8ed1ab_0    conda-forge
pysocks                   1.7.1              pyha2e5f31_6    conda-forge
python                    3.10.14         hd12c33a_0_cpython    conda-forge
python_abi                3.10                    4_cp310    conda-forge
readline                  8.2                  h8228510_1    conda-forge
reproc                    14.2.4.post0         hd590300_1    conda-forge
reproc-cpp                14.2.4.post0         h59595ed_1    conda-forge
requests                  2.31.0             pyhd8ed1ab_0    conda-forge
ruamel.yaml               0.18.6          py310h2372a71_0    conda-forge
ruamel.yaml.clib          0.2.8           py310h2372a71_0    conda-forge
setuptools                69.5.1             pyhd8ed1ab_0    conda-forge
tk                        8.6.13          noxft_h4845f30_101    conda-forge
tqdm                      4.66.2             pyhd8ed1ab_0    conda-forge
truststore                0.8.0              pyhd8ed1ab_0    conda-forge
tzdata                    2024a                h0c530f3_0    conda-forge
urllib3                   2.2.1              pyhd8ed1ab_0    conda-forge
wheel                     0.43.0             pyhd8ed1ab_1    conda-forge
xz                        5.2.6                h166bdaf_0    conda-forge
yaml-cpp                  0.8.0                h59595ed_0    conda-forge
zstandard                 0.22.0          py310h1275a96_0    conda-forge
zstd                      1.5.5                hfc55251_0    conda-forge

Additional Context

I have noted this issue in both conda==23.11.0 and conda==24.5.0. This issue does not occur with conda==23.3.1. All setups used the same exact directory structure, permissions, ACLs, etcs.

@ReveStobinson ReveStobinson added the type::bug describes erroneous operation, use severity::* to classify the type label Jul 9, 2024
@travishathaway travishathaway added the source::community catch-all for issues filed by community members label Jul 10, 2024
@travishathaway
Copy link
Contributor

@ReveStobinson,

Thank you for filing this. I am unfortunately having a difficult time with recreating the bug using 24.5.0, a version you reported was affected. I tried this on both macOS and Linux (in a docker container).

In order to address this issue, we need to have a more detailed explanation for how to recreate it. I would recommend coming up with instructions that we could follow to do so. An example of this would be instructions for how to create a docker container that can show this bug.

Please let me know if you have any questions, and if others are able to recreate this, please tell us how to recreate it ourselves.

@travishathaway travishathaway added the pending::feedback indicates we are waiting on feedback from the user label Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending::feedback indicates we are waiting on feedback from the user source::community catch-all for issues filed by community members type::bug describes erroneous operation, use severity::* to classify the type
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants