regro / conda-metachannel

like a conda-metapackage but for channels!
MIT License
69 stars 4 forks source link

conda search succeeds, install fails #23

Open lebedov opened 5 years ago

lebedov commented 5 years ago

Using conda 4.6.11, I can search for packages:

conda search --override-channels -c https://metachannel.conda-forge.org/conda-forge/python python=3.7.1
WARNING: The conda.compat module is deprecated and will be removed in a future release.
Loading channels: done
# Name                       Version           Build  Channel             
python                         3.7.1   h381d211_1002  conda-forge/python  
python                         3.7.1   h381d211_1003  conda-forge/python  
python                         3.7.1      h5001a0f_0  conda-forge/python  
python                         3.7.1   hd21baee_1000  conda-forge/python  
python                         3.7.1   hd21baee_1001  conda-forge/python

If I create a completely empty environment with conda create -n test, activate it, and then try to install python 3.7.1 in that environment, I observe the following:

conda install --override-channels -c https://metachannel.conda-forge.org/conda-forge/python, python=3.7.1 
WARNING: The conda.compat module is deprecated and will be removed in a future release.
Collecting package metadata: done
Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

  - python=3.7.1 -> libgcc-ng[version='>=7.3.0']
  - python=3.7.1 -> libstdcxx-ng[version='>=7.3.0']
  - python=3.7.1 -> openssl[version='>=1.1.1a,<1.1.2a']
  - python=3.7.1 -> sqlite[version='>=3.26.0,<4.0a0']
  - python=3.7.1 -> tk[version='>=8.6.9,<8.7.0a0']
  - python=3.7.1 -> xz[version='>=5.2.4,<5.3.0a0']
  - python=3.7.1 -> pip

Current channels:

  - https://metachannel.conda-forge.org/conda-forge/python/linux-64
  - https://metachannel.conda-forge.org/conda-forge/python/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

Is this expected? I am on a corporate network, but I seem to recall being able to use metachannel from the same system over the past few weeks.

mariusvniekerk commented 5 years ago

This is actually related to a helpful feature where conda adds in pip as a dep for python dynamically at install time. I've added #24 to support this correctly going forwards

mariusvniekerk commented 5 years ago

@lebedov try against the new one, this should be fixed now

lebedov commented 5 years ago

@mariusvniekerk I'm still observing the same PackagesNotFoundError when I try the aforementioned install command in an empty environment, except that pip is no longer in the list of ostensibly unavailable packages.