Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Invalid sub-command suggestion is incomplete and unsorted #13332

@Skgland

Description

@Skgland

Checklist

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

What happened?

I wanted to turn off the conda environment retuning to the base environment.
I wasn't sure about the name of the sub-command to do that and first tried disable.
The resulting error message listed available sub-commands, but that list was

  • unsorted making it difficult to search for other terms that I may could have ment (deactivate),
    as one needs to search the whole list rather than performing a "telephone book"/binary-serach.
  • the sub-command deactivate is missing in the list
> conda disable
usage: conda [-h] [--no-plugins] [-V] COMMAND ...
conda: error: argument COMMAND: invalid choice: 'disable' (choose from 'clean', 'compare', 'config', 'create', 'info', 'init', 'install', 'list', 'notices', 'package', 'remove', 'uninstall', 'rename', 'run', 'search', 'update', 'upgrade', 'build', 'content-trust', 'convert', 'debug', 'develop', 'doctor', 'index', 'inspect', 'metapackage', 'render', 'skeleton', 'server', 'repo', 'token', 'env', 'verify', 'pack')
> conda deactivate
> conda -V
conda 23.7.4

Installed today using wget https://repo.anaconda.com/archive/Anaconda3-2023.09-0-Linux-x86_64.sh followed by bash ./Anaconda3-2023.09-0-Linux-x86_64.sh which is the current link at https://www.anaconda.com/download#downloads for the Linux 64-Bit (x86) Installer

I think issue #6353 and #11308 are related

Conda Info

active environment : base
    active env location : /home/<username>/anaconda3
            shell level : 1
       user config file : /home/<username>/.condarc
 populated config files :
          conda version : 23.7.4
    conda-build version : 3.26.1
         python version : 3.11.5.final.0
       virtual packages : __archspec=1=x86_64
                          __glibc=2.31=0
                          __linux=5.15.123.1=0
                          __unix=0=0
       base environment : /home/<username>/anaconda3  (writable)
      conda av data dir : /home/<username>/anaconda3/etc/conda
  conda av metadata url : None
           channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /home/<username>/anaconda3/pkgs
                          /home/<username>/.conda/pkgs
       envs directories : /home/<username>/anaconda3/envs
                          /home/<username>/.conda/envs
               platform : linux-64
             user-agent : conda/23.7.4 requests/2.31.0 CPython/3.11.5 Linux/5.15.123.1-microsoft-standard-WSL2 ubuntu/20.04.6 glibc/2.31 aau/0.4.2 c/bQRrmpTEuSwEGMLggHV2LA s/dLF6EVyczh8sF-VqIW1joQ e/eJEV08CfNF87CTMeg5LMCw
                UID:GID : 1000:1000
             netrc file : None
           offline mode : False

Conda Config

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

Conda list

# packages in environment at /home/<username>/anaconda3/envs/openmmlab:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                        main    defaults
_openmp_mutex             5.1                       1_gnu    defaults
addict                    2.4.0                    pypi_0    pypi
aliyun-python-sdk-core    2.14.0                   pypi_0    pypi
aliyun-python-sdk-kms     2.16.2                   pypi_0    pypi
blas                      1.0                         mkl    defaults
brotli-python             1.0.9            py38h6a678d5_7    defaults
bzip2                     1.0.8                h7b6447c_0    defaults
ca-certificates           2023.08.22           h06a4308_0    defaults
certifi                   2023.7.22        py38h06a4308_0    defaults
cffi                      1.15.1           py38h5eee18b_3    defaults
charset-normalizer        2.0.4              pyhd3eb1b0_0    defaults
colorama                  0.4.6                    pypi_0    pypi
crcmod                    1.7                      pypi_0    pypi
cryptography              41.0.3           py38hdda0065_0    defaults
ffmpeg                    4.3                  hf484d3e_0    pytorch
filelock                  3.9.0            py38h06a4308_0    defaults
freetype                  2.12.1               h4a9f257_0    defaults
giflib                    5.2.1                h5eee18b_3    defaults
gmp                       6.2.1                h295c915_3    defaults
gmpy2                     2.1.2            py38heeb90bb_0    defaults
gnutls                    3.6.15               he1e5248_0    defaults
idna                      3.4              py38h06a4308_0    defaults
importlib-metadata        6.8.0                    pypi_0    pypi
intel-openmp              2023.1.0         hdb19cb5_46306    defaults
jinja2                    3.1.2            py38h06a4308_0    defaults
jmespath                  0.10.0                   pypi_0    pypi
jpeg                      9e                   h5eee18b_1    defaults
lame                      3.100                h7b6447c_0    defaults
lcms2                     2.12                 h3be6417_0    defaults
ld_impl_linux-64          2.38                 h1181459_1    defaults
lerc                      3.0                  h295c915_0    defaults
libdeflate                1.17                 h5eee18b_1    defaults
libffi                    3.4.4                h6a678d5_0    defaults
libgcc-ng                 11.2.0               h1234567_1    defaults
libgomp                   11.2.0               h1234567_1    defaults
libiconv                  1.16                 h7f8727e_2    defaults
libidn2                   2.3.4                h5eee18b_0    defaults
libjpeg-turbo             2.0.0                h9bf148f_0    pytorch
libpng                    1.6.39               h5eee18b_0    defaults
libstdcxx-ng              11.2.0               h1234567_1    defaults
libtasn1                  4.19.0               h5eee18b_0    defaults
libtiff                   4.5.1                h6a678d5_0    defaults
libunistring              0.9.10               h27cfd23_0    defaults
libwebp                   1.3.2                h11a3e52_0    defaults
libwebp-base              1.3.2                h5eee18b_0    defaults
llvm-openmp               14.0.6               h9e868ea_0    defaults
lz4-c                     1.9.4                h6a678d5_0    defaults
markdown                  3.5.1                    pypi_0    pypi
markdown-it-py            3.0.0                    pypi_0    pypi
markupsafe                2.1.1            py38h7f8727e_0    defaults
mdurl                     0.1.2                    pypi_0    pypi
mkl                       2023.1.0         h213fc3f_46344    defaults
mkl-service               2.4.0            py38h5eee18b_1    defaults
mkl_fft                   1.3.8            py38h5eee18b_0    defaults
mkl_random                1.2.4            py38hdb19cb5_0    defaults
mmcv                      2.1.0                    pypi_0    pypi
mmdet                     3.2.0                    pypi_0    pypi
mmengine                  0.9.1                    pypi_0    pypi
model-index               0.1.11                   pypi_0    pypi
mpc                       1.1.0                h10f8cd9_1    defaults
mpfr                      4.0.2                hb69a4c5_1    defaults
mpmath                    1.3.0            py38h06a4308_0    defaults
ncurses                   6.4                  h6a678d5_0    defaults
nettle                    3.7.3                hbbd107a_1    defaults
networkx                  3.1              py38h06a4308_0    defaults
numpy                     1.24.4                   pypi_0    pypi
numpy-base                1.24.3           py38h060ed82_1    defaults
opendatalab               0.0.10                   pypi_0    pypi
openh264                  2.1.1                h4ff587b_0    defaults
openjpeg                  2.4.0                h3ad879b_0    defaults
openmim                   0.3.9                    pypi_0    pypi
openssl                   3.0.12               h7f8727e_0    defaults
openxlab                  0.0.28                   pypi_0    pypi
ordered-set               4.1.0                    pypi_0    pypi
oss2                      2.17.0                   pypi_0    pypi
pillow                    10.0.1           py38ha6cbd5a_0    defaults
pip                       23.3             py38h06a4308_0    defaults
platformdirs              4.0.0                    pypi_0    pypi
pycparser                 2.21               pyhd3eb1b0_0    defaults
pycryptodome              3.19.0                   pypi_0    pypi
pygments                  2.16.1                   pypi_0    pypi
pyopenssl                 23.2.0           py38h06a4308_0    defaults
pysocks                   1.7.1            py38h06a4308_0    defaults
python                    3.8.18               h955ad1f_0    defaults
pytorch                   2.1.1               py3.8_cpu_0    pytorch
pytorch-mutex             1.0                         cpu    pytorch
pyyaml                    6.0.1            py38h5eee18b_0    defaults
readline                  8.2                  h5eee18b_0    defaults
requests                  2.28.2                   pypi_0    pypi
rich                      13.4.2                   pypi_0    pypi
scipy                     1.10.1                   pypi_0    pypi
setuptools                60.2.0                   pypi_0    pypi
shapely                   2.0.2                    pypi_0    pypi
six                       1.16.0                   pypi_0    pypi
sqlite                    3.41.2               h5eee18b_0    defaults
sympy                     1.11.1           py38h06a4308_0    defaults
tabulate                  0.9.0                    pypi_0    pypi
tbb                       2021.8.0             hdb19cb5_0    defaults
termcolor                 2.3.0                    pypi_0    pypi
terminaltables            3.1.10                   pypi_0    pypi
tk                        8.6.12               h1ccaba5_0    defaults
tomli                     2.0.1                    pypi_0    pypi
torchvision               0.16.1                 py38_cpu    pytorch
typing_extensions         4.7.1            py38h06a4308_0    defaults
urllib3                   1.26.18          py38h06a4308_0    defaults
wheel                     0.41.2           py38h06a4308_0    defaults
xz                        5.4.2                h5eee18b_0    defaults
yaml                      0.2.5                h7b6447c_0    defaults
yapf                      0.40.2                   pypi_0    pypi
zipp                      3.17.0                   pypi_0    pypi
zlib                      1.2.13               h5eee18b_0    defaults
zstd                      1.5.5                hc292b87_0    defaults

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    locked[bot] locked due to inactivitysource::communitycatch-all for issues filed by community membersstale::recovered[bot] recovered after being marked as staletype::bugdescribes erroneous operation, use severity::* to classify the type

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions