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

repoquery not working anymore #2994

Closed
2 tasks done
h-vetinari opened this issue Nov 20, 2023 · 10 comments
Closed
2 tasks done

repoquery not working anymore #2994

h-vetinari opened this issue Nov 20, 2023 · 10 comments
Labels
type::bug Something isn't working

Comments

@h-vetinari
Copy link

Troubleshooting docs

  • My problem is not solved in the Troubleshooting docs

How did you install Mamba?

Mambaforge

Search tried in issue tracker

repoquery

Latest version of Mamba

  • My problem is not solved with the latest version

Tried in Conda?

Not applicable

Describe your issue

mamba repoquery search is somehow not functional anymore. It prints the help string, but any non-trivial use reports that the command isn't found:

>mamba repoquery search -h
usage: mamba repoquery search [-p PLATFORM] [--no-installed] [--pretty] [-a] [-h] [-c CHANNEL] [--use-local]
                              [--override-channels] [--repodata-fn REPODATA_FNS] [--experimental {jlap,lock}]
                              [--no-lock] [-C] [-k] [--offline] [--json] [-v] [-q]
                              package_query
[...]
>mamba repoquery search boa=0.16
Currently, only install, create, list, search, run, info, clean, remove, update, repoquery, activate and deactivate are supported through mamba.

Regular mamba operations (update / install / create) work fine.

mamba info / micromamba info

>mamba info

          mamba version : 1.5.3
     active environment : None
            shell level : 0
       user config file : C:\Users\[...]\.condarc
 populated config files : C:\ProgramData\miniforge\.condarc
                          C:\Users\[...]\.condarc
          conda version : 23.10.0
    conda-build version : not installed
         python version : 3.11.6.final.0
       virtual packages : __archspec=1=x86_64
                          __win=0=0
       base environment : C:\ProgramData\miniforge  (read only)
      conda av data dir : C:\ProgramData\miniforge\etc\conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/conda-forge/win-64
                          https://conda.anaconda.org/conda-forge/noarch
          package cache : E:\miniforge\pkgs
                          C:\ProgramData\miniforge\pkgs
       envs directories : E:\miniforge\envs
                          C:\ProgramData\miniforge\envs
                          C:\Users\[...]\.conda\envs
                          C:\Users\[...]\AppData\Local\conda\conda\envs
               platform : win-64
             user-agent : conda/23.10.0 requests/2.31.0 CPython/3.11.6 Windows/10 Windows/10.0.22621 solver/libmamba conda-libmamba-solver/23.11.1 libmambapy/1.5.3
          administrator : False
             netrc file : None
           offline mode : False

Logs

No response

environment.yml

No response

~/.condarc

No response

@jonashaag jonashaag added the type::bug Something isn't working label Nov 20, 2023
@jonashaag
Copy link
Collaborator

What version was this bug introduced?

@h-vetinari
Copy link
Author

I did:

>mamba create -n test mamba=1.5.2   # uses python 3.12
>mamba activate test
>mamba repoquery search boa=0.15    # works ✅
>mamba update mamba                 # back to 1.5.3
>mamba repoquery search boa=0.15    # works ✅
>mamba install python=3.11          # recreate condition from OP
>mamba repoquery search boa=0.15    # FAILS ❌

Since I doubt it's something to do with 3.12 vs. 3.11, here's the list of dependencies that changed in the last step

>mamba install python=3.11
menuinst called from non-root env E:\miniforge\envs\test
menuinst called from non-root env E:\miniforge\envs\test

Looking for: ['python=3.11']

conda-forge/win-64                                          Using cache
conda-forge/noarch                                          Using cache
Transaction

  Prefix: E:\miniforge\envs\test

  Updating specs:

   - python=3.11
   - ca-certificates
   - certifi
   - openssl


  Package                       Version  Build               Channel           Size
-------------------------------------------------------------------------------------
  Install:
-------------------------------------------------------------------------------------

  + conda-libmamba-solver       23.11.1  pyhd8ed1ab_0        conda-forge       47kB

  Change:
-------------------------------------------------------------------------------------

  - libmambapy                    1.5.3  py312h66cf91f_2     conda-forge     Cached
  + libmambapy                    1.5.3  py311h0317a69_2     conda-forge      423kB
  - jsonpointer                     2.4  py312h2e8e312_3     conda-forge       35kB
  + jsonpointer                     2.4  py311h1ea47a8_3     conda-forge       35kB
  - ruamel.yaml.clib              0.2.7  py312he70551f_2     conda-forge       95kB
  + ruamel.yaml.clib              0.2.7  py311ha68e1ae_2     conda-forge       98kB
  - pycosat                       0.6.6  py312he70551f_0     conda-forge       78kB
  + pycosat                       0.6.6  py311ha68e1ae_0     conda-forge       79kB
  - menuinst                     1.4.20  py312h53d5487_0     conda-forge      108kB
  + menuinst                     1.4.20  py311h12c1d0e_0     conda-forge      109kB
  - brotli-python                 1.1.0  py312h53d5487_1     conda-forge      323kB
  + brotli-python                 1.1.0  py311h12c1d0e_1     conda-forge      322kB
  - cffi                         1.16.0  py312he70551f_0     conda-forge      288kB
  + cffi                         1.16.0  py311ha68e1ae_0     conda-forge      297kB
  - zstandard                    0.22.0  py312h01d794b_0     conda-forge      322kB
  + zstandard                    0.22.0  py311he5d195f_0     conda-forge      324kB
  - cryptography                 41.0.5  py312h1f4a190_0     conda-forge        1MB
  + cryptography                 41.0.5  py311h28e9c30_0     conda-forge        1MB
  - mamba                         1.5.3  py312h5494d5c_2     conda-forge     Cached
  + mamba                         1.5.3  py311h8cb466b_2     conda-forge       83kB

  Reinstall:
-------------------------------------------------------------------------------------

  o wheel                        0.41.3  pyhd8ed1ab_0        conda-forge       58kB
  o setuptools                   68.2.2  pyhd8ed1ab_0        conda-forge      464kB
  o pip                          23.3.1  pyhd8ed1ab_0        conda-forge        1MB
  o win_inet_pton                 1.1.0  pyhd8ed1ab_6        conda-forge        8kB
  o truststore                    0.8.0  pyhd8ed1ab_0        conda-forge       21kB
  o pycparser                      2.21  pyhd8ed1ab_0        conda-forge      103kB
  o pluggy                        1.3.0  pyhd8ed1ab_0        conda-forge       23kB
  o packaging                      23.2  pyhd8ed1ab_0        conda-forge       49kB
  o idna                            3.4  pyhd8ed1ab_0        conda-forge       57kB
  o colorama                      0.4.6  pyhd8ed1ab_0        conda-forge       25kB
  o charset-normalizer            3.3.2  pyhd8ed1ab_0        conda-forge       47kB
  o certifi                  2023.11.17  pyhd8ed1ab_0        conda-forge      159kB
  o boltons                      23.0.0  pyhd8ed1ab_0        conda-forge      303kB
  o archspec                      0.2.2  pyhd8ed1ab_0        conda-forge       42kB
  o pysocks                       1.7.1  pyh0701188_6        conda-forge       19kB
  o tqdm                         4.66.1  pyhd8ed1ab_0        conda-forge       89kB
  o jsonpatch                      1.33  pyhd8ed1ab_0        conda-forge       17kB
  o urllib3                       2.1.0  pyhd8ed1ab_0        conda-forge       85kB
  o conda-package-streaming       0.9.0  pyhd8ed1ab_0        conda-forge       19kB
  o pyopenssl                    23.3.0  pyhd8ed1ab_0        conda-forge      127kB
  o requests                     2.31.0  pyhd8ed1ab_0        conda-forge       57kB
  o conda-package-handling        2.2.0  pyh38be061_0        conda-forge      255kB

  Upgrade:
-------------------------------------------------------------------------------------

  - ruamel.yaml                 0.17.40  py312he70551f_0     conda-forge      271kB
  + ruamel.yaml                  0.18.5  py311ha68e1ae_0     conda-forge      278kB
  - conda                        23.9.0  py312h2e8e312_2     conda-forge        1MB
  + conda                       23.10.0  py311h1ea47a8_1     conda-forge        1MB

  Downgrade:
-------------------------------------------------------------------------------------

  - python                       3.12.0  h2628c8c_0_cpython  conda-forge       16MB
  + python                       3.11.6  h2628c8c_0_cpython  conda-forge       18MB
  - python_abi                     3.12  4_cp312             conda-forge        7kB
  + python_abi                     3.11  4_cp311             conda-forge        7kB

  Summary:

  Install: 1 packages
  Change: 10 packages
  Reinstall: 22 packages
  Upgrade: 2 packages
  Downgrade: 2 packages

  Total download: 26MB

-------------------------------------------------------------------------------------


Confirm changes: [Y/n] y

@jaimergp
Copy link
Contributor

It might be indeed 3.12 vs 3.11. See conda/conda-libmamba-solver#303. I guess if you uninstall conda-libmamba-solver it would also work. We also ported the command there as conda repoquery, if you want.

@h-vetinari
Copy link
Author

I guess if you uninstall conda-libmamba-solver it would also work.

As of the state of the test environment described above, this would essentially clean out all packages from the env.

We also ported the command there as conda repoquery, if you want.

Cool, TIL! It'd be nice though to get the mamba command working again (not least due to IMO better channeldata handling than conda).

@h-vetinari
Copy link
Author

It might be indeed 3.12 vs 3.11. See conda/conda-libmamba-solver#303.

BTW, confirmed that it works with 3.10, so this really seems specific to Python 3.11, as the referenced issue alludes to.

@h-vetinari
Copy link
Author

Also doesn't work on 3.12 now...

@jezdez
Copy link
Contributor

jezdez commented Dec 5, 2023

I think #3036 also fixes mamba 1.x's repoquery command again.

@LiutongZhou
Copy link

Same issue encountered. mamba 1.5.6, conda 23.11.0, python 3.12

> ~/MLlab/test$ mamba repoquery search "mkl"
Currently, only install, create, list, search, run, info, clean, remove, update, repoquery, activate and deactivate are supported through mamba.

> mamba info
          mamba version : 1.5.6
     active environment : base
            shell level : 1
          conda version : 23.11.0
    conda-build version : not installed
         python version : 3.12.1.final.0
                 solver : libmamba (default)
       virtual packages : __archspec=1=cascadelake
                          __conda=23.11.0=0
                          __glibc=2.31=0
                          __linux=5.4.0=0
                          __unix=0=0
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
               platform : linux-64
             user-agent : conda/23.11.0 requests/2.31.0 CPython/3.12.1 Linux/5.4.0-165-generic ubuntu/20.04.4 glibc/2.31 solver/libmamba conda-libmamba-solver/23.12.0 libmambapy/1.5.6
                UID:GID : 2320467937:18010
             netrc file : None
           offline mode : False

@h-vetinari
Copy link
Author

This should be fixed by #3170. 🤞

@jjerphan
Copy link
Member

jjerphan commented Oct 24, 2024

Repoqueries work now.

If someone is meeting problems, they should feel free to reopen this issue.

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

No branches or pull requests

6 participants