mamba-org / mamba

The Fast Cross-Platform Package Manager
https://mamba.readthedocs.io
BSD 3-Clause "New" or "Revised" License
6.9k stars 353 forks source link

Python upgrade fails with ValueError: missing key ... in channel #3172

Open zhihanyue opened 9 months ago

zhihanyue commented 9 months ago

Troubleshooting docs

Anaconda default channels

How did you install Mamba?

Mambaforge or latest Miniforge

Search tried in issue tracker

2593

Latest version of Mamba

Tried in Conda?

I didn't try

Describe your issue

mamba upgrade python=3.11 -c conda-forge

Looking for: ['python=3.11']

conda-forge/linux-64 (check zst)                   Checked  0.1s
conda-forge/noarch (check zst)                      Checked  0.0s
conda-forge/noarch                                  16.7MB @   1.4MB/s 11.6s
conda-forge/linux-64                                41.0MB @   1.7MB/s 24.2s
warning  libmamba Invalid package cache, file '/home/zhyue/mambaforge/pkgs/tabulate-0.9.0-pyhd8ed1ab_1/site-packages/tabulate/__init__.py' has incorrect size
warning  libmamba Invalid package cache, file '/home/zhyue/mambaforge/pkgs/nanobind-1.8.0-pyhd8ed1ab_0/site-packages/nanobind/include/nanobind/nb_class.h' has incorrect size
warning  libmamba Invalid package cache, file '/home/zhyue/mambaforge/pkgs/nanobind-1.8.0-pyhd8ed1ab_0/site-packages/nanobind/src/common.cpp' has incorrect size
Transaction

  Prefix: /home/zhyue/mambaforge

  Updating specs:

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

  Package                              Version  Build                Channel           Size
─────────────────────────────────────────────────────────────────────────────────────────────
  Install:
─────────────────────────────────────────────────────────────────────────────────────────────

  + libxcrypt                           4.4.36  hd590300_1           conda-forge      100kB
  + truststore                           0.8.0  pyhd8ed1ab_0         conda-forge       21kB
  + comm                                 0.2.1  pyhd8ed1ab_0         conda-forge       12kB

  Change:
─────────────────────────────────────────────────────────────────────────────────────────────

  - pysocks                              1.7.1  py39hf3d152e_4       conda-forge       28kB
  + pysocks                              1.7.1  pyha2e5f31_6         conda-forge       19kB
  - ruamel_yaml                        0.15.80  py39h3811e60_1006    conda-forge      274kB
  + ruamel_yaml                        0.15.80  py311h459d7ec_1009   conda-forge      326kB
  - ruamel.yaml.clib                     0.2.7  py39hd1e30aa_2       conda-forge     Cached
  + ruamel.yaml.clib                     0.2.7  py311h459d7ec_2      conda-forge      134kB
  - pybind11-global                     2.11.1  py39h7633fee_2       conda-forge     Cached
  + pybind11-global                     2.11.1  py311h9547e67_2      conda-forge      172kB
  - jsonpointer                            2.4  py39hf3d152e_3       conda-forge     Cached
  + jsonpointer                            2.4  py311h38be061_3      conda-forge       18kB
  - clarabel                             0.6.0  py39ha56439a_1       conda-forge     Cached
  + clarabel                             0.6.0  py311h7e2346c_1      conda-forge        1MB
  - llvmlite                            0.41.1  py39h174d805_0       conda-forge     Cached
  + llvmlite                            0.41.1  py311ha6695c7_0      conda-forge        3MB
  - libmambapy                           1.5.6  py39h10defb6_0       conda-forge     Cached
  + libmambapy                           1.5.6  py311hf2555c7_0      conda-forge      304kB
  - menuinst                             2.0.2  py39hf3d152e_0       conda-forge     Cached
  + menuinst                             2.0.2  py311h38be061_0      conda-forge      163kB
  - numpy                               1.26.3  py39h474f0d3_0       conda-forge     Cached
  + numpy                               1.26.3  py311h64a7726_0      conda-forge        8MB
  - psycopg2                             2.9.9  py39h89197e3_0       conda-forge     Cached
  + psycopg2                             2.9.9  py311h03dec38_0      conda-forge      190kB
  - pydantic-core                       2.14.6  py39h9fdd4d6_1       conda-forge     Cached
  + pydantic-core                       2.14.6  py311h46250e7_1      conda-forge        2MB
  - ruamel.yaml                         0.18.5  py39hd1e30aa_0       conda-forge     Cached
  + ruamel.yaml                         0.18.5  py311h459d7ec_0      conda-forge      277kB
  - pybind11                            2.11.1  py39h7633fee_2       conda-forge     Cached
  + pybind11                            2.11.1  py311h9547e67_2      conda-forge      188kB
  - scipy                               1.12.0  py39h474f0d3_0       conda-forge     Cached
  + scipy                               1.12.0  py311h64a7726_2      conda-forge       17MB
  - numexpr                              2.8.8  mkl_py39h5612d84_0   conda-forge     Cached
  + numexpr                              2.8.8  mkl_py311h570c600_0  conda-forge      161kB
  - pyarrow                             14.0.2  py39h6925388_2_cpu   conda-forge     Cached
  + pyarrow                             14.0.2  py311h39c9aba_2_cpu  conda-forge        5MB
  - bottleneck                           1.3.7  py39h44dd56e_1       conda-forge     Cached
  + bottleneck                           1.3.7  py311h1f0f07a_1      conda-forge      143kB
  - contourpy                            1.2.0  py39h7633fee_0       conda-forge     Cached
  + contourpy                            1.2.0  py311h9547e67_0      conda-forge      256kB
  - numba                               0.58.1  py39h615d6bd_0       conda-forge     Cached
  + numba                               0.58.1  py311h96b013e_0      conda-forge        6MB
  - brotlipy                             0.7.0  py39h3811e60_1003    conda-forge      350kB
  + brotlipy                             0.7.0  py311h459d7ec_1006   conda-forge      320kB
  - argon2-cffi-bindings                21.2.0  py39hb9d737c_2       conda-forge       35kB
  + argon2-cffi-bindings                21.2.0  py311h459d7ec_4      conda-forge       35kB
  - zstandard                           0.22.0  py39h6e5214e_0       conda-forge     Cached
  + zstandard                           0.22.0  py311haa97af0_0      conda-forge      415kB
  - qdldl-python                   0.1.5.post2  py39h4661b88_0       conda-forge      107kB
  + qdldl-python                   0.1.5.post2  py311h320fe9a_1      conda-forge      107kB
  - cvxpy-base                           1.4.2  py39hddac248_0       conda-forge     Cached
  + cvxpy-base                           1.4.2  py311h320fe9a_0      conda-forge        1MB
  - scikit-learn                         1.4.0  py39ha22ef79_0       conda-forge     Cached
  + scikit-learn                         1.4.0  py311hc009520_0      conda-forge       10MB
  - pytables                             3.9.2  py39hfbd31a7_1       conda-forge     Cached
  + pytables                             3.9.2  py311h10c7f7f_1      conda-forge        2MB
  - matplotlib-base                      3.8.2  py39he9076e7_0       conda-forge     Cached
  + matplotlib-base                      3.8.2  py311h54ef318_0      conda-forge        8MB
  - osqp                                 0.6.3  py39hddac248_2       conda-forge     Cached
  + osqp                                 0.6.3  py311h320fe9a_2      conda-forge      140kB
  - cvxpy                                1.4.2  py39hf3d152e_0       conda-forge      126kB
  + cvxpy                                1.4.2  py311h38be061_0      conda-forge      126kB
  - conda                              23.11.0  py39hf3d152e_1       conda-forge     Cached
  + conda                              23.11.0  py311h38be061_1      conda-forge        1MB
  - mamba                                1.5.6  py39hc5d2bb1_0       conda-forge     Cached
  + mamba                                1.5.6  py311h3072747_0      conda-forge       66kB

  Reinstall:
─────────────────────────────────────────────────────────────────────────────────────────────

  o wheel                               0.37.1  pyhd8ed1ab_0         conda-forge       32kB
  o pip                                 22.0.4  pyhd8ed1ab_0         conda-forge        2MB
  o zipp                                 3.8.0  pyhd8ed1ab_0         conda-forge       12kB
  o webencodings                         0.5.1  py_1                 conda-forge       12kB
  o typing_extensions                    4.9.0  pyha770c72_0         conda-forge     Cached
  o toolz                               0.12.0  pyhd8ed1ab_0         conda-forge       49kB
  o tomli                                2.0.1  pyhd8ed1ab_0         conda-forge       16kB
  o threadpoolctl                        3.1.0  pyh8a188c0_0         conda-forge       18kB
  o tabulate                             0.9.0  pyhd8ed1ab_1         conda-forge     Cached
  o soupsieve                            2.3.1  pyhd8ed1ab_0         conda-forge       34kB
  o sortedcontainers                     2.4.0  pyhd8ed1ab_0         conda-forge     Cached
  o six                                 1.16.0  pyh6c4a22f_0         conda-forge       14kB
  o send2trash                           1.8.0  pyhd8ed1ab_0         conda-forge       18kB
  o pytz                                2022.1  pyhd8ed1ab_0         conda-forge      248kB
  o python-tzdata                       2023.4  pyhd8ed1ab_0         conda-forge     Cached
  o python-fastjsonschema               2.15.3  pyhd8ed1ab_0         conda-forge      249kB
  o pyparsing                            3.0.8  pyhd8ed1ab_0         conda-forge       81kB
  o pygments                            2.12.0  pyhd8ed1ab_0         conda-forge      837kB
  o pycparser                             2.21  pyhd8ed1ab_0         conda-forge      103kB
  o pybind11-stubgen                     2.3.6  pyhd8ed1ab_0         conda-forge     Cached
  o py-cpuinfo                           9.0.0  pyhd8ed1ab_0         conda-forge     Cached
  o pure_eval                            0.2.2  pyhd8ed1ab_0         conda-forge       15kB
  o ptyprocess                           0.7.0  pyhd3deb0d_0         conda-forge       17kB
  o prometheus_client                   0.14.1  pyhd8ed1ab_0         conda-forge       50kB
  o pluggy                               1.3.0  pyhd8ed1ab_0         conda-forge     Cached
  o platformdirs                         4.1.0  pyhd8ed1ab_0         conda-forge     Cached
  o pickleshare                          0.7.5  py_1003              conda-forge        9kB
  o parso                                0.8.3  pyhd8ed1ab_0         conda-forge       71kB
  o pandocfilters                        1.5.0  pyhd8ed1ab_0         conda-forge       12kB
  o packaging                             23.2  pyhd8ed1ab_0         conda-forge     Cached
  o nest-asyncio                         1.5.5  pyhd8ed1ab_0         conda-forge        9kB
  o natsort                              8.2.0  pyhd8ed1ab_0         conda-forge       36kB
  o nanobind                             1.8.0  pyhd8ed1ab_0         conda-forge     Cached
  o munkres                              1.1.4  pyh9f0ad1d_0         conda-forge       12kB
  o json5                                0.9.5  pyh9f0ad1d_0         conda-forge       21kB
  o joblib                               1.3.2  pyhd8ed1ab_0         conda-forge     Cached
  o ipython_genutils                     0.2.0  py_1                 conda-forge       22kB
  o idna                                   3.3  pyhd8ed1ab_0         conda-forge       56kB
  o flit-core                            3.7.1  pyhd8ed1ab_0         conda-forge       45kB
  o executing                            0.8.3  pyhd8ed1ab_0         conda-forge       19kB
  o exceptiongroup                       1.2.0  pyhd8ed1ab_2         conda-forge     Cached
  o entrypoints                            0.4  pyhd8ed1ab_0         conda-forge        9kB
  o distro                               1.9.0  pyhd8ed1ab_0         conda-forge     Cached
  o dill                               0.3.5.1  pyhd8ed1ab_0         conda-forge       73kB
  o defusedxml                           0.7.1  pyhd8ed1ab_0         conda-forge       24kB
  o decorator                            5.1.1  pyhd8ed1ab_0         conda-forge       12kB
  o cycler                              0.11.0  pyhd8ed1ab_0         conda-forge       10kB
  o colorama                             0.4.4  pyh9f0ad1d_0         conda-forge       18kB
  o charset-normalizer                  2.0.12  pyhd8ed1ab_0         conda-forge       36kB
  o certifi                         2023.11.17  pyhd8ed1ab_0         conda-forge     Cached
  o boltons                             23.1.1  pyhd8ed1ab_0         conda-forge     Cached
  o backports                              1.0  py_2                 conda-forge        4kB
  o backcall                             0.2.0  pyh9f0ad1d_0         conda-forge       14kB
  o attrs                               21.4.0  pyhd8ed1ab_0         conda-forge       50kB
  o archspec                             0.2.2  pyhd8ed1ab_0         conda-forge     Cached
  o importlib_resources                  5.7.1  pyhd8ed1ab_0         conda-forge       22kB
  o tinycss2                             1.1.1  pyhd8ed1ab_0         conda-forge       23kB
  o typing-extensions                    4.9.0  hd8ed1ab_0           conda-forge       10kB
  o beautifulsoup4                      4.11.1  pyha770c72_0         conda-forge       98kB
  o python-dateutil                      2.8.2  pyhd8ed1ab_0         conda-forge      246kB
  o asttokens                            2.0.5  pyhd8ed1ab_0         conda-forge       22kB
  o babel                                2.9.1  pyh44b312d_0         conda-forge        6MB
  o jupyterlab_pygments                  0.2.2  pyhd8ed1ab_0         conda-forge       17kB
  o pexpect                              4.8.0  pyh9f0ad1d_2         conda-forge       48kB
  o bleach                               5.0.0  pyhd8ed1ab_0         conda-forge      126kB
  o tqdm                                4.66.1  pyhd8ed1ab_0         conda-forge     Cached
  o backports.functools_lru_cache        1.6.4  pyhd8ed1ab_0         conda-forge        9kB
  o matplotlib-inline                    0.1.3  pyhd8ed1ab_0         conda-forge       11kB
  o anyio                                3.7.1  pyhd8ed1ab_0         conda-forge     Cached
  o importlib-resources                  5.7.1  pyhd8ed1ab_1         conda-forge        4kB
  o annotated-types                      0.6.0  pyhd8ed1ab_0         conda-forge     Cached
  o stack_data                           0.2.0  pyhd8ed1ab_0         conda-forge       22kB
  o wcwidth                              0.2.5  pyh9f0ad1d_2         conda-forge       34kB
  o starlette                           0.35.0  pyhd8ed1ab_0         conda-forge     Cached
  o ipdb                                0.13.9  pyhd8ed1ab_0         conda-forge       16kB
  o jsonschema                           4.4.0  pyhd8ed1ab_0         conda-forge       58kB
  o jinja2                               3.1.1  pyhd8ed1ab_0         conda-forge      101kB
  o jsonpatch                             1.33  pyhd8ed1ab_0         conda-forge     Cached
  o pgcopy                               1.5.0  pyh44b312d_0         conda-forge       15kB
  o jupyter_client                       7.3.0  pyhd8ed1ab_0         conda-forge       93kB
  o pydantic                             2.5.3  pyhd8ed1ab_0         conda-forge     Cached
  o patsy                                0.5.2  pyhd8ed1ab_0         conda-forge      193kB
  o xarray                            2022.9.0  pyhd8ed1ab_0         conda-forge      721kB
  o argon2-cffi                         21.3.0  pyhd8ed1ab_0         conda-forge       16kB
  o conda-package-streaming              0.9.0  pyhd8ed1ab_0         conda-forge     Cached
  o seaborn-base                        0.13.1  pyhd8ed1ab_0         conda-forge     Cached
  o mplfinance                        0.12.9b7  pyhd8ed1ab_0         conda-forge     Cached
  o nbformat                             5.4.0  pyhd8ed1ab_0         conda-forge      106kB
  o fastapi                            0.109.0  pyhd8ed1ab_0         conda-forge     Cached
  o urllib3                             1.26.9  pyhd8ed1ab_0         conda-forge      103kB
  o conda-package-handling               2.2.0  pyh38be061_0         conda-forge     Cached
  o nbclient                             0.6.2  pyhd8ed1ab_0         conda-forge       66kB
  o requests                            2.31.0  pyhd8ed1ab_0         conda-forge     Cached
  o pandas-datareader                   0.10.0  pyh6c4a22f_0         conda-forge       72kB
  o download                             0.3.5  pyhd8ed1ab_0         conda-forge       12kB
  o jupyter_server                      1.17.0  pyhd8ed1ab_0         conda-forge      244kB
  o empyrical                            0.5.5  pyh9f0ad1d_0         conda-forge       39kB
  o libsvmdata                           0.4.1  pyhd8ed1ab_0         conda-forge       11kB
  o notebook-shim                        0.1.0  pyhd8ed1ab_0         conda-forge       15kB
  o jupyterlab_server                   2.13.0  pyhd8ed1ab_1         conda-forge       50kB
  o notebook                            6.4.11  pyha770c72_0         conda-forge        7MB
  o nbclassic                            0.3.7  pyhd8ed1ab_0         conda-forge       15kB
  o jupyterlab                           3.4.0  pyhd8ed1ab_0         conda-forge        6MB
  o seaborn                             0.13.1  hd8ed1ab_0           conda-forge        7kB
  o conda-libmamba-solver              23.12.0  pyhd8ed1ab_0         conda-forge     Cached

  Upgrade:
─────────────────────────────────────────────────────────────────────────────────────────────

  - libnsl                               2.0.0  h7f98852_0           conda-forge       31kB
  + libnsl                               2.0.1  hd590300_0           conda-forge       33kB
  - libsqlite                           3.39.4  h753d276_0           conda-forge      822kB
  + libsqlite                           3.44.2  h2797004_0           conda-forge      846kB
  - libuuid                             2.32.1  h7f98852_1000        conda-forge       28kB
  + libuuid                             2.38.1  h0b41bf4_0           conda-forge       34kB
  - readline                             8.1.2  h0f457ee_0           conda-forge      298kB
  + readline                               8.2  h8228510_1           conda-forge      281kB
  - ca-certificates                 2023.11.17  hbcca054_0           conda-forge     Cached
  + ca-certificates                   2024.2.2  hbcca054_0           conda-forge      155kB
  - libwebp-base                         1.2.2  h7f98852_1           conda-forge      844kB
  + libwebp-base                         1.2.4  h166bdaf_0           conda-forge      413kB
  - python_abi                             3.9  2_cp39               conda-forge        4kB
  + python_abi                            3.11  4_cp311              conda-forge        6kB
  - sqlite                              3.39.4  h4ff8645_0           conda-forge      807kB
  + sqlite                              3.44.2  h2c6b66d_0           conda-forge      836kB
  - openssl                              3.2.0  hd590300_1           conda-forge     Cached
  + openssl                              3.2.1  hd590300_0           conda-forge        3MB
  - libtiff                              4.3.0  h542a066_3           conda-forge      653kB
  + libtiff                              4.4.0  h0fcbabc_0           conda-forge      621kB
  - python                              3.9.13  h2660328_0_cpython   conda-forge       28MB
  + python                              3.11.7  hab00c5b_1_cpython   conda-forge       31MB
  - openjpeg                             2.4.0  hb52868f_1           conda-forge      455kB
  + openjpeg                             2.5.0  h7d73246_1           conda-forge      546kB
  - libwebp                              1.2.2  h3452ae3_0           conda-forge       87kB
  + libwebp                              1.2.4  h522a892_0           conda-forge       90kB
  - setuptools                         60.10.0  py39hf3d152e_0       conda-forge        1MB
  + setuptools                          69.0.3  pyhd8ed1ab_0         conda-forge      471kB
  - mistune                              0.8.4  py39h3811e60_1005    conda-forge       56kB
  + mistune                              3.0.2  pyhd8ed1ab_0         conda-forge       66kB
  - jupyterlab_widgets                   1.1.0  pyhd8ed1ab_0         conda-forge      136kB
  + jupyterlab_widgets                   3.0.9  pyhd8ed1ab_0         conda-forge      187kB
  - traitlets                            5.1.1  pyhd8ed1ab_0         conda-forge       84kB
  + traitlets                           5.14.1  pyhd8ed1ab_0         conda-forge      110kB
  - sniffio                              1.2.0  py39hf3d152e_3       conda-forge       16kB
  + sniffio                              1.3.0  pyhd8ed1ab_0         conda-forge       14kB
  - importlib-metadata                  4.11.3  py39hf3d152e_1       conda-forge       34kB
  + importlib-metadata                   7.0.1  pyha770c72_0         conda-forge       26kB
  - jedi                                0.18.1  py39hf3d152e_1       conda-forge        1MB
  + jedi                                0.19.1  pyhd8ed1ab_0         conda-forge      841kB
  - importlib_metadata                  4.11.3  hd8ed1ab_1           conda-forge        4kB
  + importlib_metadata                   7.0.1  hd8ed1ab_0           conda-forge       10kB
  - prompt-toolkit                      3.0.29  pyha770c72_0         conda-forge      258kB
  + prompt-toolkit                      3.0.42  pyha770c72_0         conda-forge      270kB
  - ipython                              8.3.0  py39hf3d152e_0       conda-forge        1MB
  + ipython                             8.21.0  pyh707e725_0         conda-forge      592kB
  - tornado                                6.1  py39hb9d737c_3       conda-forge      665kB
  + tornado                              6.3.3  py311h459d7ec_1      conda-forge      844kB
  - pyzmq                               22.3.0  py39headdf64_2       conda-forge      528kB
  + pyzmq                               25.1.1  py311h75c88c4_1      conda-forge      539kB
  - pyyaml                                 6.0  py39hb9d737c_5       conda-forge     Cached
  + pyyaml                               6.0.1  py311h459d7ec_1      conda-forge      201kB
  - pyrsistent                          0.18.1  py39hb9d737c_1       conda-forge       94kB
  + pyrsistent                          0.20.0  py311h459d7ec_0      conda-forge      125kB
  - pycosat                              0.6.3  py39h3811e60_1009    conda-forge      110kB
  + pycosat                              0.6.6  py311h459d7ec_0      conda-forge       88kB
  - psutil                               5.9.0  py39hb9d737c_1       conda-forge      352kB
  + psutil                               5.9.8  py311h459d7ec_0      conda-forge      506kB
  - mercurial                            6.3.1  py39h4ef89ea_0       conda-forge     Cached
  + mercurial                            6.6.2  py311h46250e7_0      conda-forge        8MB
  - markupsafe                           2.1.1  py39hb9d737c_1       conda-forge       23kB
  + markupsafe                           2.1.5  py311h459d7ec_0      conda-forge       28kB
  - lxml                                 4.9.1  py39hb9d737c_0       conda-forge     Cached
  + lxml                                 4.9.3  py311h1a07684_3      conda-forge        1MB
  - pillow                               9.1.0  py39hae2aec6_2       conda-forge       47MB
  + pillow                               9.2.0  py311h9461556_3      conda-forge       48MB
  - kiwisolver                           1.4.2  py39hf939315_1       conda-forge       77kB
  + kiwisolver                           1.4.5  py311h9547e67_1      conda-forge       73kB
  - unicodedata2                        14.0.0  py39hb9d737c_1       conda-forge      510kB
  + unicodedata2                        15.1.0  py311h459d7ec_0      conda-forge      376kB
  - debugpy                              1.6.0  py39h5a03fae_0       conda-forge        2MB
  + debugpy                              1.8.0  py311hb755f60_1      conda-forge        3MB
  - cython                             0.29.32  py39h5a03fae_0       conda-forge        2MB
  + cython                               3.0.8  py311hb755f60_0      conda-forge        4MB
  - cffi                                1.15.0  py39h4bc2ebd_0       conda-forge      233kB
  + cffi                                1.16.0  py311hb3a22ac_0      conda-forge      300kB
  - multiprocess                       0.70.13  py39hb9d737c_1       conda-forge      219kB
  + multiprocess                       0.70.14  py311hd4cff14_2      conda-forge      320kB
  - jupyter_core                         4.9.2  py39hf3d152e_0       conda-forge       83kB
  + jupyter_core                         5.7.1  py311h38be061_0      conda-forge       95kB
  - fonttools                           4.33.3  py39hb9d737c_0       conda-forge        2MB
  + fonttools                           4.47.2  py311h459d7ec_0      conda-forge        3MB
  - pandas                               2.1.4  py39hddac248_0       conda-forge     Cached
  + pandas                               2.2.0  py311h320fe9a_0      conda-forge       16MB
  - cryptography                        38.0.3  py39h3ccb8fc_0       conda-forge        2MB
  + cryptography                        42.0.2  py311hcb13ee4_0      conda-forge        2MB
  - scs                                  3.2.0  py39hbcdb44f_2       conda-forge       98kB
  + scs                            3.2.4.post1  py311h29a9e0d_0      conda-forge       80kB
  - ecos                                2.0.10  py39h2ae25f5_2       conda-forge       86kB
  + ecos                                2.0.11  py311h1f0f07a_1      conda-forge       97kB
  - terminado                           0.13.3  py39hf3d152e_1       conda-forge       27kB
  + terminado                           0.18.0  pyh0d859eb_0         conda-forge       22kB
  - pyopenssl                           23.2.0  pyhd8ed1ab_1         conda-forge     Cached
  + pyopenssl                           24.0.0  pyhd8ed1ab_0         conda-forge      127kB
  - ipykernel                           6.13.0  py39hef51801_0       conda-forge      190kB
  + ipykernel                           6.29.0  pyhd33586a_0         conda-forge      118kB
  - nbconvert-core                       6.5.0  pyhd8ed1ab_0         conda-forge      435kB
  + nbconvert-core                      7.14.2  pyhd8ed1ab_0         conda-forge      188kB
  - nbconvert-pandoc                     6.5.0  pyhd8ed1ab_0         conda-forge        5kB
  + nbconvert-pandoc                    7.14.2  pyhd8ed1ab_0         conda-forge        8kB
  - nbconvert                            6.5.0  pyhd8ed1ab_0         conda-forge        6kB
  + nbconvert                           7.14.2  pyhd8ed1ab_0         conda-forge        8kB
  - widgetsnbextension                   3.6.0  py39hf3d152e_0       conda-forge        1MB
  + widgetsnbextension                   4.0.9  pyhd8ed1ab_0         conda-forge      886kB
  - ipywidgets                           7.7.0  pyhd8ed1ab_0         conda-forge      106kB
  + ipywidgets                           8.1.1  pyhd8ed1ab_0         conda-forge      114kB
  - statsmodels                         0.13.2  py39hce5d2b2_0       conda-forge       12MB
  + statsmodels                         0.14.0  py311h1f0f07a_3      conda-forge       12MB
  - celer                                0.7.2  py39hac2352c_0       conda-forge      777kB
  + celer                                0.7.3  py311h92ebd52_1      conda-forge      647kB

  Summary:

  Install: 3 packages
  Change: 32 packages
  Reinstall: 105 packages
  Upgrade: 55 packages

  Total download: 236MB

─────────────────────────────────────────────────────────────────────────────────────────────

Confirm changes: [Y/n] Y
libnsl                                              33.4kB @ 256.0kB/s  0.1s
libuuid                                             33.6kB @ 221.5kB/s  0.2s
ca-certificates                                    155.4kB @ 815.5kB/s  0.2s
readline                                           281.5kB @   1.3MB/s  0.2s
libwebp                                             89.6kB @ 376.9kB/s  0.1s
toolz                                               49.1kB @ 187.8kB/s  0.0s
libsqlite                                          845.8kB @   3.0MB/s  0.3s
soupsieve                                           34.0kB @ 119.5kB/s  0.0s
libtiff                                            620.8kB @   1.8MB/s  0.2s
pygments                                           836.9kB @   2.5MB/s  0.1s
parso                                               71.0kB @ 186.3kB/s  0.0s
pandocfilters                                       11.6kB @  30.5kB/s  0.0s
ipython_genutils                                    21.6kB @  48.8kB/s  0.1s
defusedxml                                          24.1kB @  51.2kB/s  0.0s
idna                                                56.1kB @  46.0kB/s  0.8s
truststore                                          20.7kB @  15.6kB/s  0.1s
importlib-metadata                                  26.4kB @  19.5kB/s  0.0s
pytz                                               247.9kB @ 179.4kB/s  1.1s
pycparser                                          102.7kB @  72.5kB/s  1.1s
beautifulsoup4                                      98.3kB @  68.1kB/s  0.1s
matplotlib-inline                                   11.2kB @   7.6kB/s  0.0s
colorama                                            18.0kB @  12.0kB/s  1.0s
stack_data                                          22.0kB @  14.7kB/s  0.0s
ruamel_yaml                                        325.7kB @ 207.1kB/s  0.1s
pyrsistent                                         124.8kB @  77.8kB/s  0.0s
pip                                                  1.6MB @ 415.8kB/s  3.7s
jedi                                               841.3kB @ 190.4kB/s  3.0s
ipython                                            592.1kB @ 103.5kB/s  4.2s
debugpy                                              3.0MB @ 153.9kB/s 15.1s
babel                                                6.5MB @ 232.1kB/s 26.5s
multiprocess                                       320.2kB @  11.3kB/s  0.5s
ruamel.yaml                                        277.1kB @   9.6kB/s  0.5s
llvmlite                                             3.2MB @ 110.1kB/s 23.7s
mercurial                                            8.1MB @ 231.3kB/s 33.3s
pyarrow                                              4.5MB @ 107.5kB/s 12.6s
argon2-cffi-bindings                                35.0kB @ 828.0 B/s  0.2s
qdldl-python                                       106.6kB @   2.5kB/s  0.3s
numpy                                                8.2MB @ 185.5kB/s 24.6s
osqp                                               139.9kB @   3.1kB/s  0.5s
jsonschema                                          58.4kB @   1.3kB/s  0.2s
jupyter_client                                      92.6kB @   2.1kB/s  0.3s
pyopenssl                                          127.1kB @   2.8kB/s  0.4s
ipykernel                                          118.2kB @   2.6kB/s  0.4s
nbconvert-core                                     187.9kB @   4.0kB/s  0.6s
jupyter_server                                     243.7kB @   5.2kB/s  0.7s
libsvmdata                                          10.8kB @ 229.0 B/s  0.1s
nbconvert                                            8.5kB @ 179.0 B/s  0.1s
numba                                                5.7MB @ 115.6kB/s 14.3s
widgetsnbextension                                 886.0kB @  17.9kB/s  2.3s
celer                                              647.5kB @  12.6kB/s  1.6s
python_abi                                           6.4kB @ 124.0 B/s  0.1s
pillow                                              47.7MB @ 875.5kB/s 50.6s
wheel                                               32.0kB @ 577.0 B/s  1.0s
tomli                                               15.9kB @ 285.0 B/s  0.3s
python-fastjsonschema                              248.8kB @   4.4kB/s  0.5s
scipy                                               17.3MB @ 306.4kB/s 27.5s
ptyprocess                                          16.5kB @ 293.0 B/s  0.1s
nest-asyncio                                         9.5kB @ 167.0 B/s  0.1s
json5                                               20.9kB @ 370.0 B/s  0.1s
entrypoints                                          9.2kB @ 162.0 B/s  0.1s
cycler                                              10.3kB @ 182.0 B/s  0.1s
backcall                                            13.7kB @ 241.0 B/s  0.1s
jupyterlab_widgets                                 186.8kB @   3.3kB/s  0.2s
sniffio                                             14.4kB @ 252.0 B/s  0.2s
typing-extensions                                   10.2kB @ 179.0 B/s  0.1s
jupyterlab_pygments                                 17.4kB @ 305.0 B/s  0.1s
backports.functools_lru_cache                        9.0kB @ 158.0 B/s  0.1s
importlib_metadata                                   9.6kB @ 167.0 B/s  0.1s
ipdb                                                15.5kB @ 272.0 B/s  0.1s
pybind11-global                                    172.3kB @   3.0kB/s  0.2s
lxml                                                 1.4MB @  24.6kB/s  1.5s
openssl                                              2.9MB @  48.7kB/s  7.5s
unicodedata2                                       375.6kB @   6.3kB/s  0.5s
pyzmq                                              539.2kB @   9.1kB/s  2.3s
cffi                                               300.2kB @   5.0kB/s  0.4s
libmambapy                                         304.3kB @   5.1kB/s  0.9s
numexpr                                            161.3kB @   2.7kB/s  0.3s
scikit-learn                                        10.3MB @ 172.2kB/s 17.4s
pybind11                                           188.3kB @   3.1kB/s  0.7s
scs                                                 80.0kB @   1.3kB/s  0.1s
terminado                                           22.4kB @ 372.0 B/s  0.1s
patsy                                              193.0kB @   3.2kB/s  0.2s
nbformat                                           106.3kB @   1.8kB/s  0.3s
empyrical                                           39.2kB @ 640.0 B/s  0.9s
pandas-datareader                                   72.4kB @   1.2kB/s  1.3s
mamba                                               66.4kB @   1.1kB/s  0.7s
pytables                                             1.6MB @  25.4kB/s  3.1s
zipp                                                12.0kB @ 190.0 B/s  0.2s
six                                                 14.3kB @ 217.0 B/s  2.4s
cryptography                                         2.0MB @  31.1kB/s  6.1s
munkres                                             12.5kB @ 187.0 B/s  0.6s
decorator                                           12.1kB @ 181.0 B/s  0.2s
prometheus_client                                   50.2kB @ 748.0 B/s  1.4s
pysocks                                             19.0kB @ 282.0 B/s  0.3s
attrs                                               50.0kB @ 734.0 B/s  1.4s
bleach                                             126.0kB @   1.8kB/s  0.4s
jupyterlab                                           6.2MB @  90.7kB/s  7.4s
pyyaml                                             200.6kB @   2.9kB/s  0.3s
markupsafe                                          27.5kB @ 398.0 B/s  0.2s
prompt-toolkit                                     270.4kB @   3.9kB/s  0.7s
psycopg2                                           189.7kB @   2.7kB/s  1.0s
python-dateutil                                    246.0kB @   3.5kB/s  2.7s
contourpy                                          255.8kB @   3.5kB/s  2.8s
cython                                               3.7MB @  49.3kB/s  6.9s
jinja2                                             101.0kB @   1.3kB/s  0.3s
argon2-cffi                                         15.7kB @ 205.0 B/s  0.2s
download                                            12.2kB @ 159.0 B/s  0.2s
fonttools                                            2.8MB @  37.0kB/s  6.7s
jupyterlab_server                                   49.9kB @ 649.0 B/s  0.2s
ipywidgets                                         114.2kB @   1.5kB/s  0.5s
cvxpy-base                                           1.5MB @  19.1kB/s  5.1s
libwebp-base                                       413.4kB @   5.3kB/s  1.0s
pure_eval                                           14.6kB @ 186.0 B/s  0.2s
threadpoolctl                                       18.3kB @ 233.0 B/s  0.2s
flit-core                                           45.2kB @ 576.0 B/s  0.2s
openjpeg                                           546.2kB @   6.9kB/s  1.4s
traitlets                                          110.3kB @   1.4kB/s  0.3s
importlib-resources                                  4.1kB @  51.0 B/s  0.0s
asttokens                                           21.6kB @ 274.0 B/s  0.2s
ruamel.yaml.clib                                   134.3kB @   1.7kB/s  0.2s
kiwisolver                                          73.3kB @ 927.0 B/s  0.2s
menuinst                                           162.6kB @   2.1kB/s  0.2s
ecos                                                97.1kB @   1.2kB/s  0.2s
pgcopy                                              14.9kB @ 188.0 B/s  0.1s
charset-normalizer                                  35.5kB @ 446.0 B/s  1.5s
nbclient                                            66.0kB @ 829.0 B/s  0.2s
seaborn                                              6.9kB @  86.0 B/s  0.1s
setuptools                                         470.5kB @   5.7kB/s  2.7s
pickleshare                                          9.3kB @ 112.0 B/s  0.2s
notebook                                             6.6MB @  78.1kB/s  5.2s
importlib_resources                                 22.3kB @ 262.0 B/s  0.0s
comm                                                12.2kB @ 143.0 B/s  0.0s
pycosat                                             88.1kB @   1.0kB/s  0.1s
dill                                                73.0kB @ 858.0 B/s  2.4s
bottleneck                                         142.6kB @   1.7kB/s  0.4s
clarabel                                             1.1MB @  13.1kB/s  0.9s
urllib3                                            102.6kB @   1.2kB/s  1.1s
statsmodels                                         12.1MB @ 137.7kB/s 38.6s
send2trash                                          17.5kB @ 199.0 B/s  0.2s
conda                                                1.3MB @  14.4kB/s  1.4s
tinycss2                                            23.1kB @ 260.0 B/s  0.1s
executing                                           18.5kB @ 208.0 B/s  0.9s
tornado                                            843.7kB @   9.5kB/s  0.6s
zstandard                                          415.4kB @   4.7kB/s  0.3s
nbconvert-pandoc                                     7.5kB @  84.0 B/s  0.1s
jupyter_core                                        94.7kB @   1.1kB/s  0.6s
libxcrypt                                          100.4kB @   1.1kB/s  0.1s
mistune                                             66.0kB @ 736.0 B/s  0.2s
pyparsing                                           81.3kB @ 905.0 B/s  0.3s
psutil                                             505.5kB @   5.6kB/s  0.6s
notebook-shim                                       15.0kB @ 165.0 B/s  0.1s
webencodings                                        11.9kB @ 131.0 B/s  0.1s
brotlipy                                           319.5kB @   3.5kB/s  1.0s
pexpect                                             47.7kB @ 525.0 B/s  0.2s
nbclassic                                           14.7kB @ 161.0 B/s  0.1s
backports                                            3.6kB @  39.0 B/s  0.1s
cvxpy                                              126.0kB @   1.4kB/s  0.2s
natsort                                             36.4kB @ 398.0 B/s  0.2s
xarray                                             720.9kB @   7.8kB/s  1.1s
jsonpointer                                         18.4kB @ 198.0 B/s  0.1s
sqlite                                             836.4kB @   8.9kB/s  1.5s
wcwidth                                             34.1kB @ 361.0 B/s  0.1s
pydantic-core                                        1.6MB @  17.0kB/s  3.7s
matplotlib-base                                      7.9MB @  82.2kB/s 11.1s
pandas                                              15.7MB @ 154.6kB/s 22.8s
python                                              30.8MB @ 294.7kB/s 42.4s
missing key https://conda.anaconda.org/conda-forge/noarch in channels: {'https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/linux-64': {'platform': 'linux-64', 'url': 'https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/linux-64', 'channel': conda-forge[linux-64,noarch], 'needs_finalising': True}, 'https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/noarch': {'platform': 'noarch', 'url': 'https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/noarch', 'channel': conda-forge[linux-64,noarch], 'needs_finalising': True}}

# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<

    Traceback (most recent call last):
      File "/home/zhyue/mambaforge/lib/python3.9/site-packages/conda/exception_handler.py", line 17, in __call__
        return func(*args, **kwargs)
      File "/home/zhyue/mambaforge/lib/python3.9/site-packages/mamba/mamba.py", line 959, in exception_converter
        raise e
      File "/home/zhyue/mambaforge/lib/python3.9/site-packages/mamba/mamba.py", line 952, in exception_converter
        exit_code = _wrapped_main(*args, **kwargs)
      File "/home/zhyue/mambaforge/lib/python3.9/site-packages/mamba/mamba.py", line 898, in _wrapped_main
        result = do_call(parsed_args, p)
      File "/home/zhyue/mambaforge/lib/python3.9/site-packages/mamba/mamba.py", line 769, in do_call
        exit_code = update(args, parser)
      File "/home/zhyue/mambaforge/lib/python3.9/site-packages/mamba/mamba.py", line 618, in update
        return install(args, parser, "update")
      File "/home/zhyue/mambaforge/lib/python3.9/site-packages/mamba/mamba.py", line 560, in install
        conda_transaction = to_txn(
      File "/home/zhyue/mambaforge/lib/python3.9/site-packages/mamba/utils.py", line 447, in to_txn
        final_precs = compute_final_precs(
      File "/home/zhyue/mambaforge/lib/python3.9/site-packages/mamba/utils.py", line 393, in compute_final_precs
        raise ValueError("missing key {} in channels: {}".format(key, lookup_dict))
    ValueError: missing key https://conda.anaconda.org/conda-forge/noarch in channels: {'https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/linux-64': {'platform': 'linux-64', 'url': 'https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/linux-64', 'channel': conda-forge[linux-64,noarch], 'needs_finalising': True}, 'https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/noarch': {'platform': 'noarch', 'url': 'https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/noarch', 'channel': conda-forge[linux-64,noarch], 'needs_finalising': True}}

`$ /home/zhyue/mambaforge/bin/mamba upgrade python=3.11 -c conda-forge`

  environment variables:
     CAML_LD_LIBRARY_PATH=/home/zhyue/.opam/default/lib/stublibs:/home/zhyue/.opam/default/lib/o
                          caml/stublibs:/home/zhyue/.opam/default/lib/ocaml
                 CIO_TEST=<not set>
        CONDA_DEFAULT_ENV=base
                CONDA_EXE=/home/zhyue/mambaforge/bin/conda
CONDA_MKL_INTERFACE_LAYER_BACKUP=
             CONDA_PREFIX=/home/zhyue/mambaforge
    CONDA_PROMPT_MODIFIER=(base)
   CONDA_PYTHONBREAKPOINT=
         CONDA_PYTHON_EXE=/home/zhyue/mambaforge/bin/python
               CONDA_ROOT=/home/zhyue/mambaforge
              CONDA_SHLVL=1
           CURL_CA_BUNDLE=<not set>
               LD_PRELOAD=<not set>
                  MANPATH=:/home/zhyue/.opam/default/man
      OCAML_TOPLEVEL_PATH=/home/zhyue/.opam/default/lib/toplevel
                     PATH=/home/zhyue/.opam/default/bin:/home/zhyue/mambaforge/bin:/usr/local/bi
                          n:/usr/bin:/bin:/usr/local/games:/usr/games
         PYTHONBREAKPOINT=ipdb.set_trace
               PYTHONPATH=:/home/zhyue:/home/zhyue
       REQUESTS_CA_BUNDLE=<not set>
            SSL_CERT_FILE=<not set>
WEBAUTHN_PROXY_CONFIGPATH=/home/zhyue/.config/webauthn_proxy

     active environment : base
    active env location : /home/zhyue/mambaforge
            shell level : 1
       user config file : /home/zhyue/.condarc
 populated config files : /home/zhyue/mambaforge/.condarc
                          /home/zhyue/.condarc
          conda version : 23.11.0
    conda-build version : not installed
         python version : 3.9.13.final.0
                 solver : libmamba (default)
       virtual packages : __archspec=1=zen2
                          __conda=23.11.0=0
                          __cuda=12.0=0
                          __glibc=2.31=0
                          __linux=6.0.0=0
                          __unix=0=0
       base environment : /home/zhyue/mambaforge  (writable)
      conda av data dir : /home/zhyue/mambaforge/etc/conda
  conda av metadata url : None
           channel URLs : https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/linux-64
                          https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/noarch
          package cache : /home/zhyue/mambaforge/pkgs
                          /home/zhyue/.conda/pkgs
       envs directories : /home/zhyue/mambaforge/envs
                          /home/zhyue/.conda/envs
               platform : linux-64
             user-agent : conda/23.11.0 requests/2.31.0 CPython/3.9.13 Linux/6.0.0-0.deb11.6-amd64 debian/11.6 glibc/2.31 solver/libmamba conda-libmamba-solver/23.12.0 libmambapy/1.5.6
                UID:GID : 1000:1000
             netrc file : None
           offline mode : False

An unexpected error has occurred. Conda has prepared the above report.
If you suspect this error is being caused by a malfunctioning plugin,
consider using the --no-plugins option to turn off plugins.

Example: conda --no-plugins install <package>

Alternatively, you can set the CONDA_NO_PLUGINS environment variable on
the command line to run the command without plugins enabled.

Example: CONDA_NO_PLUGINS=true conda install <package>

After that, I rolled back the mamba version from 1.5.6 to 1.2.0, and this upgrade was successfully completed. Maybe this is a bug introduced in newer versions.

mamba info / micromamba info

mamba version : 1.5.6
     active environment : base
    active env location : /home/zhyue/mambaforge
            shell level : 1
       user config file : /home/zhyue/.condarc
 populated config files : /home/zhyue/mambaforge/.condarc
                          /home/zhyue/.condarc
          conda version : 23.11.0
    conda-build version : not installed
         python version : 3.11.7.final.0
                 solver : libmamba (default)
       virtual packages : __archspec=1=zen2
                          __conda=23.11.0=0
                          __cuda=12.0=0
                          __glibc=2.31=0
                          __linux=6.0.0=0
                          __unix=0=0
       base environment : /home/zhyue/mambaforge  (writable)
      conda av data dir : /home/zhyue/mambaforge/etc/conda
  conda av metadata url : None
           channel URLs : https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/linux-64
                          https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/noarch
          package cache : /home/zhyue/mambaforge/pkgs
                          /home/zhyue/.conda/pkgs
       envs directories : /home/zhyue/mambaforge/envs
                          /home/zhyue/.conda/envs
               platform : linux-64
             user-agent : conda/23.11.0 requests/2.31.0 CPython/3.11.7 Linux/6.0.0-0.deb11.6-amd64 debian/11.6 glibc/2.31 solver/libmamba conda-libmamba-solver/24.1.0 libmambapy/1.5.6
                UID:GID : 1000:1000
             netrc file : None
           offline mode : False

Logs

too long

environment.yml

No response

~/.condarc

channels:
  - conda-forge
show_channel_urls: true
channel_alias: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
custom_channels:
  nvidia: https://conda.anaconda.org
  pyg: https://conda.anaconda.org
Choumingzhao commented 7 months ago

I got a dirty workaround. Modify follow line:

      File "/home/zhyue/mambaforge/lib/python3.9/site-packages/mamba/utils.py", line 393, in compute_final_precs
        raise ValueError("missing key {} in channels: {}".format(key, lookup_dict))

Change the raise statement to continue or pass. Run you command again. Your python should be upgraded as expected.

P.S. You don't need to change it back. After successful upgrade, this file will no longer exist.

flyer5200 commented 5 months ago

please use my ~/.condarc

show_channel_urls: true
always_yes: false
channels:
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
  - conda-forge
channel_priority: disabled

mamba upgrade python -y success!