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

libmamba solver doesn't match when uninstalling with wildcard #434

Closed
2 tasks done
duncanmmacleod opened this issue Jan 30, 2024 · 2 comments · Fixed by #435
Closed
2 tasks done

libmamba solver doesn't match when uninstalling with wildcard #434

duncanmmacleod opened this issue Jan 30, 2024 · 2 comments · Fixed by #435
Labels
locked [bot] locked due to inactivity type::bug describes erroneous operation, use severity::* to classify the type

Comments

@duncanmmacleod
Copy link

Checklist

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

What happened?

When attempting conda uninstall thing*thing, i.e. uninstalling all packages matching a wildcard, the libmamba solver never matches anything. Consider the following:

$ conda uninstall "lib*blas" --solver libmamba

PackagesNotFoundError: The following packages are missing from the target environment:
  - lib*blas

Specifying the classic solver resolves the right set of packages to remove:

$ conda uninstall "lib*blas" --solver classic
Collecting package metadata (repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /home/duncan/opt/mambaforge/envs/test

  removed specs:
    - lib*blas


The following packages will be REMOVED:

  _libgcc_mutex-0.1-conda_forge
  _openmp_mutex-4.5-2_kmp_llvm
  blas-2.121-openblas
  blas-devel-3.9.0-21_linux64_openblas
  libblas-3.9.0-21_linux64_openblas
  libcblas-3.9.0-21_linux64_openblas
  libgcc-ng-13.2.0-h807b86a_4
  libgfortran-ng-13.2.0-h69a702a_4
  libgfortran5-13.2.0-ha4646dd_4
  liblapack-3.9.0-21_linux64_openblas
  liblapacke-3.9.0-21_linux64_openblas
  libopenblas-0.3.26-pthreads_h413a1c8_0
  libstdcxx-ng-13.2.0-h7e041cc_4
  libzlib-1.2.13-hd590300_5
  llvm-openmp-17.0.6-h4dfa4b3_0
  openblas-0.3.26-pthreads_h7a3da1a_0
  zstd-1.5.5-hfc55251_0


Proceed ([y]/n)? n


CondaSystemExit: Exiting.

Conda Info

$ conda info

     active environment : test
    active env location : /home/duncan/opt/mambaforge/envs/test
            shell level : 2
       user config file : /home/duncan/.condarc
 populated config files : /home/duncan/opt/mambaforge/.condarc
                          /home/duncan/.condarc
          conda version : 23.11.0
    conda-build version : 3.28.4
         python version : 3.11.6.final.0
                 solver : libmamba (default)
       virtual packages : __archspec=1=skylake
                          __conda=23.11.0=0
                          __glibc=2.36=0
                          __linux=5.15.133.1=0
                          __unix=0=0
       base environment : /home/duncan/opt/mambaforge  (writable)
      conda av data dir : /home/duncan/opt/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
                          https://conda.anaconda.org/igwn/linux-64
                          https://conda.anaconda.org/igwn/noarch
          package cache : /home/duncan/opt/mambaforge/pkgs
                          /home/duncan/.conda/pkgs
       envs directories : /home/duncan/opt/mambaforge/envs
                          /home/duncan/.conda/envs
               platform : linux-64
             user-agent : conda/23.11.0 requests/2.31.0 CPython/3.11.6 Linux/5.15.133.1-microsoft-standard-WSL2 debian/12.4 glibc/2.36 solver/libmamba conda-libmamba-solver/24.1.0 libmambapy/1.5.6
                UID:GID : 1000:1000
             netrc file : None
           offline mode : False

Conda Config

==> /home/duncan/opt/mambaforge/.condarc <==
channels:
  - conda-forge

==> /home/duncan/.condarc <==
channel_priority: strict
channels:
  - conda-forge
  - igwn
solver: libmamba
conda_build:
  error_overdepending: True
  error_overlinking: True

Conda list

$ conda list --show-channel-urls
# packages in environment at /home/duncan/opt/mambaforge/envs/test:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                  2_kmp_llvm    conda-forge
blas                      2.121                  openblas    conda-forge
blas-devel                3.9.0           21_linux64_openblas    conda-forge
libblas                   3.9.0           21_linux64_openblas    conda-forge
libcblas                  3.9.0           21_linux64_openblas    conda-forge
libgcc-ng                 13.2.0               h807b86a_4    conda-forge
libgfortran-ng            13.2.0               h69a702a_4    conda-forge
libgfortran5              13.2.0               ha4646dd_4    conda-forge
liblapack                 3.9.0           21_linux64_openblas    conda-forge
liblapacke                3.9.0           21_linux64_openblas    conda-forge
libopenblas               0.3.26          pthreads_h413a1c8_0    conda-forge
libstdcxx-ng              13.2.0               h7e041cc_4    conda-forge
libzlib                   1.2.13               hd590300_5    conda-forge
llvm-openmp               17.0.6               h4dfa4b3_0    conda-forge
openblas                  0.3.26          pthreads_h7a3da1a_0    conda-forge
zstd                      1.5.5                hfc55251_0    conda-forge

Additional Context

test environment created using conda create -n test blas.

@duncanmmacleod duncanmmacleod added the type::bug describes erroneous operation, use severity::* to classify the type label Jan 30, 2024
@github-project-automation github-project-automation bot moved this to 🆕 New in 🧭 Planning Jan 30, 2024
@jaimergp
Copy link
Contributor

TIL about that feature! I'll take look, thanks.

@jaimergp
Copy link
Contributor

jaimergp commented Feb 2, 2024

Found the culprit. See #435.

@github-project-automation github-project-automation bot moved this from 🆕 New to 🏁 Done in 🧭 Planning Feb 15, 2024
@github-actions github-actions bot added the locked [bot] locked due to inactivity label Aug 27, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked [bot] locked due to inactivity type::bug describes erroneous operation, use severity::* to classify the type
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants