conda failed to solve environment after using wildcard in package name

Created on 28 Aug 2018  路  3Comments  路  Source: conda/conda

Current Behavior

I recently experienced a conda fail of solving environment after using a wildcard in a package name.

What I did:
conda install dash-*-components
I was hoping that conda can find both dash-core-components and dash-html-componentsbut it only installed one and I was able to install the other one by specifying the whole name of the package.

What problem I am facing now:
After that I haven't been able to conda installanything and always get CondaError. An example error message is pasted below:

(test) Jis-MacBook-Pro-Work:~ ji$ conda install ipython
Solving environment: failed

CondaError: Conda encountered an error with your environment.  Please report an issue
at https://github.com/conda/conda/issues/new.  In your report, please include
the output of 'conda info' and 'conda list' for the active environment, along
with the command you invoked that resulted in this error.
  pkg_name: *
  spec: dash-*-components
  matches_for_spec: 
    - conda-forge::dash-html-components-0.11.0-py_0
    - conda-forge::dash-core-components-0.28.0-py_0

So is there a way to amend this instead of delete my current env and re-create one?

Best,
Ji

Steps to Reproduce

conda create -n test python=3.7.0
conda activate test
conda install dash-*-components
conda install dash-core-components
conda install ipython

Expected Behavior


conda should be able to continue to install new packages into the env.

Environment Information

conda info


active environment : conda-issue
    active env location : /Users/ji/anaconda3/envs/conda-issue
            shell level : 1
       user config file : /Users/ji/.condarc
 populated config files : /Users/ji/.condarc
          conda version : 4.5.11
    conda-build version : 3.13.0
         python version : 3.6.4.final.0
       base environment : /Users/ji/anaconda3  (writable)
           channel URLs : https://repo.anaconda.com/pkgs/main/osx-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/free/osx-64
                          https://repo.anaconda.com/pkgs/free/noarch
                          https://repo.anaconda.com/pkgs/r/osx-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/pro/osx-64
                          https://repo.anaconda.com/pkgs/pro/noarch
                          https://conda.anaconda.org/conda-forge/osx-64
                          https://conda.anaconda.org/conda-forge/noarch
          package cache : /Users/ji/anaconda3/pkgs
                          /Users/ji/.conda/pkgs
       envs directories : /Users/ji/anaconda3/envs
                          /Users/ji/.conda/envs
               platform : osx-64
             user-agent : conda/4.5.11 requests/2.18.4 CPython/3.6.4 Darwin/17.7.0 OSX/10.13.6
                UID:GID : 501:20
             netrc file : None
           offline mode : False

conda config --show-sources


==> /Users/ji/.condarc <==
channels:
  - defaults
  - conda-forge

conda list --show-channel-urls


# packages in environment at /Users/ji/anaconda3/envs/conda-issue:
#
# Name                    Version                   Build  Channel
asn1crypto                0.24.0                   py37_0    defaults
ca-certificates           2018.03.07                    0    defaults
certifi                   2018.8.24                py37_1    defaults
cffi                      1.11.5           py37h6174b99_1    defaults
chardet                   3.0.4                    py37_1    defaults
click                     6.7                      py37_0    defaults
cryptography              2.3.1            py37hdbc3d79_0    defaults
dash                      0.26.3                     py_0    conda-forge
dash-core-components      0.28.0                     py_0    conda-forge
dash-html-components      0.11.0                     py_0    conda-forge
dash-renderer             0.13.2                     py_0    conda-forge
decorator                 4.3.0                    py37_0    defaults
flask                     1.0.2                    py37_1    defaults
flask-compress            1.4.0                      py_0    conda-forge
idna                      2.7                      py37_0    defaults
ipython_genutils          0.2.0                    py37_0    defaults
itsdangerous              0.24                     py37_1    defaults
jinja2                    2.10                     py37_0    defaults
jsonschema                2.6.0                    py37_0    defaults
jupyter_core              4.4.0                    py37_0    defaults
libcxx                    4.0.1                h579ed51_0    defaults
libcxxabi                 4.0.1                hebd6815_0    defaults
libedit                   3.1.20170329         hb402a30_2    defaults
libffi                    3.2.1                h475c297_4    defaults
markupsafe                1.0              py37h1de35cc_1    defaults
nbformat                  4.4.0                    py37_0    defaults
ncurses                   6.1                  h0a44026_0    defaults
openssl                   1.0.2p               h1de35cc_0    defaults
pip                       10.0.1                   py37_0    defaults
plotly                    3.1.1            py37h28b3542_0    defaults
pycparser                 2.18                     py37_1    defaults
pyopenssl                 18.0.0                   py37_0    defaults
pysocks                   1.6.8                    py37_0    defaults
python                    3.7.0                hc167b69_0    defaults
pytz                      2018.5                   py37_0    defaults
readline                  7.0                  hc1231fa_4    defaults
requests                  2.19.1                   py37_0    defaults
retrying                  1.3.3                    py37_2    defaults
setuptools                40.2.0                   py37_0    defaults
six                       1.11.0                   py37_1    defaults
sqlite                    3.24.0               ha441bb4_0    defaults
tk                        8.6.7                h35a86e2_3    defaults
traitlets                 4.3.2                    py37_0    defaults
urllib3                   1.23                     py37_0    defaults
werkzeug                  0.14.1                   py37_0    defaults
wheel                     0.31.1                   py37_0    defaults
xz                        5.2.4                h1de35cc_4    defaults
zlib                      1.2.11               hf3cbc9b_2    defaults

source-community type-enhancement

All 3 comments

Congrats on being the first person I know of to ever try this! Definitely need to have better error messaging here.

Very disappointing here is no answer provided by the team.
If I understand the process correctly:

  1. Find your anaconda installation path (e.g. /anaconda3/)
  2. Open file /anaconda3/conda-meta/history
  3. Find there the line which contains the command with * symbol (e.g. conda install dash-*-components)
  4. Remove the entire block with this command denoted by ==> date <==

@yoursdearboy Thank you very much for the help. It solves my problem.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kalefranz picture kalefranz  路  3Comments

mathoha picture mathoha  路  3Comments

bunop picture bunop  路  3Comments

ItsAnkit picture ItsAnkit  路  3Comments

readmanchiu picture readmanchiu  路  3Comments