conda / conda-libmamba-solver

The libmamba based solver for conda.
https://conda.github.io/conda-libmamba-solver/
Other
202 stars 24 forks source link

Conda does not respect `--override-channels` option when using libmamba solver #490

Open DManowitz opened 3 months ago

DManowitz commented 3 months ago

Checklist

What happened?

After encountering the issue seen in #489, I tried to use the --override-channels option to explicitly specify only the conda-forge channel. However, conda still attempted to use the same channels as in that issue, despite the --override-channels option. The same behavior is NOT seen when I turn off the libmamba solver.

Conda Info

active environment : py37_ml_TfGpuMain
    active env location : C:\Users\manow\miniconda3\envs\py37_ml_TfGpuMain
            shell level : 1
       user config file : C:\Users\manow\.condarc
 populated config files : C:\Users\manow\.condarc
          conda version : 23.7.4
    conda-build version : not installed
         python version : 3.10.12.final.0
       virtual packages : __archspec=1=x86_64
                          __cuda=12.5=0
                          __win=0=0
       base environment : C:\Users\manow\miniconda3  (writable)
      conda av data dir : C:\Users\manow\miniconda3\etc\conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/pytorch/win-64
                          https://conda.anaconda.org/pytorch/noarch
                          https://conda.anaconda.org/pyg/win-64
                          https://conda.anaconda.org/pyg/noarch
                          https://conda.anaconda.org/nvidia/label/cuda-11.3.1/win-64
                          https://conda.anaconda.org/nvidia/label/cuda-11.3.1/noarch
                          https://conda.anaconda.org/conda-forge/win-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://software.repos.intel.com/python/conda/win-64
                          https://software.repos.intel.com/python/conda/noarch
                          https://repo.anaconda.com/pkgs/main/win-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/win-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/msys2/win-64
                          https://repo.anaconda.com/pkgs/msys2/noarch
          package cache : C:\Users\manow\miniconda3\pkgs
                          C:\Users\manow\.conda\pkgs
                          C:\Users\manow\AppData\Local\conda\conda\pkgs
       envs directories : C:\Users\manow\miniconda3\envs
                          C:\Users\manow\.conda\envs
                          C:\Users\manow\AppData\Local\conda\conda\envs
               platform : win-64
             user-agent : conda/23.7.4 requests/2.28.1 CPython/3.10.12 Windows/10 Windows/10.0.19045 solver/libmamba conda-libmamba-solver/23.7.0 libmambapy/1.4.7 aau/0.4.4 c/. s/. e/.
          administrator : False
             netrc file : None
           offline mode : False

Conda Config

==> C:\Users\manow\.condarc <==
pip_interop_enabled: True
channel_priority: disabled
channels:
  - pytorch
  - pyg
  - nvidia/label/cuda-11.3.1
  - conda-forge
  - https://software.repos.intel.com/python/conda/
  - defaults
solver: libmamba

==> cmd_line <==
debug: False
json: False

Conda list

Can send separately if needed.  Adding gives Github error: comment body too long.

Additional Context

No response

jaimergp commented 3 months ago

I think this was fixed in 23.9.0 via https://github.com/conda/conda-libmamba-solver/pull/274. Your conda info reports 23.7.0, so I'd try upgrading first to see if the issue you brought up is already addressed in the latest releases.