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

UnavailableInvalidChannel: HTTP 404 UNAVAILABLE OR INVALID for channel conda-pkgs <file:///tmp/conda-pkgs> #262

Closed
2 tasks done
ehxan139 opened this issue Aug 17, 2023 · 6 comments · Fixed by #274
Closed
2 tasks done
Labels
locked [bot] locked due to inactivity type::bug describes erroneous operation, use severity::* to classify the type

Comments

@ehxan139
Copy link

Checklist

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

What happened?

I tried installing a random package with classic solver and it installed without any issues.

(base) jupyter@dam-dev-notebook:~$ conda install -n base conda-libmamba-solver
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /opt/conda

  added / updated specs:
    - conda-libmamba-solver


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    c-ares-1.19.1              |       hd590300_0         111 KB  conda-forge
    conda-libmamba-solver-23.7.0|     pyhd8ed1ab_0          41 KB  conda-forge
    fmt-9.1.0                  |       h924138e_0         185 KB  conda-forge
    keyutils-1.6.1             |       h166bdaf_0         115 KB  conda-forge
    krb5-1.21.2                |       h659d440_0         1.3 MB  conda-forge
    libarchive-3.6.2           |       h039dbb9_1         824 KB  conda-forge
    libcurl-8.2.1              |       hca28451_0         364 KB  conda-forge
    libedit-3.1.20191231       |       he28a2e2_2         121 KB  conda-forge
    libev-4.33                 |       h516909a_1         104 KB  conda-forge
    libmamba-1.4.9             |       h658169a_0         1.5 MB  conda-forge
    libmambapy-1.4.9           |  py310h8aae740_0         284 KB  conda-forge
    libnghttp2-1.52.0          |       h61bc06f_0         608 KB  conda-forge
    libsolv-0.7.24             |       hfc55251_1         456 KB  conda-forge
    libssh2-1.11.0             |       h0841786_0         265 KB  conda-forge
    lz4-c-1.9.4                |       hcb278e6_0         140 KB  conda-forge
    lzo-2.10                   |    h516909a_1000         314 KB  conda-forge
    pybind11-abi-4             |       hd8ed1ab_3          10 KB  conda-forge
    reproc-14.2.4              |       h0b41bf4_0          30 KB  conda-forge
    reproc-cpp-14.2.4          |       hcb278e6_0          21 KB  conda-forge
    yaml-cpp-0.7.0             |       h27087fc_2         215 KB  conda-forge
    ------------------------------------------------------------
                                           Total:         6.9 MB

The following NEW packages will be INSTALLED:

  c-ares             conda-forge/linux-64::c-ares-1.19.1-hd590300_0 
  conda-libmamba-so~ conda-forge/noarch::conda-libmamba-solver-23.7.0-pyhd8ed1ab_0 
  fmt                conda-forge/linux-64::fmt-9.1.0-h924138e_0 
  keyutils           conda-forge/linux-64::keyutils-1.6.1-h166bdaf_0 
  krb5               conda-forge/linux-64::krb5-1.21.2-h659d440_0 
  libarchive         conda-forge/linux-64::libarchive-3.6.2-h039dbb9_1 
  libcurl            conda-forge/linux-64::libcurl-8.2.1-hca28451_0 
  libedit            conda-forge/linux-64::libedit-3.1.20191231-he28a2e2_2 
  libev              conda-forge/linux-64::libev-4.33-h516909a_1 
  libmamba           conda-forge/linux-64::libmamba-1.4.9-h658169a_0 
  libmambapy         conda-forge/linux-64::libmambapy-1.4.9-py310h8aae740_0 
  libnghttp2         conda-forge/linux-64::libnghttp2-1.52.0-h61bc06f_0 
  libsolv            conda-forge/linux-64::libsolv-0.7.24-hfc55251_1 
  libssh2            conda-forge/linux-64::libssh2-1.11.0-h0841786_0 
  lz4-c              conda-forge/linux-64::lz4-c-1.9.4-hcb278e6_0 
  lzo                conda-forge/linux-64::lzo-2.10-h516909a_1000 
  pybind11-abi       conda-forge/noarch::pybind11-abi-4-hd8ed1ab_3 
  reproc             conda-forge/linux-64::reproc-14.2.4-h0b41bf4_0 
  reproc-cpp         conda-forge/linux-64::reproc-cpp-14.2.4-hcb278e6_0 
  yaml-cpp           conda-forge/linux-64::yaml-cpp-0.7.0-h27087fc_2 


Proceed ([y]/n)? y


Downloading and Extracting Packages
                                                                                                                                                                                                       
Preparing transaction: done                                                                                                                                                                            
Verifying transaction: done                                                                                                                                                                            
Executing transaction: done 

However, when I changed my solver to libmamba and tried the same command again then I am getting following errors,

(base) jupyter@dam-dev-notebook:~$ conda config --set solver libmamba                                                                                                                                  
(base) jupyter@dam-dev-notebook:~$ conda install -c conda-forge jupyter_contrib_nbextensions                                                                                                           
Channels:                                                                                                                                                                                              
 - conda-forge                                                                                                                                                                                         
 - defaults                                                                                                                                                                                            
 - file:///tmp/conda-pkgs                                                                                                                                                                              
Platform: linux-64                                                                                                                                                                                     
Collecting package metadata (repodata.json): failed                                                                                                                                                    
                                                                                                                                                                                                       
UnavailableInvalidChannel: HTTP 404 UNAVAILABLE OR INVALID for channel conda-pkgs <file:///tmp/conda-pkgs>                                                                                             
                                                                                                                                                                                                       
The channel is not accessible or is invalid.                                                                                                                                                           
                                                                                                                                                                                                       
You will need to adjust your conda configuration to proceed.                                                                                                                                           
Use `conda config --show channels` to view your configuration's current state,                                                                                                                         
and use `conda config --show-sources` to view config file locations.                                                                                                                                   

As of conda 4.3, a valid channel must contain a `noarch/repodata.json` and
associated `noarch/repodata.json.bz2` file, even if `noarch/repodata.json` is
empty. Use `conda index /tmp/conda-pkgs`, or create `noarch/repodata.json`
and associated `noarch/repodata.json.bz2`.


(base) jupyter@dam-dev-notebook:~$ conda config --set solver classic
(base) jupyter@dam-dev-notebook:~$ conda install -c conda-forge jupyter_contrib_nbextensions
Collecting package metadata (current_repodata.json): done
Solving environment: done

# All requested packages already installed.

Can you help me understand and resolve this issue please? Also, when I run the command conda config --show-sources with libmamba solver, then I get following ouput,

(base) jupyter@dam-dev-notebook:~$ conda config --set solver libmamba
(base) jupyter@dam-dev-notebook:~$ conda config --show-sources
==> /opt/conda/.condarc <==
channels:
  - conda-forge
  - defaults

==> /home/jupyter/.condarc <==
channels:
  - conda-forge
  - defaults
solver: libmamba

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

As you can see there is no sources mentioned here other than the usual "conda-forge" and "defaults. However, when I try to install any package I get following error message about an additional channel source "file:///tmp/conda-pkgs".

(base) jupyter@dam-dev-notebook:~$ conda install -c conda-forge jupyter_contrib_nbextensions
Channels:
 - conda-forge
 - defaults
 - file:///tmp/conda-pkgs
Platform: linux-64
Collecting package metadata (repodata.json): failed

UnavailableInvalidChannel: HTTP 404 UNAVAILABLE OR INVALID for channel conda-pkgs <file:///tmp/conda-pkgs>

The channel is not accessible or is invalid.

You will need to adjust your conda configuration to proceed.
Use `conda config --show channels` to view your configuration's current state,
and use `conda config --show-sources` to view config file locations.

As of conda 4.3, a valid channel must contain a `noarch/repodata.json` and
associated `noarch/repodata.json.bz2` file, even if `noarch/repodata.json` is
empty. Use `conda index /tmp/conda-pkgs`, or create `noarch/repodata.json`
and associated `noarch/repodata.json.bz2`.

I do not understand that where "file:///tmp/conda-pkgs" is coming and showing in the available channel sources. Apparently error is coming from this file. Can you please look into this?

Conda Info

active environment : base
    active env location : /opt/conda
            shell level : 1
       user config file : /home/jupyter/.condarc
 populated config files : /opt/conda/.condarc
                          /home/jupyter/.condarc
          conda version : 23.7.2
    conda-build version : not installed
         python version : 3.10.12.final.0
       virtual packages : __archspec=1=x86_64
                          __glibc=2.31=0
                          __linux=5.10.0=0
                          __unix=0=0
       base environment : /opt/conda  (writable)
      conda av data dir : /opt/conda/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://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 : /opt/conda/pkgs
                          /home/jupyter/.conda/pkgs
       envs directories : /opt/conda/envs
                          /home/jupyter/.conda/envs
               platform : linux-64
             user-agent : conda/23.7.2 requests/2.31.0 CPython/3.10.12 Linux/5.10.0-23-cloud-amd64 debian/11 glibc/2.31
                UID:GID : 1000:1001
             netrc file : None
           offline mode : False

Conda Config

(base) jupyter@dam-dev-notebook:~$ conda config --show-sources
==> /opt/conda/.condarc <==
channels:
  - conda-forge
  - defaults

==> /home/jupyter/.condarc <==
channels:
  - conda-forge
  - defaults
solver: classic

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

(base) jupyter@dam-dev-notebook:~$

Conda list

(base) jupyter@dam-dev-notebook:~$ conda list --show-channel-urls
# packages in environment at /opt/conda:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                       2_gnu    conda-forge
absl-py                   1.4.0                    pypi_0    pypi
aiohttp                   3.8.5                    pypi_0    pypi
aiohttp-cors              0.7.0                    pypi_0    pypi
aiorwlock                 1.3.0                    pypi_0    pypi
aiosignal                 1.3.1                    pypi_0    pypi
ansiwrap                  0.8.4                    pypi_0    pypi
anyio                     3.7.1              pyhd8ed1ab_0    conda-forge
argon2-cffi               21.3.0             pyhd8ed1ab_0    conda-forge
argon2-cffi-bindings      21.2.0          py310h5764c6d_3    conda-forge
arrow                     1.2.3              pyhd8ed1ab_0    conda-forge
asttokens                 2.2.1              pyhd8ed1ab_0    conda-forge
async-lru                 2.0.4              pyhd8ed1ab_0    conda-forge
async-timeout             4.0.2                    pypi_0    pypi
attrs                     23.1.0             pyh71513ae_1    conda-forge
babel                     2.12.1             pyhd8ed1ab_1    conda-forge
backcall                  0.2.0              pyh9f0ad1d_0    conda-forge
backoff                   2.2.1                    pypi_0    pypi
backports                 1.0                pyhd8ed1ab_3    conda-forge
backports.functools_lru_cache 1.6.5              pyhd8ed1ab_0    conda-forge
beatrix-jupyterlab        2023.84.194007           pypi_0    pypi
beautifulsoup4            4.12.2             pyha770c72_0    conda-forge
bleach                    6.0.0              pyhd8ed1ab_0    conda-forge
blessed                   1.20.0                   pypi_0    pypi
boltons                   23.0.0             pyhd8ed1ab_0    conda-forge
brotli-python             1.0.9           py310hd8f1fbe_9    conda-forge
bzip2                     1.0.8                h7f98852_4    conda-forge
c-ares                    1.19.1               hd590300_0    conda-forge
ca-certificates           2023.7.22            hbcca054_0    conda-forge
cached-property           1.5.2                hd8ed1ab_1    conda-forge
cached_property           1.5.2              pyha770c72_1    conda-forge
cachetools                5.3.1                    pypi_0    pypi
certifi                   2023.7.22          pyhd8ed1ab_0    conda-forge
cffi                      1.15.1          py310h255011f_3    conda-forge
charset-normalizer        3.2.0              pyhd8ed1ab_0    conda-forge
click                     8.1.6                    pypi_0    pypi
cloud-tpu-client          0.10                     pypi_0    pypi
cloudpickle               2.2.1                    pypi_0    pypi
cmake                     3.27.1                   pypi_0    pypi
colorama                  0.4.6              pyhd8ed1ab_0    conda-forge
colorful                  0.5.5                    pypi_0    pypi
comm                      0.1.4              pyhd8ed1ab_0    conda-forge
conda                     23.7.2          py310hff52083_0    conda-forge
conda-libmamba-solver     23.7.0             pyhd8ed1ab_0    conda-forge
conda-package-handling    2.2.0              pyh38be061_0    conda-forge
conda-package-streaming   0.9.0              pyhd8ed1ab_0    conda-forge
contourpy                 1.1.0                    pypi_0    pypi
cryptography              41.0.3          py310h75e40e8_0    conda-forge
cycler                    0.11.0                   pypi_0    pypi
cython                    3.0.0                    pypi_0    pypi
dacite                    1.8.1                    pypi_0    pypi
db-dtypes                 1.1.1                    pypi_0    pypi
debugpy                   1.6.7                    pypi_0    pypi
decorator                 5.1.1              pyhd8ed1ab_0    conda-forge
defusedxml                0.7.1              pyhd8ed1ab_0    conda-forge
deprecated                1.2.14                   pypi_0    pypi
distlib                   0.3.7                    pypi_0    pypi
dlenv-pytorch-2-0-gpu     1.0.20230807    py310hd036b51_0    file:///tmp/conda-pkgs
dm-tree                   0.1.8                    pypi_0    pypi
docker                    6.1.3                    pypi_0    pypi
docstring-parser          0.15                     pypi_0    pypi
entrypoints               0.4                pyhd8ed1ab_0    conda-forge
exceptiongroup            1.1.2              pyhd8ed1ab_0    conda-forge
executing                 1.2.0              pyhd8ed1ab_0    conda-forge
fastapi                   0.101.0                  pypi_0    pypi
filelock                  3.12.2                   pypi_0    pypi
flit-core                 3.9.0              pyhd8ed1ab_0    conda-forge
fmt                       9.1.0                h924138e_0    conda-forge
fonttools                 4.42.0                   pypi_0    pypi
fqdn                      1.5.1              pyhd8ed1ab_0    conda-forge
frozenlist                1.4.0                    pypi_0    pypi
fsspec                    2023.6.0                 pypi_0    pypi
gcsfs                     2023.6.0                 pypi_0    pypi
gitdb                     4.0.10                   pypi_0    pypi
gitpython                 3.1.32                   pypi_0    pypi
gmp                       6.2.1                h58526e2_0    conda-forge
google-api-core           1.34.0                   pypi_0    pypi
google-api-python-client  1.8.0                    pypi_0    pypi
google-auth               2.22.0                   pypi_0    pypi
google-auth-httplib2      0.1.0                    pypi_0    pypi
google-auth-oauthlib      1.0.0                    pypi_0    pypi
google-cloud-aiplatform   1.29.0                   pypi_0    pypi
google-cloud-artifact-registry 1.8.3                    pypi_0    pypi
google-cloud-bigquery     3.11.4                   pypi_0    pypi
google-cloud-bigquery-storage 2.22.0                   pypi_0    pypi
google-cloud-core         2.3.3                    pypi_0    pypi
google-cloud-datastore    1.15.5                   pypi_0    pypi
google-cloud-language     2.10.1                   pypi_0    pypi
google-cloud-monitoring   2.15.1                   pypi_0    pypi
google-cloud-resource-manager 1.10.3                   pypi_0    pypi
google-cloud-storage      2.10.0                   pypi_0    pypi
google-crc32c             1.5.0                    pypi_0    pypi
google-resumable-media    2.5.0                    pypi_0    pypi
googleapis-common-protos  1.60.0                   pypi_0    pypi
gpustat                   1.0.0                    pypi_0    pypi
greenlet                  2.0.2                    pypi_0    pypi
grpc-google-iam-v1        0.12.6                   pypi_0    pypi
grpcio                    1.56.2                   pypi_0    pypi
grpcio-status             1.48.2                   pypi_0    pypi
gymnasium                 0.26.3                   pypi_0    pypi
gymnasium-notices         0.0.1                    pypi_0    pypi
h11                       0.14.0                   pypi_0    pypi
htmlmin                   0.1.12                   pypi_0    pypi
httplib2                  0.22.0                   pypi_0    pypi
icu                       72.1                 hcb278e6_0    conda-forge
idna                      3.4                pyhd8ed1ab_0    conda-forge
imagehash                 4.3.1                    pypi_0    pypi
imageio                   2.31.1                   pypi_0    pypi
importlib-metadata        6.8.0              pyha770c72_0    conda-forge
importlib_metadata        6.8.0                hd8ed1ab_0    conda-forge
importlib_resources       6.0.1              pyhd8ed1ab_0    conda-forge
ipykernel                 6.25.1             pyh71e2992_0    conda-forge
ipython                   8.14.0             pyh41d4057_0    conda-forge
ipython-genutils          0.2.0                    pypi_0    pypi
ipython-sql               0.5.0                    pypi_0    pypi
ipython_genutils          0.2.0                      py_1    conda-forge
ipywidgets                8.1.0                    pypi_0    pypi
isoduration               20.11.0            pyhd8ed1ab_0    conda-forge
jaraco-classes            3.3.0                    pypi_0    pypi
jedi                      0.19.0             pyhd8ed1ab_0    conda-forge
jeepney                   0.8.0                    pypi_0    pypi
jinja2                    3.1.2              pyhd8ed1ab_1    conda-forge
joblib                    1.3.1                    pypi_0    pypi
json5                     0.9.14             pyhd8ed1ab_0    conda-forge
jsonpatch                 1.32               pyhd8ed1ab_0    conda-forge
jsonpointer               2.0                        py_0    conda-forge
jsonschema                4.19.0             pyhd8ed1ab_0    conda-forge
jsonschema-specifications 2023.7.1           pyhd8ed1ab_0    conda-forge
jsonschema-with-format-nongpl 4.19.0             pyhd8ed1ab_0    conda-forge
jupyter-client            7.4.9                    pypi_0    pypi
jupyter-http-over-ws      0.0.8                    pypi_0    pypi
jupyter-lsp               2.2.0              pyhd8ed1ab_0    conda-forge
jupyter-server            1.24.0                   pypi_0    pypi
jupyter-server-mathjax    0.2.6                    pypi_0    pypi
jupyter-server-proxy      4.0.0                    pypi_0    pypi
jupyter_client            8.3.0              pyhd8ed1ab_0    conda-forge
jupyter_contrib_core      0.4.0              pyhd8ed1ab_0    conda-forge
jupyter_contrib_nbextensions 0.7.0              pyhd8ed1ab_0    conda-forge
jupyter_core              5.3.1           py310hff52083_0    conda-forge
jupyter_events            0.7.0              pyhd8ed1ab_1    conda-forge
jupyter_highlight_selected_word 0.2.0           py310hff52083_1005    conda-forge
jupyter_latex_envs        1.4.6           pyhd8ed1ab_1002    conda-forge
jupyter_nbextensions_configurator 0.6.1              pyhd8ed1ab_0    conda-forge
jupyter_server            2.7.0              pyhd8ed1ab_0    conda-forge
jupyter_server_terminals  0.4.4              pyhd8ed1ab_1    conda-forge
jupyterlab                3.4.8                    pypi_0    pypi
jupyterlab-git            0.41.0                   pypi_0    pypi
jupyterlab-widgets        3.0.8                    pypi_0    pypi
jupyterlab_pygments       0.2.2              pyhd8ed1ab_0    conda-forge
jupyterlab_server         2.24.0             pyhd8ed1ab_0    conda-forge
jupytext                  1.15.0                   pypi_0    pypi
keyring                   24.2.0                   pypi_0    pypi
keyrings-google-artifactregistry-auth 1.1.2                    pypi_0    pypi
keyutils                  1.6.1                h166bdaf_0    conda-forge
kfp                       2.0.1                    pypi_0    pypi
kfp-pipeline-spec         0.2.2                    pypi_0    pypi
kfp-server-api            2.0.0                    pypi_0    pypi
kiwisolver                1.4.4                    pypi_0    pypi
krb5                      1.21.2               h659d440_0    conda-forge
kubernetes                26.1.0                   pypi_0    pypi
lazy-loader               0.3                      pypi_0    pypi
ld_impl_linux-64          2.40                 h41732ed_0    conda-forge
libarchive                3.6.2                h039dbb9_1    conda-forge
libcurl                   8.2.1                hca28451_0    conda-forge
libedit                   3.1.20191231         he28a2e2_2    conda-forge
libev                     4.33                 h516909a_1    conda-forge
libffi                    3.4.2                h7f98852_5    conda-forge
libgcc-ng                 13.1.0               he5830b7_0    conda-forge
libgomp                   13.1.0               he5830b7_0    conda-forge
libiconv                  1.17                 h166bdaf_0    conda-forge
libmamba                  1.4.9                h658169a_0    conda-forge
libmambapy                1.4.9           py310h8aae740_0    conda-forge
libnghttp2                1.52.0               h61bc06f_0    conda-forge
libnsl                    2.0.0                h7f98852_0    conda-forge
libsodium                 1.0.18               h36c2ea0_1    conda-forge
libsolv                   0.7.24               hfc55251_1    conda-forge
libsqlite                 3.42.0               h2797004_0    conda-forge
libssh2                   1.11.0               h0841786_0    conda-forge
libstdcxx-ng              13.1.0               hfd8a6a1_0    conda-forge
libuuid                   2.38.1               h0b41bf4_0    conda-forge
libuv                     1.44.2               hd590300_1    conda-forge
libxml2                   2.11.5               h0d562d8_0    conda-forge
libxslt                   1.1.37               h0054252_1    conda-forge
libzlib                   1.2.13               hd590300_5    conda-forge
lit                       16.0.6                   pypi_0    pypi
llvmlite                  0.40.1                   pypi_0    pypi
lxml                      4.9.3           py310h9b7343a_0    conda-forge
lz4                       4.3.2                    pypi_0    pypi
lz4-c                     1.9.4                hcb278e6_0    conda-forge
lzo                       2.10              h516909a_1000    conda-forge
markdown-it-py            3.0.0                    pypi_0    pypi
markupsafe                2.1.3           py310h2372a71_0    conda-forge
matplotlib                3.7.2                    pypi_0    pypi
matplotlib-inline         0.1.6              pyhd8ed1ab_0    conda-forge
mdit-py-plugins           0.4.0                    pypi_0    pypi
mdurl                     0.1.2                    pypi_0    pypi
mistune                   3.0.1                    pypi_0    pypi
more-itertools            10.1.0                   pypi_0    pypi
mpmath                    1.3.0                    pypi_0    pypi
msgpack                   1.0.5                    pypi_0    pypi
multidict                 6.0.4                    pypi_0    pypi
multimethod               1.9.1                    pypi_0    pypi
nb_conda                  2.2.1                    unix_6    conda-forge
nb_conda_kernels          2.3.1           py310hff52083_2    conda-forge
nbclassic                 1.0.0                    pypi_0    pypi
nbclient                  0.8.0              pyhd8ed1ab_0    conda-forge
nbconvert                 7.7.4              pyhd8ed1ab_0    conda-forge
nbconvert-core            7.7.4              pyhd8ed1ab_0    conda-forge
nbconvert-pandoc          7.7.4              pyhd8ed1ab_0    conda-forge
nbdime                    3.2.0                    pypi_0    pypi
nbformat                  5.9.2              pyhd8ed1ab_0    conda-forge
ncurses                   6.4                  hcb278e6_0    conda-forge
nest-asyncio              1.5.7                    pypi_0    pypi
networkx                  3.1                      pypi_0    pypi
nodejs                    18.16.1              hf52ce11_0    conda-forge
notebook                  6.5.5                    pypi_0    pypi
notebook-executor         0.2                      pypi_0    pypi
notebook-shim             0.2.3              pyhd8ed1ab_0    conda-forge
numba                     0.57.1                   pypi_0    pypi
numpy                     1.23.5                   pypi_0    pypi
nvidia-ml-py              11.495.46                pypi_0    pypi
oauth2client              4.1.3                    pypi_0    pypi
oauthlib                  3.2.2                    pypi_0    pypi
opencensus                0.11.2                   pypi_0    pypi
opencensus-context        0.1.3                    pypi_0    pypi
openssl                   3.1.2                hd590300_0    conda-forge
opentelemetry-api         1.19.0                   pypi_0    pypi
opentelemetry-exporter-otlp 1.19.0                   pypi_0    pypi
opentelemetry-exporter-otlp-proto-common 1.19.0                   pypi_0    pypi
opentelemetry-exporter-otlp-proto-grpc 1.19.0                   pypi_0    pypi
opentelemetry-exporter-otlp-proto-http 1.19.0                   pypi_0    pypi
opentelemetry-proto       1.19.0                   pypi_0    pypi
opentelemetry-sdk         1.19.0                   pypi_0    pypi
opentelemetry-semantic-conventions 0.40b0                   pypi_0    pypi
overrides                 7.4.0              pyhd8ed1ab_0    conda-forge
packaging                 23.1               pyhd8ed1ab_0    conda-forge
pandas                    2.0.3                    pypi_0    pypi
pandas-profiling          3.6.6                    pypi_0    pypi
pandoc                    3.1.3                h32600fe_0    conda-forge
pandocfilters             1.5.0              pyhd8ed1ab_0    conda-forge
papermill                 2.4.0                    pypi_0    pypi
parso                     0.8.3              pyhd8ed1ab_0    conda-forge
patsy                     0.5.3                    pypi_0    pypi
pexpect                   4.8.0              pyh1a96a4e_2    conda-forge
phik                      0.12.3                   pypi_0    pypi
pickleshare               0.7.5                   py_1003    conda-forge
pillow                    10.0.0                   pypi_0    pypi
pip                       23.2.1             pyhd8ed1ab_0    conda-forge
pkgutil-resolve-name      1.3.10             pyhd8ed1ab_0    conda-forge
platformdirs              3.10.0             pyhd8ed1ab_0    conda-forge
plotly                    5.15.0                   pypi_0    pypi
pluggy                    1.2.0              pyhd8ed1ab_0    conda-forge
prettytable               3.8.0                    pypi_0    pypi
prometheus_client         0.17.1             pyhd8ed1ab_0    conda-forge
prompt-toolkit            3.0.39             pyha770c72_0    conda-forge
prompt_toolkit            3.0.39               hd8ed1ab_0    conda-forge
proto-plus                1.22.3                   pypi_0    pypi
protobuf                  3.20.3                   pypi_0    pypi
psutil                    5.9.3                    pypi_0    pypi
ptyprocess                0.7.0              pyhd3deb0d_0    conda-forge
pure_eval                 0.2.2              pyhd8ed1ab_0    conda-forge
py-spy                    0.3.14                   pypi_0    pypi
pyarrow                   12.0.1                   pypi_0    pypi
pyasn1                    0.5.0                    pypi_0    pypi
pyasn1-modules            0.3.0                    pypi_0    pypi
pybind11-abi              4                    hd8ed1ab_3    conda-forge
pycosat                   0.6.4           py310h5764c6d_1    conda-forge
pycparser                 2.21               pyhd8ed1ab_0    conda-forge
pydantic                  1.10.12                  pypi_0    pypi
pygments                  2.16.1             pyhd8ed1ab_0    conda-forge
pyjwt                     2.8.0                    pypi_0    pypi
pyopenssl                 23.2.0             pyhd8ed1ab_1    conda-forge
pyparsing                 3.0.9                    pypi_0    pypi
pysocks                   1.7.1              pyha2e5f31_6    conda-forge
python                    3.10.12         hd12c33a_0_cpython    conda-forge
python-dateutil           2.8.2              pyhd8ed1ab_0    conda-forge
python-fastjsonschema     2.18.0             pyhd8ed1ab_0    conda-forge
python-json-logger        2.0.7              pyhd8ed1ab_0    conda-forge
python_abi                3.10                    3_cp310    conda-forge
pytz                      2023.3             pyhd8ed1ab_0    conda-forge
pywavelets                1.4.1                    pypi_0    pypi
pyyaml                    6.0.1                    pypi_0    pypi
pyzmq                     24.0.1                   pypi_0    pypi
ray                       2.6.2                    pypi_0    pypi
ray-cpp                   2.6.2                    pypi_0    pypi
readline                  8.2                  h8228510_1    conda-forge
referencing               0.30.2             pyhd8ed1ab_0    conda-forge
reproc                    14.2.4               h0b41bf4_0    conda-forge
reproc-cpp                14.2.4               hcb278e6_0    conda-forge
requests                  2.31.0             pyhd8ed1ab_0    conda-forge
requests-oauthlib         1.3.1                    pypi_0    pypi
requests-toolbelt         0.10.1                   pypi_0    pypi
retrying                  1.3.4                    pypi_0    pypi
rfc3339-validator         0.1.4              pyhd8ed1ab_0    conda-forge
rfc3986-validator         0.1.1              pyh9f0ad1d_0    conda-forge
rich                      13.5.2                   pypi_0    pypi
rpds-py                   0.9.2           py310hcb5633a_0    conda-forge
ruamel.yaml               0.17.32         py310h2372a71_0    conda-forge
ruamel.yaml.clib          0.2.7           py310h1fa729e_1    conda-forge
scikit-image              0.21.0                   pypi_0    pypi
scikit-learn              1.3.0                    pypi_0    pypi
scipy                     1.11.1                   pypi_0    pypi
seaborn                   0.12.2                   pypi_0    pypi
secretstorage             3.3.3                    pypi_0    pypi
send2trash                1.8.2              pyh41d4057_0    conda-forge
setuptools                68.0.0             pyhd8ed1ab_0    conda-forge
shapely                   1.8.5.post1              pypi_0    pypi
simpervisor               1.0.0                    pypi_0    pypi
six                       1.16.0             pyh6c4a22f_0    conda-forge
smart-open                6.3.0                    pypi_0    pypi
smmap                     5.0.0                    pypi_0    pypi
sniffio                   1.3.0              pyhd8ed1ab_0    conda-forge
soupsieve                 2.4.1                    pypi_0    pypi
sqlalchemy                2.0.19                   pypi_0    pypi
sqlparse                  0.4.4                    pypi_0    pypi
stack_data                0.6.2              pyhd8ed1ab_0    conda-forge
starlette                 0.27.0                   pypi_0    pypi
statsmodels               0.14.0                   pypi_0    pypi
sympy                     1.12                     pypi_0    pypi
tabulate                  0.9.0                    pypi_0    pypi
tangled-up-in-unicode     0.2.0                    pypi_0    pypi
tenacity                  8.2.2                    pypi_0    pypi
tensorboardx              2.6.2                    pypi_0    pypi
terminado                 0.17.1             pyh41d4057_0    conda-forge
textwrap3                 0.9.2                    pypi_0    pypi
threadpoolctl             3.2.0                    pypi_0    pypi
tifffile                  2023.7.18                pypi_0    pypi
tinycss2                  1.2.1              pyhd8ed1ab_0    conda-forge
tk                        8.6.12               h27826a3_0    conda-forge
toml                      0.10.2                   pypi_0    pypi
tomli                     2.0.1              pyhd8ed1ab_0    conda-forge
toolz                     0.12.0             pyhd8ed1ab_0    conda-forge
torch                     2.0.1+cu118              pypi_0    pypi
torch-xla                 2.0                      pypi_0    pypi
torchvision               0.15.2+cu118             pypi_0    pypi
tornado                   6.3.2           py310h2372a71_0    conda-forge
tqdm                      4.65.0             pyhd8ed1ab_1    conda-forge
traitlets                 5.9.0              pyhd8ed1ab_0    conda-forge
triton                    2.0.0                    pypi_0    pypi
typeguard                 2.13.3                   pypi_0    pypi
typer                     0.9.0                    pypi_0    pypi
typing-extensions         4.7.1                hd8ed1ab_0    conda-forge
typing_extensions         4.7.1              pyha770c72_0    conda-forge
typing_utils              0.1.0              pyhd8ed1ab_0    conda-forge
tzdata                    2023.3                   pypi_0    pypi
uri-template              1.3.0              pyhd8ed1ab_0    conda-forge
uritemplate               3.0.1                    pypi_0    pypi
urllib3                   1.26.16                  pypi_0    pypi
uvicorn                   0.23.2                   pypi_0    pypi
virtualenv                20.21.0                  pypi_0    pypi
visions                   0.7.5                    pypi_0    pypi
wcwidth                   0.2.6              pyhd8ed1ab_0    conda-forge
webcolors                 1.13               pyhd8ed1ab_0    conda-forge
webencodings              0.5.1                    pypi_0    pypi
websocket-client          1.6.1              pyhd8ed1ab_0    conda-forge
wheel                     0.41.1             pyhd8ed1ab_0    conda-forge
widgetsnbextension        4.0.8                    pypi_0    pypi
wordcloud                 1.9.2                    pypi_0    pypi
wrapt                     1.15.0                   pypi_0    pypi
xz                        5.2.6                h166bdaf_0    conda-forge
yaml                      0.2.5                h7f98852_2    conda-forge
yaml-cpp                  0.7.0                h27087fc_2    conda-forge
yarl                      1.9.2                    pypi_0    pypi
ydata-profiling           4.4.0                    pypi_0    pypi
zeromq                    4.3.4                h9c3ff4c_1    conda-forge
zipp                      3.16.2             pyhd8ed1ab_0    conda-forge
zlib                      1.2.13               hd590300_5    conda-forge
zstandard                 0.19.0          py310h1275a96_2    conda-forge
zstd                      1.5.2                hfc55251_7    conda-forge

Additional Context

No response

@ehxan139 ehxan139 added the type::bug describes erroneous operation, use severity::* to classify the type label Aug 17, 2023
@ehxan139
Copy link
Author

ehxan139 commented Aug 17, 2023

I believe the problems arise when I followed the installation method mentioned on this blog post

A Faster Solver for Conda: Libmamba

However, while reading the official documentation , I realised that this is not the recommended method and has known issues.

May be it is better if you just remove or update this blog post.

@jezdez jezdez reopened this Aug 17, 2023
@jezdez
Copy link
Member

jezdez commented Aug 17, 2023

Thanks @ehxan139, please note that the mamba CLI documentation you linked is the documentation of the main mamba project, if you would like to continue to use the conda tool and make use of mamba behind the scenes, please follow the getting starting guide of the conda-libmamba-solver project.

I've reopened your issue since it might be a legitimate problem.

@jafraustro
Copy link

I have the same issue. I built an installer with constructor tool, with conda inside. After installation and activation, I have the same problem with conda install --offline (I want to use cache).

I don't have that problem with the classic solver.

@jaimergp
Copy link
Contributor

jaimergp commented Sep 8, 2023

I am assuming you are bundling packages built locally from using local channels in constructor, which you didn't map to an online channel in anaconda.org. As a result, your private packages have a "channel" field that points to that private path, which is of course not available in the target machine.

conda-libmamba-solver adds the channels burnt in the packages to make sure we get the relevant updates from them too. However, in your case, this channel will never be available, so it fails.

We have two options right now:

  • Build your constructor installer using the remap_channels field to "convert" your private channel into a public one. This only makes sense if you are building your own variants of publicly available packages (e.g. python).
  • Export CONDA_LIBMAMBA_SOLVER_NO_CHANNELS_FROM_INSTALLED=1 in your installation configuration (you can have a conda-meta/state file in your installation that sets that environment variable).

That said, I'll add some logic to handle this better (we can check whether the channel exists or not before adding it to the list if it comes from a package and not the user list).

@jaimergp
Copy link
Contributor

jaimergp commented Sep 8, 2023

See #274

@jafraustro
Copy link

Thanks @jaimergp

@jaimergp jaimergp added this to the September 2023 release milestone Sep 15, 2023
@github-actions github-actions bot added the locked [bot] locked due to inactivity label Aug 28, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 28, 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.

4 participants