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

BUG: problems with CLI parsing on windows; e.g. repoquery whoneeds is broken #3856

Open
3 tasks done
h-vetinari opened this issue Mar 7, 2025 · 4 comments
Open
3 tasks done
Labels
status::cannot-reproduce The bug could not be reproduced status::user_reply_needed type::bug Something isn't working where::windows Windows-specific issues

Comments

@h-vetinari
Copy link

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

repoquery; CLI; parsing

Latest version of Mamba

  • My problem is not solved with the latest version

Tried in Conda?

Not applicable

Describe your issue

I've seen CLI parsing weirdness here or there post-2.0, but repoquery whoneeds is just straight not usable anymore

>mamba reqoquery whoneeds _openmp_mutex
The following arguments were not expected: _openmp_mutex whoneeds reqoquery
Run with --help for more information.

(note the inverted arguments in the error message)

>mamba reqoquery whoneeds -c conda-forge --platform linux-64 _openmp_mutex
The following arguments were not expected: _openmp_mutex linux-64 --platform conda-forge -c whoneeds reqoquery
Run with --help for more information.
>mamba reqoquery whoneeds _openmp_mutex -c conda-forge --platform linux-64
The following arguments were not expected: linux-64 --platform conda-forge -c _openmp_mutex whoneeds reqoquery
Run with --help for more information.

The same commands work on linux

mamba info / micromamba info

>mamba info

       libmamba version : 2.0.5
          mamba version : 2.0.5
           curl version : libcurl/8.11.1 Schannel zlib/1.3.1 libssh2/1.11.1
     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 : E:\miniforge\envs
          package cache : E:\miniforge\pkgs
                          C:\Users\[...]\.mamba\pkgs
                          C:\Users\[...]\AppData\Roaming\.mamba\pkgs
            environment : builder (active)
           env location : E:\miniforge\envs\builder
      user config files : C:\Users\[...]\.mambarc
 populated config files : C:\Users\[...]\.condarc
                          E:\miniforge\.condarc
       virtual packages : __win=10.0.26100=0
                          __archspec=1=x86_64
               channels : https://conda.anaconda.org/conda-forge/noarch
                          https://conda.anaconda.org/conda-forge/win-64
       base environment : E:\miniforge
               platform : win-64

Logs

environment.yml

~/.condarc

@jjerphan jjerphan added type::bug Something isn't working where::windows Windows-specific issues labels Mar 10, 2025
@Hind-M
Copy link
Member

Hind-M commented Mar 11, 2025

Unfortunately, I couldn't reproduce the issue.
Could you please provide the mamba list output (to check cli11 version and if _openmp_mutex is in the current target prefix)?
The bug seems to be very similar to this one.

@h-vetinari
Copy link
Author

h-vetinari commented Mar 12, 2025

Here's the mamba list output

List of packages in environment: "E:\\miniforge"

  Name                        Version       Build               Channel
-----------------------------------------------------------------------------
  archspec                    0.2.5         pyhd8ed1ab_0        conda-forge
  boltons                     24.0.0        pyhd8ed1ab_1        conda-forge
  brotli-python               1.1.0         py312h275cf98_2     conda-forge
  bzip2                       1.0.8         h2466b09_7          conda-forge
  ca-certificates             2024.12.14    h56e8100_0          conda-forge
  certifi                     2024.12.14    pyhd8ed1ab_0        conda-forge
  cffi                        1.17.1        py312h4389bb4_0     conda-forge
  charset-normalizer          3.4.1         pyhd8ed1ab_0        conda-forge
  colorama                    0.4.6         pyhd8ed1ab_1        conda-forge
  conda                       25.1.0        py312h2e8e312_0     conda-forge
  conda-libmamba-solver       25.1.1        pyhd8ed1ab_0        conda-forge
  conda-package-handling      2.4.0         pyh7900ff3_2        conda-forge
  conda-package-streaming     0.11.0        pyhd8ed1ab_0        conda-forge
  cpp-expected                1.1.0         h91493d7_0          conda-forge
  distro                      1.9.0         pyhd8ed1ab_1        conda-forge
  fmt                         11.0.2        h7f575de_0          conda-forge
  frozendict                  2.4.6         py312h4389bb4_0     conda-forge
  h2                          4.1.0         pyhd8ed1ab_1        conda-forge
  hpack                       4.1.0         pyhd8ed1ab_0        conda-forge
  hyperframe                  6.1.0         pyhd8ed1ab_0        conda-forge
  idna                        3.10          pyhd8ed1ab_1        conda-forge
  jsonpatch                   1.33          pyhd8ed1ab_1        conda-forge
  jsonpointer                 3.0.0         py312h2e8e312_1     conda-forge
  krb5                        1.21.3        hdf4eb48_0          conda-forge
  libarchive                  3.7.7         h979ed78_3          conda-forge
  libcurl                     8.11.1        h88aaa65_0          conda-forge
  libexpat                    2.6.4         he0c23c2_0          conda-forge
  libffi                      3.4.2         h8ffe710_5          conda-forge
  libiconv                    1.17          hcfcfb64_2          conda-forge
  liblzma                     5.6.3         h2466b09_1          conda-forge
  libmamba                    2.0.5         hc493ae7_1          conda-forge
  libmambapy                  2.0.5         py312h510e527_1     conda-forge
  libsolv                     0.7.30        hbb528cf_0          conda-forge
  libsqlite                   3.48.0        h67fdade_1          conda-forge
  libssh2                     1.11.1        he619c9f_0          conda-forge
  libxml2                     2.13.5        he286e8c_1          conda-forge
  libzlib                     1.3.1         h2466b09_2          conda-forge
  lz4-c                       1.10.0        h2466b09_1          conda-forge
  lzo                         2.10          hcfcfb64_1001       conda-forge
  mamba                       2.0.5         hefe3296_1          conda-forge
  menuinst                    2.2.0         py312h275cf98_0     conda-forge
  miniforge_console_shortcut  2.0           h57928b3_1          conda-forge
  nlohmann_json               3.11.3        he0c23c2_1          conda-forge
  openssl                     3.4.0         ha4e3fda_1          conda-forge
  packaging                   24.2          pyhd8ed1ab_2        conda-forge
  pip                         25.0          pyh8b19718_0        conda-forge
  platformdirs                4.3.6         pyhd8ed1ab_1        conda-forge
  pluggy                      1.5.0         pyhd8ed1ab_1        conda-forge
  pybind11-abi                4             hd8ed1ab_3          conda-forge
  pycosat                     0.6.6         py312h4389bb4_2     conda-forge
  pycparser                   2.22          pyh29332c3_1        conda-forge
  pysocks                     1.7.1         pyh09c184e_7        conda-forge
  python                      3.12.8        h3f84c4b_1_cpython  conda-forge
  python_abi                  3.12          5_cp312             conda-forge
  reproc                      14.2.5.post0  h2466b09_0          conda-forge
  reproc-cpp                  14.2.5.post0  he0c23c2_0          conda-forge
  requests                    2.32.3        pyhd8ed1ab_1        conda-forge
  ruamel.yaml                 0.18.10       py312h4389bb4_0     conda-forge
  ruamel.yaml.clib            0.2.8         py312h4389bb4_1     conda-forge
  setuptools                  75.8.0        pyhff2d567_0        conda-forge
  simdjson                    3.11.6        hc790b64_0          conda-forge
  spdlog                      1.15.0        h81cc0e1_0          conda-forge
  tk                          8.6.13        h5226925_1          conda-forge
  tqdm                        4.67.1        pyhd8ed1ab_1        conda-forge
  truststore                  0.10.0        pyhd8ed1ab_0        conda-forge
  tzdata                      2025a         h78e105d_0          conda-forge
  ucrt                        10.0.22621.0  h57928b3_1          conda-forge
  urllib3                     2.3.0         pyhd8ed1ab_0        conda-forge
  vc                          14.3          h5fd82a7_24         conda-forge
  vc14_runtime                14.42.34433   h6356254_24         conda-forge
  vs2015_runtime              14.42.34433   hfef2bbc_24         conda-forge
  wheel                       0.45.1        pyhd8ed1ab_1        conda-forge
  win_inet_pton               1.1.0         pyh7428d3b_8        conda-forge
  yaml-cpp                    0.8.0         h63175ca_0          conda-forge
  zstandard                   0.23.0        py312h7606c53_1     conda-forge
  zstd                        1.5.6         h0ea2cb4_0          conda-forge

and if _openmp_mutex is in the current target prefix

I don't see how repoquery whoneeds has anything to do with what packages are installed locally? 🤔

@h-vetinari
Copy link
Author

I wanted to check with 2.0.7, but that runs into #3862

@Hind-M
Copy link
Member

Hind-M commented Mar 12, 2025

I meant listing packages in E:\miniforge\envs\builder, as it seems to be the environment used?

I don't see how repoquery whoneeds has anything to do with what packages are installed locally? 🤔

The loaded packages actions are performed on to do the repoquery (even for whoneeds) are the ones installed locally by default, you need to use --remote or -c channel otherwise.

I wanted to check with 2.0.7, but that runs into #3862

Yep checking with 2.0.7 would be nice (using the new build).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status::cannot-reproduce The bug could not be reproduced status::user_reply_needed type::bug Something isn't working where::windows Windows-specific issues
Projects
None yet
Development

No branches or pull requests

3 participants