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

Conda Deletes All Modules During Update #8842

Closed
cgivre opened this issue Jun 28, 2019 · 50 comments · Fixed by #8911
Closed

Conda Deletes All Modules During Update #8842

cgivre opened this issue Jun 28, 2019 · 50 comments · Fixed by #8911
Labels
¡breaking! used to indicate that the code change will likely require a minor or major version bump locked [bot] locked due to inactivity pending::feedback indicates we are waiting on feedback from the user source::community catch-all for issues filed by community members type::support neither a bug nor feature, is really just a user having questions or difficulty somewhere

Comments

@cgivre
Copy link

cgivre commented Jun 28, 2019

Current Behavior

I attempt to do a conda update --all and it informs me that conda wants to remove nearly every module. This can't be correct.

conda update --all
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /anaconda3


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    libtiff-4.0.10             |    hcb84e12_1001         396 KB
    ------------------------------------------------------------
                                           Total:         396 KB

The following packages will be REMOVED:

  alabaster-0.7.12-py37_0
  anaconda-custom-py37_0
  anaconda-project-0.8.3-py_0
  appscript-1.1.0-py37h1de35cc_0
  astroid-2.2.5-py37_0
  astropy-3.2.1-py37h1de35cc_0
  atomicwrites-1.3.0-py37_1
  babel-2.7.0-py_0
  backports.os-0.1.1-py37_0
  backports.shutil_get_terminal_size-1.0.0-py37_2
  bitarray-0.9.3-py37h1de35cc_0
  bkcharts-0.2-py37_0
  blas-1.0-mkl
  blosc-1.16.3-hd9629dc_0
  bokeh-1.2.0-py37_0
  boto-2.49.0-py37_0
  bottleneck-1.2.1-py37h1d22016_1
  cloudpickle-1.1.1-py_0
  colorama-0.4.1-py37_0
  contextlib2-0.5.5-py37_0
  curl-7.64.1-ha441bb4_0
  cycler-0.10.0-py37_0
  cython-0.29.10-py37h0a44026_0
  cytoolz-0.9.0.1-py37h1de35cc_1
  dask-2.0.0-py_0
  dask-core-2.0.0-py_0
  distributed-2.0.1-py_0
  docutils-0.14-py37_0
  et_xmlfile-1.0.1-py37_0
  fastcache-1.1.0-py37h1de35cc_0
  flask-1.0.3-py37_0
  get_terminal_size-1.0.0-h7520d66_0
  gevent-1.4.0-py37h1de35cc_0
  gmp-6.1.2-hb37e062_1
  gmpy2-2.0.8-py37h6ef4df4_2
  greenlet-0.4.15-py37h1de35cc_0
  h5py-2.9.0-py37h3134771_0
  hdf5-1.10.4-hfa1e0ec_0
  heapdict-1.0.0-py37_2
  html5lib-1.0.1-py37_0
  imageio-2.5.0-py37_0
  imagesize-1.1.0-py37_0
  importlib_metadata-0.17-py37_1
  intel-openmp-2019.4-233
  isort-4.3.20-py37_0
  itsdangerous-1.1.0-py37_0
  jbig-2.1-h4d881f8_0
  jdcal-1.4.1-py_0
  joblib-0.13.2-py37_0
  jupyter-1.0.0-py37_7
  jupyter_console-6.0.0-py37_0
  keyring-18.0.0-py37_0
  kiwisolver-1.1.0-py37h0a44026_0
  krb5-1.16.1-hddcf347_7
  lazy-object-proxy-1.4.1-py37h1de35cc_0
  libcurl-7.64.1-h051b688_0
  libgfortran-3.0.1-h93005f0_2
  libssh2-1.8.2-ha12b0ac_0
  libxslt-1.1.33-h33a18ac_0
  llvm-openmp-4.0.1-hcfea43d_1
  llvmlite-0.29.0-py37h98b8051_0
  locket-0.2.0-py37_1
  lxml-4.3.3-py37hef8c89e_0
  matplotlib-3.1.0-py37h54f8f79_0
  mccabe-0.6.1-py37_1
  mkl-2019.4-233
  mkl-service-2.0.2-py37h1de35cc_0
  mkl_fft-1.0.12-py37h5e564d8_0
  mkl_random-1.0.2-py37h27c97d8_0
  mock-3.0.5-py37_0
  more-itertools-7.0.0-py37_0
  mpc-1.1.0-h6ef4df4_1
  mpfr-4.0.1-h3018a27_3
  mpmath-1.1.0-py37_0
  msgpack-python-0.6.1-py37h04f5b5a_1
  multipledispatch-0.6.0-py37_0
  networkx-2.3-py_0
  nltk-3.4.1-py37_0
  nose-1.3.7-py37_2
  numba-0.44.1-py37h6440ff4_0
  numexpr-2.6.9-py37h7413580_0
  numpy-1.16.4-py37hacdab7b_0
  numpy-base-1.16.4-py37h6575580_0
  numpydoc-0.9.1-py_0
  openpyxl-2.6.2-py_0
  packaging-19.0-py37_0
  pandas-0.24.2-py37h0a44026_0
  partd-0.3.10-py37_1
  path.py-12.0.1-py_0
  pathlib2-2.3.3-py37_0
  patsy-0.5.1-py37_0
  pep8-1.7.1-py37_0
  pluggy-0.12.0-py_0
  ply-3.11-py37_0
  py-1.8.0-py37_0
  pycodestyle-2.5.0-py37_0
  pycrypto-2.6.1-py37h1de35cc_9
  pycurl-7.43.0.2-py37ha12b0ac_0
  pyflakes-2.1.1-py37_0
  pylint-2.3.1-py37_0
  pyodbc-4.0.26-py37h0a44026_0
  pyparsing-2.4.0-py_0
  pytables-3.5.2-py37h5bccee9_1
  pytest-4.6.2-py37_0
  pytest-arraydiff-0.3-py37h39e3cac_0
  pytest-astropy-0.5.0-py37_0
  pytest-doctestplus-0.3.0-py37_0
  pytest-openfiles-0.3.2-py37_0
  pytest-remotedata-0.3.1-py37_0
  pywavelets-1.0.3-py37h1d22016_1
  qtawesome-0.5.7-py37_1
  qtconsole-4.5.1-py_0
  rope-0.14.0-py_0
  scikit-image-0.15.0-py37h0a44026_0
  scikit-learn-0.21.2-py37h27c97d8_0
  scipy-1.2.1-py37h1410ff5_0
  seaborn-0.9.0-py37_0
  simplegeneric-0.8.1-py37_2
  singledispatch-3.4.0.3-py37_0
  snappy-1.1.7-he62c110_3
  snowballstemmer-1.2.1-py37_0
  sortedcollections-1.1.2-py37_0
  sortedcontainers-2.1.0-py37_0
  sphinx-2.1.0-py_0
  sphinxcontrib-1.0-py37_1
  sphinxcontrib-applehelp-1.0.1-py_0
  sphinxcontrib-devhelp-1.0.1-py_0
  sphinxcontrib-htmlhelp-1.0.2-py_0
  sphinxcontrib-jsmath-1.0.1-py_0
  sphinxcontrib-qthelp-1.0.2-py_0
  sphinxcontrib-serializinghtml-1.1.3-py_0
  sphinxcontrib-websupport-1.1.2-py_0
  spyder-3.3.4-py37_0
  spyder-kernels-0.5.0-py37_0
  sqlalchemy-1.3.4-py37h1de35cc_0
  statsmodels-0.9.0-py37h1d22016_0
  sympy-1.4-py37_0
  tblib-1.4.0-py_0
  toolz-0.9.0-py37_0
  unicodecsv-0.14.1-py37_0
  unixodbc-2.3.7-h1de35cc_0
  werkzeug-0.15.4-py_0
  wrapt-1.11.1-py37h1de35cc_0
  wurlitzer-1.0.2-py37_0
  xlrd-1.2.0-py37_0
  xlsxwriter-1.1.8-py_0
  xlwings-0.15.8-py37_0
  xlwt-1.3.0-py37_0
  zict-0.1.4-py37_0
  zipp-0.5.1-py_0

The following packages will be UPDATED:

  libtiff                                 4.0.10-hcb84e12_2 --> 4.0.10-hcb84e12_1001


Proceed ([y]/n)? n


CondaSystemExit: Exiting.

Steps to Reproduce

conda update --all

Expected Behavior

I think conda should update whichever packages need updating.

Environment Information

`conda info`

conda info

     active environment : base
    active env location : /anaconda3
            shell level : 1
       user config file : /Users/cgivre/.condarc
 populated config files :
          conda version : 4.7.5
    conda-build version : 3.18.5
         python version : 3.7.3.final.0
       virtual packages :
       base environment : /anaconda3  (writable)
           channel URLs : https://repo.anaconda.com/pkgs/main/osx-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/osx-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /anaconda3/pkgs
                          /Users/cgivre/.conda/pkgs
       envs directories : /anaconda3/envs
                          /Users/cgivre/.conda/envs
               platform : osx-64
             user-agent : conda/4.7.5 requests/2.22.0 CPython/3.7.3 Darwin/18.6.0 OSX/10.14.5
                UID:GID : 501:20
             netrc file : None
           offline mode : False

`conda config --show-sources`

(no output)

`conda list --show-channel-urls`

conda list --show-channel-urls
# packages in environment at /anaconda3:
#
# Name                    Version                   Build  Channel
_ipyw_jlab_nb_ext_conf    0.1.0                    py37_0    defaults
alabaster                 0.7.12                   py37_0    defaults
anaconda                  custom                   py37_0    defaults
anaconda-client           1.7.2                    py37_0    defaults
anaconda-navigator        1.9.7                    py37_0    defaults
anaconda-project          0.8.3                      py_0    defaults
appnope                   0.1.0                    py37_0    defaults
appscript                 1.1.0            py37h1de35cc_0    defaults
asn1crypto                0.24.0                   py37_0    defaults
astroid                   2.2.5                    py37_0    defaults
astropy                   3.2.1            py37h1de35cc_0    defaults
atomicwrites              1.3.0                    py37_1    defaults
attrs                     19.1.0                   py37_1    defaults
babel                     2.7.0                      py_0    defaults
backcall                  0.1.0                    py37_0    defaults
backports                 1.0                        py_2    defaults
backports.functools_lru_cache 1.5                        py_2    defaults
backports.os              0.1.1                    py37_0    defaults
backports.shutil_get_terminal_size 1.0.0                    py37_2    defaults
backports.tempfile        1.0                        py_1    defaults
backports.weakref         1.0.post1                  py_1    defaults
beautifulsoup4            4.7.1                    py37_1    defaults
bitarray                  0.9.3            py37h1de35cc_0    defaults
bkcharts                  0.2                      py37_0    defaults
blas                      1.0                         mkl    defaults
bleach                    3.1.0                    py37_0    defaults
blosc                     1.16.3               hd9629dc_0    defaults
bokeh                     1.2.0                    py37_0    defaults
boto                      2.49.0                   py37_0    defaults
bottleneck                1.2.1            py37h1d22016_1    defaults
bzip2                     1.0.6                h1de35cc_5    defaults
ca-certificates           2019.5.15                     0    defaults
certifi                   2019.6.16                py37_0    defaults
cffi                      1.12.3           py37hb5b8e2f_0    defaults
chardet                   3.0.4                    py37_1    defaults
click                     7.0                      py37_0    defaults
cloudpickle               1.1.1                      py_0    defaults
clyent                    1.2.2                    py37_1    defaults
colorama                  0.4.1                    py37_0    defaults
conda                     4.7.5                    py37_0    defaults
conda-build               3.18.5                   py37_0    defaults
conda-env                 2.6.0                         1    defaults
conda-package-handling    1.3.10                   py37_0    defaults
conda-verify              3.4.2                      py_0    defaults
contextlib2               0.5.5                    py37_0    defaults
cryptography              2.7              py37ha12b0ac_0    defaults
curl                      7.64.1               ha441bb4_0    defaults
cycler                    0.10.0                   py37_0    defaults
cython                    0.29.10          py37h0a44026_0    defaults
cytoolz                   0.9.0.1          py37h1de35cc_1    defaults
dask                      2.0.0                      py_0    defaults
dask-core                 2.0.0                      py_0    defaults
dbus                      1.13.6               h90a0687_0    defaults
decorator                 4.4.0                    py37_1    defaults
defusedxml                0.6.0                      py_0    defaults
distributed               2.0.1                      py_0    defaults
docutils                  0.14                     py37_0    defaults
entrypoints               0.3                      py37_0    defaults
et_xmlfile                1.0.1                    py37_0    defaults
expat                     2.2.6                h0a44026_0    defaults
fastcache                 1.1.0            py37h1de35cc_0    defaults
filelock                  3.0.12                     py_0    defaults
flask                     1.0.3                    py37_0    defaults
freetype                  2.9.1                hb4e5f40_0    defaults
future                    0.17.1                   py37_0    defaults
get_terminal_size         1.0.0                h7520d66_0    defaults
gettext                   0.19.8.1             h15daf44_3    defaults
gevent                    1.4.0            py37h1de35cc_0    defaults
glib                      2.56.2               hd9629dc_0    defaults
glob2                     0.6                      py37_1    defaults
gmp                       6.1.2                hb37e062_1    defaults
gmpy2                     2.0.8            py37h6ef4df4_2    defaults
greenlet                  0.4.15           py37h1de35cc_0    defaults
h5py                      2.9.0            py37h3134771_0    defaults
hdf5                      1.10.4               hfa1e0ec_0    defaults
heapdict                  1.0.0                    py37_2    defaults
html5lib                  1.0.1                    py37_0    defaults
icu                       58.2                 h4b95b61_1    defaults
idna                      2.8                      py37_0    defaults
imageio                   2.5.0                    py37_0    defaults
imagesize                 1.1.0                    py37_0    defaults
importlib_metadata        0.17                     py37_1    defaults
intel-openmp              2019.4                      233    defaults
ipykernel                 5.1.1            py37h39e3cac_0    defaults
ipython                   7.5.0            py37h39e3cac_0    defaults
ipython_genutils          0.2.0                    py37_0    defaults
ipywidgets                7.4.2                    py37_0    defaults
isort                     4.3.20                   py37_0    defaults
itsdangerous              1.1.0                    py37_0    defaults
jbig                      2.1                  h4d881f8_0    defaults
jdcal                     1.4.1                      py_0    defaults
jedi                      0.13.3                   py37_0    defaults
jinja2                    2.10.1                   py37_0    defaults
joblib                    0.13.2                   py37_0    defaults
jpeg                      9b                   he5867d9_2    defaults
jsonschema                3.0.1                    py37_0    defaults
jupyter                   1.0.0                    py37_7    defaults
jupyter_client            5.2.4                    py37_0    defaults
jupyter_console           6.0.0                    py37_0    defaults
jupyter_core              4.4.0                    py37_0    defaults
jupyterlab                0.35.5           py37hf63ae98_0    defaults
jupyterlab_server         0.2.0                    py37_0    defaults
keyring                   18.0.0                   py37_0    defaults
kiwisolver                1.1.0            py37h0a44026_0    defaults
krb5                      1.16.1               hddcf347_7    defaults
lazy-object-proxy         1.4.1            py37h1de35cc_0    defaults
libarchive                3.3.3                h786848e_5    defaults
libcurl                   7.64.1               h051b688_0    defaults
libcxx                    4.0.1                hcfea43d_1    defaults
libcxxabi                 4.0.1                hcfea43d_1    defaults
libedit                   3.1.20181209         hb402a30_0    defaults
libffi                    3.2.1                h475c297_4    defaults
libgfortran               3.0.1                h93005f0_2    defaults
libiconv                  1.15                 hdd342a3_7    defaults
liblief                   0.9.0                h2a1bed3_2    defaults
libpng                    1.6.37               ha441bb4_0    defaults
libsodium                 1.0.16               h3efe00b_0    defaults
libssh2                   1.8.2                ha12b0ac_0    defaults
libtiff                   4.0.10               hcb84e12_2    defaults
libxml2                   2.9.9                hf6e021a_1    defaults
libxslt                   1.1.33               h33a18ac_0    defaults
llvm-openmp               4.0.1                hcfea43d_1    defaults
llvmlite                  0.29.0           py37h98b8051_0    defaults
locket                    0.2.0                    py37_1    defaults
lxml                      4.3.3            py37hef8c89e_0    defaults
lz4-c                     1.8.1.2              h1de35cc_0    defaults
lzo                       2.10                 h362108e_2    defaults
markupsafe                1.1.1            py37h1de35cc_0    defaults
matplotlib                3.1.0            py37h54f8f79_0    defaults
mccabe                    0.6.1                    py37_1    defaults
mistune                   0.8.4            py37h1de35cc_0    defaults
mkl                       2019.4                      233    defaults
mkl-service               2.0.2            py37h1de35cc_0    defaults
mkl_fft                   1.0.12           py37h5e564d8_0    defaults
mkl_random                1.0.2            py37h27c97d8_0    defaults
mock                      3.0.5                    py37_0    defaults
more-itertools            7.0.0                    py37_0    defaults
mpc                       1.1.0                h6ef4df4_1    defaults
mpfr                      4.0.1                h3018a27_3    defaults
mpmath                    1.1.0                    py37_0    defaults
msgpack-python            0.6.1            py37h04f5b5a_1    defaults
multipledispatch          0.6.0                    py37_0    defaults
navigator-updater         0.2.1                    py37_0    defaults
nbconvert                 5.5.0                      py_0    defaults
nbformat                  4.4.0                    py37_0    defaults
ncurses                   6.1                  h0a44026_1    defaults
networkx                  2.3                        py_0    defaults
nltk                      3.4.1                    py37_0    defaults
nose                      1.3.7                    py37_2    defaults
notebook                  5.7.8                    py37_0    defaults
numba                     0.44.1           py37h6440ff4_0    defaults
numexpr                   2.6.9            py37h7413580_0    defaults
numpy                     1.16.4           py37hacdab7b_0    defaults
numpy-base                1.16.4           py37h6575580_0    defaults
numpydoc                  0.9.1                      py_0    defaults
olefile                   0.46                     py37_0    defaults
openpyxl                  2.6.2                      py_0    defaults
openssl                   1.1.1c               h1de35cc_1    defaults
packaging                 19.0                     py37_0    defaults
pandas                    0.24.2           py37h0a44026_0    defaults
pandoc                    2.2.3.2                       0    defaults
pandocfilters             1.4.2                    py37_1    defaults
parso                     0.4.0                      py_0    defaults
partd                     0.3.10                   py37_1    defaults
path.py                   12.0.1                     py_0    defaults
pathlib2                  2.3.3                    py37_0    defaults
patsy                     0.5.1                    py37_0    defaults
pcre                      8.43                 h0a44026_0    defaults
pep8                      1.7.1                    py37_0    defaults
pexpect                   4.7.0                    py37_0    defaults
pickleshare               0.7.5                    py37_0    defaults
pillow                    6.0.0            py37hb68e598_0    defaults
pip                       19.1.1                   py37_0    defaults
pkginfo                   1.5.0.1                  py37_0    defaults
pluggy                    0.12.0                     py_0    defaults
ply                       3.11                     py37_0    defaults
prometheus_client         0.6.0                    py37_0    defaults
prompt_toolkit            2.0.9                    py37_0    defaults
psutil                    5.6.2            py37h1de35cc_0    defaults
ptyprocess                0.6.0                    py37_0    defaults
py                        1.8.0                    py37_0    defaults
py-lief                   0.9.0            py37h1413db1_2    defaults
pycodestyle               2.5.0                    py37_0    defaults
pycosat                   0.6.3            py37h1de35cc_0    defaults
pycparser                 2.19                     py37_0    defaults
pycrypto                  2.6.1            py37h1de35cc_9    defaults
pycurl                    7.43.0.2         py37ha12b0ac_0    defaults
pyflakes                  2.1.1                    py37_0    defaults
pygments                  2.4.2                      py_0    defaults
pylint                    2.3.1                    py37_0    defaults
pyodbc                    4.0.26           py37h0a44026_0    defaults
pyopenssl                 19.0.0                   py37_0    defaults
pyparsing                 2.4.0                      py_0    defaults
pyqt                      5.9.2            py37h655552a_2    defaults
pyrsistent                0.14.11          py37h1de35cc_0    defaults
pysocks                   1.7.0                    py37_0    defaults
pytables                  3.5.2            py37h5bccee9_1    defaults
pytest                    4.6.2                    py37_0    defaults
pytest-arraydiff          0.3              py37h39e3cac_0    defaults
pytest-astropy            0.5.0                    py37_0    defaults
pytest-doctestplus        0.3.0                    py37_0    defaults
pytest-openfiles          0.3.2                    py37_0    defaults
pytest-remotedata         0.3.1                    py37_0    defaults
python                    3.7.3                h359304d_0    defaults
python-dateutil           2.8.0                    py37_0    defaults
python-libarchive-c       2.8                      py37_6    defaults
python.app                2                        py37_9    defaults
pytz                      2019.1                     py_0    defaults
pywavelets                1.0.3            py37h1d22016_1    defaults
pyyaml                    5.1              py37h1de35cc_0    defaults
pyzmq                     18.0.0           py37h0a44026_0    defaults
qt                        5.9.7                h468cd18_1    defaults
qtawesome                 0.5.7                    py37_1    defaults
qtconsole                 4.5.1                      py_0    defaults
qtpy                      1.7.1                      py_0    defaults
readline                  7.0                  h1de35cc_5    defaults
requests                  2.22.0                   py37_0    defaults
rope                      0.14.0                     py_0    defaults
ruamel_yaml               0.15.46          py37h1de35cc_0    defaults
scikit-image              0.15.0           py37h0a44026_0    defaults
scikit-learn              0.21.2           py37h27c97d8_0    defaults
scipy                     1.2.1            py37h1410ff5_0    defaults
seaborn                   0.9.0                    py37_0    defaults
send2trash                1.5.0                    py37_0    defaults
setuptools                41.0.1                   py37_0    defaults
simplegeneric             0.8.1                    py37_2    defaults
singledispatch            3.4.0.3                  py37_0    defaults
sip                       4.19.8           py37h0a44026_0    defaults
six                       1.12.0                   py37_0    defaults
snappy                    1.1.7                he62c110_3    defaults
snowballstemmer           1.2.1                    py37_0    defaults
sortedcollections         1.1.2                    py37_0    defaults
sortedcontainers          2.1.0                    py37_0    defaults
soupsieve                 1.8                      py37_0    defaults
sphinx                    2.1.0                      py_0    defaults
sphinxcontrib             1.0                      py37_1    defaults
sphinxcontrib-applehelp   1.0.1                      py_0    defaults
sphinxcontrib-devhelp     1.0.1                      py_0    defaults
sphinxcontrib-htmlhelp    1.0.2                      py_0    defaults
sphinxcontrib-jsmath      1.0.1                      py_0    defaults
sphinxcontrib-qthelp      1.0.2                      py_0    defaults
sphinxcontrib-serializinghtml 1.1.3                      py_0    defaults
sphinxcontrib-websupport  1.1.2                      py_0    defaults
spyder                    3.3.4                    py37_0    defaults
spyder-kernels            0.5.0                    py37_0    defaults
sqlalchemy                1.3.4            py37h1de35cc_0    defaults
sqlite                    3.28.0               ha441bb4_0    defaults
statsmodels               0.9.0            py37h1d22016_0    defaults
sympy                     1.4                      py37_0    defaults
tblib                     1.4.0                      py_0    defaults
terminado                 0.8.2                    py37_0    defaults
testpath                  0.4.2                    py37_0    defaults
tk                        8.6.8                ha441bb4_0    defaults
toolz                     0.9.0                    py37_0    defaults
tornado                   6.0.2            py37h1de35cc_0    defaults
tqdm                      4.32.1                     py_0    defaults
traitlets                 4.3.2                    py37_0    defaults
unicodecsv                0.14.1                   py37_0    defaults
unixodbc                  2.3.7                h1de35cc_0    defaults
urllib3                   1.24.2                   py37_0    defaults
virtualenv                16.6.1                   pypi_0    pypi
wcwidth                   0.1.7                    py37_0    defaults
webencodings              0.5.1                    py37_1    defaults
werkzeug                  0.15.4                     py_0    defaults
wheel                     0.33.4                   py37_0    defaults
widgetsnbextension        3.4.2                    py37_0    defaults
wrapt                     1.11.1           py37h1de35cc_0    defaults
wurlitzer                 1.0.2                    py37_0    defaults
xlrd                      1.2.0                    py37_0    defaults
xlsxwriter                1.1.8                      py_0    defaults
xlwings                   0.15.8                   py37_0    defaults
xlwt                      1.3.0                    py37_0    defaults
xz                        5.2.4                h1de35cc_4    defaults
yaml                      0.1.7                hc338f04_2    defaults
zeromq                    4.3.1                h0a44026_3    defaults
zict                      0.1.4                    py37_0    defaults
zipp                      0.5.1                      py_0    defaults
zlib                      1.2.11               h1de35cc_3    defaults
zstd                      1.3.7                h5bba6e5_0    defaults

@vdyma
Copy link

vdyma commented Jun 28, 2019

It's exactly the same on Linux.

@msarahan
Copy link
Contributor

The likely reason for this is that update --all frees up all of your constraints to be optional (as they were not explicitly specs) and they get cleaned up. It's definitely a bug. I'd avoid update --all until we can get to the bottom of this.

@00krishna
Copy link

So I get that this is a bug, but I am not clear on where the issue happened. There was a new version of conda-build published in 4.7.5 that was supposed to solve the environment faster. Were users supposed to follow some kind of upgrade instructions to install the new conda-build or other packages? Did we users install something out of order? I found this issue when I did a conda update --all and then the anaconda 4.7.5 got installed. So I can't tell where I as a user was to upgrade in a certain way, didn't do that, and then the bug appeared. Or if there was no defined upgrade path and the bug was somewhere in the conda-build or other package.

@msarahan
Copy link
Contributor

What's happening here is this:

  1. anaconda is a metapackage. Each version consists of a set of versions that have all gone through QA together as a set. If you change any version of any package in that collection, you no longer have that metapackage, because you have strayed from that known set. There is a special version of that metapackage, custom, that is meant to handle this relaxation of constraints. The "custom" version depends only on a particular version of python - it removes the constraints on all other packages.
  2. conda 4.7 builds up its candidates for addition differently from earlier conda versions. It starts with specs from the history, and tries to constrain things where it can, to speed up the solve. When conda finds the anaconda metapackage with the "custom" version, it keeps it, but all of those other dependencies are now orphaned. This is why conda is removing them - they have no spec in the history that tells conda to keep them.

You can restore these by running conda install --only-deps anaconda. From then on, all of those packages are considered part of your explicit history, and you won't have further problems like this.

@msarahan msarahan added ¡breaking! used to indicate that the code change will likely require a minor or major version bump source::community catch-all for issues filed by community members type-question pending::feedback indicates we are waiting on feedback from the user labels Jun 29, 2019
@cgivre
Copy link
Author

cgivre commented Jun 30, 2019

Thanks everyone. I'm glad that everything is restorable, though I wish I had known that before re-installing anaconda. I'm still not clear as to the correct procedure for updating my system. I ran the
conda install --only-deps anaconda command. From this point forward, do I periodically run conda update --all?

@msarahan
Copy link
Contributor

Yes, that should be fine going forward. The behavior with the metapackage is very undesirable, and we'll be trying to help other people not have that issue in the future. You should be all set, though.

@eltabbal
Copy link

eltabbal commented Jul 1, 2019

actually , i had the same issue on MacOS mojave , and when i tried to use conda install --only-deps anaconda it still wants to remove lots of packages

Collecting package metadata (current_repodata.json): done
Solving environment: done

Package Plan

environment location: /anaconda3

added / updated specs:
- anaconda

The following packages will be REMOVED:

anaconda-project-0.8.3-py_0
astropy-3.2.1-py37h1de35cc_0
babel-2.7.0-py_0
bitarray-0.9.3-py37h1de35cc_0
blosc-1.16.3-hd9629dc_0
bokeh-1.2.0-py37_0
cloudpickle-1.1.1-py_0
cython-0.29.10-py37h0a44026_0
dask-2.0.0-py_0
dask-core-2.0.0-py_0
distributed-2.0.1-py_0
fastcache-1.1.0-py37h1de35cc_0
flask-1.0.3-py37_0
importlib_metadata-0.17-py37_1
jdcal-1.4.1-py_0
llvmlite-0.29.0-py37h98b8051_0
lxml-4.3.3-py37hef8c89e_0
mkl-service-2.0.2-py37h1de35cc_0
more-itertools-7.0.0-py37_0
networkx-2.3-py_0
nltk-3.4.1-py37_0
numba-0.44.1-py37h6440ff4_0
numpydoc-0.9.1-py_0
openpyxl-2.6.2-py_0
path.py-12.0.1-py_0
pluggy-0.12.0-py_0
pytables-3.5.2-py37h5bccee9_1
pytest-4.6.2-py37_0
pytest-arraydiff-0.3-py37h39e3cac_0
pytest-astropy-0.5.0-py37_0
pytest-doctestplus-0.3.0-py37_0
pytest-openfiles-0.3.2-py37_0
pytest-remotedata-0.3.1-py37_0
pywavelets-1.0.3-py37h1d22016_1
rope-0.14.0-py_0
scikit-image-0.15.0-py37h0a44026_0
scikit-learn-0.21.2-py37h27c97d8_0
sphinx-2.1.0-py_0
sphinxcontrib-websupport-1.1.2-py_0
spyder-3.3.4-py37_0
spyder-kernels-0.5.0-py37_0
sqlalchemy-1.3.4-py37h1de35cc_0
sympy-1.4-py37_0
tblib-1.4.0-py_0
werkzeug-0.15.4-py_0
xlsxwriter-1.1.8-py_0
xlwings-0.15.8-py37_0
zipp-0.5.1-py_0

@pxcandeias
Copy link

Apparently I have a related issue, have been recommended to post here what happened.

I work with three different machines, a Linux Mint 19.1 64 bits laptop, a Windows 10 64 bits laptop and a Windows 7 64 bits desktop. I have Anaconda installed on all three machines (base environment only) and I keep them updated. You can find what I did in here (https://groups.google.com/a/continuum.io/forum/#!topic/anaconda/1PxQi3Q_4WQ), I am pasting below just the (partial) error I could retrieve from my console while doing a simple "conda update conda" on the third machine mentioned above (edited username for privacy):

"""
tqdm pkgs/main/win-64::tqdm-4.31.1-py37_1 --> pkgs/main/noarch
::tqdm-4.32.1-py_0
urllib3 1.24.1-py37_0 --> 1.24.2-py37_0
vs2015_runtime 14.15.26706-h3a45250_0 --> 14.15.26706-h3a4
5250_4
wheel 0.33.1-py37_0 --> 0.33.4-py37_0

Proceed ([y]/n)?

Downloading and Extracting Packages
sphinxcontrib-htmlhe | 28 KB | #################################### | 100%
sphinxcontrib-jsmath | 8 KB | #################################### | 100%
psutil-5.6.2 | 350 KB | #################################### | 100%
cffi-1.12.3 | 225 KB | #################################### | 100%
wheel-0.33.4 | 57 KB | #################################### | 100%
babel-2.7.0 | 5.8 MB | #################################### | 100%
tqdm-4.32.1 | 48 KB | #################################### | 100%
jinja2-2.10.1 | 188 KB | #################################### | 100%
pillow-6.0.0 | 689 KB | #################################### | 100%
cryptography-2.7 | 564 KB | #################################### | 100%
sphinxcontrib-qthelp | 26 KB | #################################### | 100%
qtpy-1.7.1 | 35 KB | #################################### | 100%
defusedxml-0.6.0 | 23 KB | #################################### | 100%
vs2015_runtime-14.15 | 2.4 MB | #################################### | 100%
sqlite-3.28.0 | 945 KB | #################################### | 100%
numpydoc-0.9.1 | 31 KB | #################################### | 100%
filelock-3.0.12 | 12 KB | #################################### | 100%
rope-0.14.0 | 113 KB | #################################### | 100%
sphinxcontrib-devhel | 23 KB | #################################### | 100%
lazy-object-proxy-1. | 31 KB | #################################### | 100%
pysocks-1.7.0 | 30 KB | #################################### | 100%
pygments-2.4.2 | 664 KB | #################################### | 100%
sphinxcontrib-serial | 24 KB | #################################### | 100%
terminado-0.8.2 | 22 KB | #################################### | 100%
sphinxcontrib-appleh | 29 KB | #################################### | 100%
urllib3-1.24.2 | 153 KB | #################################### | 100%
ipython-7.5.0 | 1.1 MB | #################################### | 100%
libpng-1.6.37 | 598 KB | #################################### | 100%
setuptools-41.0.1 | 680 KB | #################################### | 100%
pyparsing-2.4.0 | 58 KB | #################################### | 100%
isort-4.3.20 | 86 KB | #################################### | 100%
pip-19.1.1 | 1.8 MB | #################################### | 100%
conda-build-3.18.5 | 550 KB | #################################### | 100%
cloudpickle-1.1.1 | 23 KB | #################################### | 100%
pytz-2019.1 | 236 KB | #################################### | 100%
parso-0.4.0 | 66 KB | #################################### | 100%
sphinx-2.1.0 | 1.4 MB | #################################### | 100%
ipykernel-5.1.1 | 163 KB | #################################### | 100%
nbconvert-5.5.0 | 381 KB | #################################### | 100%
requests-2.22.0 | 90 KB | #################################### | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: | DEBUG menuinst_win32:init(199): Menu: name: 'Anacon
da${PY_VER} ${PLATFORM}', prefix: 'C:\Users---\AppData\Local\Continuum\an
aconda3', env_name: 'None', mode: 'user', used_mode: 'user'
DEBUG menuinst_win32:create(323): Shortcut cmd is %windir%\System32\WindowsPower
Shell\v1.0\powershell.exe, args are ['-ExecutionPolicy', 'ByPass', '-NoExit', '-
Command', '"& 'C:\Users\---\AppData\Local\Continuum\anaconda3\shel
l\condabin\conda-hook.ps1' ; conda activate 'C:\Users\---\AppData\
Local\Continuum\anaconda3' "']
\ DEBUG menuinst_win32:init(199): Menu: name: 'Anaconda${PY_VER} ${PLATFORM}
', prefix: 'C:\Users---\AppData\Local\Continuum\anaconda3', env_name: 'No
ne', mode: 'user', used_mode: 'user'
DEBUG menuinst_win32:create(323): Shortcut cmd is %windir%\System32\cmd.exe, arg
s are ['"/K"', 'C:\Users\---\AppData\Local\Continuum\anaconda3\Scri
pts\activate.bat', 'C:\Users\---\AppData\Local\Continuum\anaconda3'
]
done

(base) C:\Users--->
"""

@msarahan
Copy link
Contributor

msarahan commented Jul 1, 2019

And my response from that mailing list post:

You have 2 things coming together to ruin your day. One is definitely the issue that I pointed you to. That is causing removal of the console_shortcut package, which takes away your start menu anaconda prompt shortcut. The next is this: #8835

The simplest way to recover is:

  • open a cmd shell
  • run call "path\to\anaconda\root\Scripts\activate" - this is what the "anaconda prompt" does
    conda install --only-deps anaconda=2019

This should restore everything, including your start menu shortcuts. Future updates will not mess up, because the explicit dependencies will be in the history now.

@msarahan
Copy link
Contributor

msarahan commented Jul 1, 2019

We are working on fixing the Anaconda metapackage to account for this change in behavior. The change in behavior is expected and desired, but the side effect here with the anaconda metapackage in particular is not.

@ECon87
Copy link

ECon87 commented Jul 3, 2019

I ran "conda install --only-deps anaconda" but the apps shortcuts are still not displayed on the navigator. I am using a MacOS 10.10.5.

Also, I can only create new environments in python2.7.

@pxcandeias
Copy link

pxcandeias commented Jul 3, 2019 via email

@garethwalkom
Copy link

I also had the same problem: https://github.com/ContinuumIO/anaconda-issues/issues/11073#issuecomment-508009172

conda install --only-deps anaconda gave me an error when I reopened Spyder.

conda install --only-deps anaconda=2019 fixed it for me for now. This changes the version from Spyder 3.5.5 to Spyder 3.3.3.

@msarahan
Copy link
Contributor

msarahan commented Jul 3, 2019

There are testing packages that will replace the existing anaconda "custom" metapackages up on the c3i_test2 channel:

conda install -c c3i_test2 anaconda

We are testing these ourselves, and will move them to defaults later today or tomorrow.

@artasom
Copy link

artasom commented Jul 4, 2019

I am kind of newbie still to this (ana)conda world, but... what if you do not have any longer the metapackage installed? I needed to remove it to update python because of ContinuumIO/anaconda-issues#10822 and if I try to update, the process says it will delete all those packages as well.

@msarahan
Copy link
Contributor

msarahan commented Jul 5, 2019

The new metapackage is uploaded. Further updates might allow updates of more than you expect, but they should no longer go crazy removing things.

conda update anaconda

if you don't have it installed, you can just install it:

conda install anaconda

Sorry for our clumsiness on this one, and thank you for your patience. We'll be writing up a post-mortem next week. If you continue having issues, please post here.

@eltabbal
Copy link

eltabbal commented Jul 6, 2019

@msarahan i still have the same problems, any ideas ?
Collecting package metadata (current_repodata.json): done
Solving environment: done

Package Plan

environment location: /anaconda3

added / updated specs:
- anaconda

The following packages will be downloaded:

package                    |            build
---------------------------|-----------------
glob2-0.7                  |             py_0          14 KB
ipython-7.6.0              |   py37h39e3cac_0         1.1 MB
jupyter_core-4.5.0         |             py_0          48 KB
parso-0.5.0                |             py_0          67 KB
prometheus_client-0.7.1    |             py_0          42 KB
psutil-5.6.3               |   py37h1de35cc_0         333 KB
python-libarchive-c-2.8    |           py37_8          22 KB
pyyaml-5.1.1               |   py37h1de35cc_0         170 KB
qtpy-1.8.0                 |             py_0          38 KB
tornado-6.0.3              |   py37h1de35cc_0         644 KB
------------------------------------------------------------
                                       Total:         2.5 MB

The following packages will be REMOVED:

alabaster-0.7.12-py37_0
anaconda-project-0.8.3-py_0
appscript-1.1.0-py37h1de35cc_0
astroid-2.2.5-py37_0
astropy-3.2.1-py37h1de35cc_0
atomicwrites-1.3.0-py37_1
babel-2.7.0-py_0
backports.os-0.1.1-py37_0
backports.shutil_get_terminal_size-1.0.0-py37_2
bitarray-0.9.3-py37h1de35cc_0
bkcharts-0.2-py37_0
blas-1.0-mkl
blosc-1.16.3-hd9629dc_0
bokeh-1.2.0-py37_0
boto-2.49.0-py37_0
bottleneck-1.2.1-py37h1d22016_1
cloudpickle-1.1.1-py_0
colorama-0.4.1-py37_0
contextlib2-0.5.5-py37_0
cycler-0.10.0-py37_0
cython-0.29.10-py37h0a44026_0
cytoolz-0.9.0.1-py37h1de35cc_1
dask-2.0.0-py_0
dask-core-2.0.0-py_0
distributed-2.0.1-py_0
docutils-0.14-py37_0
et_xmlfile-1.0.1-py37_0
fastcache-1.1.0-py37h1de35cc_0
flask-1.0.3-py37_0
get_terminal_size-1.0.0-h7520d66_0
gevent-1.4.0-py37h1de35cc_0
gmp-6.1.2-hb37e062_1
gmpy2-2.0.8-py37h6ef4df4_2
greenlet-0.4.15-py37h1de35cc_0
h5py-2.9.0-py37h3134771_0
hdf5-1.10.4-hfa1e0ec_0
heapdict-1.0.0-py37_2
html5lib-1.0.1-py37_0
imageio-2.5.0-py37_0
imagesize-1.1.0-py37_0
importlib_metadata-0.17-py37_1
intel-openmp-2019.4-233
isort-4.3.20-py37_0
itsdangerous-1.1.0-py37_0
jbig-2.1-h4d881f8_0
jdcal-1.4.1-py_0
joblib-0.13.2-py37_0
jupyter-1.0.0-py37_7
jupyter_console-6.0.0-py37_0
keyring-18.0.0-py37_0
kiwisolver-1.1.0-py37h0a44026_0
lazy-object-proxy-1.4.1-py37h1de35cc_0
libxslt-1.1.33-h33a18ac_0
llvmlite-0.29.0-py37h98b8051_0
locket-0.2.0-py37_1
lxml-4.3.3-py37hef8c89e_0
matplotlib-3.1.0-py37h54f8f79_0
mccabe-0.6.1-py37_1
mkl-2019.4-233
mkl-service-2.0.2-py37h1de35cc_0
mkl_fft-1.0.12-py37h5e564d8_0
mkl_random-1.0.2-py37h27c97d8_0
mock-3.0.5-py37_0
more-itertools-7.0.0-py37_0
mpc-1.1.0-h6ef4df4_1
mpfr-4.0.1-h3018a27_3
mpmath-1.1.0-py37_0
msgpack-python-0.6.1-py37h04f5b5a_1
multipledispatch-0.6.0-py37_0
networkx-2.3-py_0
nltk-3.4.1-py37_0
nose-1.3.7-py37_2
numba-0.44.1-py37h6440ff4_0
numexpr-2.6.9-py37h7413580_0
numpy-1.16.4-py37hacdab7b_0
numpy-base-1.16.4-py37h6575580_0
numpydoc-0.9.1-py_0
openpyxl-2.6.2-py_0
packaging-19.0-py37_0
pandas-0.24.2-py37h0a44026_0
partd-0.3.10-py37_1
path.py-12.0.1-py_0
pathlib2-2.3.3-py37_0
patsy-0.5.1-py37_0
pep8-1.7.1-py37_0
pluggy-0.12.0-py_0
ply-3.11-py37_0
py-1.8.0-py37_0
pycodestyle-2.5.0-py37_0
pycrypto-2.6.1-py37h1de35cc_9
pycurl-7.43.0.2-py37ha12b0ac_0
pyflakes-2.1.1-py37_0
pylint-2.3.1-py37_0
pyodbc-4.0.26-py37h0a44026_0
pyparsing-2.4.0-py_0
pytables-3.5.2-py37h5bccee9_1
pytest-4.6.2-py37_0
pytest-arraydiff-0.3-py37h39e3cac_0
pytest-astropy-0.5.0-py37_0
pytest-doctestplus-0.3.0-py37_0
pytest-openfiles-0.3.2-py37_0
pytest-remotedata-0.3.1-py37_0
pywavelets-1.0.3-py37h1d22016_1
qtawesome-0.5.7-py37_1
qtconsole-4.5.1-py_0
rope-0.14.0-py_0
scikit-image-0.15.0-py37h0a44026_0
scikit-learn-0.21.2-py37h27c97d8_0
scipy-1.2.1-py37h1410ff5_0
seaborn-0.9.0-py37_0
simplegeneric-0.8.1-py37_2
singledispatch-3.4.0.3-py37_0
snappy-1.1.7-he62c110_3
snowballstemmer-1.2.1-py37_0
sortedcollections-1.1.2-py37_0
sortedcontainers-2.1.0-py37_0
sphinx-2.1.0-py_0
sphinxcontrib-1.0-py37_1
sphinxcontrib-applehelp-1.0.1-py_0
sphinxcontrib-devhelp-1.0.1-py_0
sphinxcontrib-htmlhelp-1.0.2-py_0
sphinxcontrib-jsmath-1.0.1-py_0
sphinxcontrib-qthelp-1.0.2-py_0
sphinxcontrib-serializinghtml-1.1.3-py_0
sphinxcontrib-websupport-1.1.2-py_0
spyder-3.3.4-py37_0
spyder-kernels-0.5.0-py37_0
sqlalchemy-1.3.4-py37h1de35cc_0
statsmodels-0.9.0-py37h1d22016_0
sympy-1.4-py37_0
tblib-1.4.0-py_0
toolz-0.9.0-py37_0
unicodecsv-0.14.1-py37_0
werkzeug-0.15.4-py_0
wrapt-1.11.1-py37h1de35cc_0
wurlitzer-1.0.2-py37_0
xlrd-1.2.0-py37_0
xlsxwriter-1.1.8-py_0
xlwings-0.15.8-py37_0
xlwt-1.3.0-py37_0
zict-0.1.4-py37_0
zipp-0.5.1-py_0

The following packages will be UPDATED:

glob2 pkgs/main/osx-64::glob2-0.6-py37_1 --> pkgs/main/noarch::glob2-0.7-py_0
ipython 7.5.0-py37h39e3cac_0 --> 7.6.0-py37h39e3cac_0
jupyter_core pkgs/main/osx-64::jupyter_core-4.4.0-~ --> pkgs/main/noarch::jupyter_core-4.5.0-py_0
parso 0.4.0-py_0 --> 0.5.0-py_0
prometheus_client pkgs/main/osx-64::prometheus_client-0~ --> pkgs/main/noarch::prometheus_client-0.7.1-py_0
psutil 5.6.2-py37h1de35cc_0 --> 5.6.3-py37h1de35cc_0
python-libarchive~ 2.8-py37_6 --> 2.8-py37_8
pyyaml 5.1-py37h1de35cc_0 --> 5.1.1-py37h1de35cc_0
qtpy 1.7.1-py_0 --> 1.8.0-py_0
tornado 6.0.2-py37h1de35cc_0 --> 6.0.3-py37h1de35cc_0

@aakhmetz
Copy link

aakhmetz commented Jul 6, 2019

I think I was able to resolve by first doing conda install -c c3i_test2 anaconda and then updating.
@eltabbal, have you tried that?

@eltabbal
Copy link

eltabbal commented Jul 6, 2019

@aakhmetz yeah that is working fine now, what is the c3i-test3 metapackage ?. thanks a lot anyhow

@aakhmetz
Copy link

aakhmetz commented Jul 6, 2019

@eltabbal it was a temporary solution proposed in the thread above

@esvhd
Copy link

esvhd commented Jul 6, 2019 via email

@msarahan
Copy link
Contributor

msarahan commented Jul 11, 2019 via email

@SomeUserName1
Copy link

After doing a conda update conda I'm getting the warning as above and am now stuck with a broken installation. nothing installs or removes anymore.
Neither conda update conda-build nor conda update anaconda fixed this.

WARNING conda.base.context:use_only_tar_bz2(632): Conda is constrained to only using the old .tar.bz2 file format because you have conda-build installed, and it is <3.18.3.  Update or remove conda-build to get smaller downloads and faster extractions.
Collecting package metadata (repodata.json): done
Solving environment: | 
The environment is inconsistent, please check the package plan carefully
The following packages are causing the inconsistency:

  - defaults/linux-64::anaconda==2018.12=py37_0
done

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

    Traceback (most recent call last):
      File "/usr/local/anaconda3/lib/python3.7/site-packages/conda/models/prefix_graph.py", line 252, in _topo_sort_handle_cycles
        value = next(t)
      File "/usr/local/anaconda3/lib/python3.7/site-packages/conda/models/prefix_graph.py", line 230, in _toposort_raise_on_cycles
        raise CyclicalDependencyError(tuple(graph))
    conda.exceptions.CyclicalDependencyError: Cyclic dependencies exist among these items: 
      - defaults::_anaconda_depends-2019.03-py37_0
      - defaults::anaconda-custom-py37_1
      - defaults::astropy-3.2.1-py37h7b6447c_0
      - defaults::bkcharts-0.2-py37_0
      - defaults::bokeh-1.2.0-py37_0
      - defaults::bottleneck-1.2.1-py37h035aef0_1
      - defaults::dask-2.1.0-py_0
      - defaults::h5py-2.9.0-py37h7918eee_0
      - defaults::imageio-2.5.0-py37_0
      - defaults::matplotlib-3.0.2-py37h5429711_0
      - defaults::mkl-service-2.0.2-py37h7b6447c_0
      - defaults::mkl_fft-1.0.12-py37ha843d7b_0
      - defaults::numba-0.44.1-py37h962f231_0
      - defaults::numexpr-2.6.9-py37h9e4a6bb_0
      - defaults::numpy-1.16.4-py37h7e9f1db_0
      - defaults::pandas-0.24.2-py37he6710b0_0
      - defaults::patsy-0.5.1-py37_0
      - defaults::pytables-3.5.2-py37h71ec239_1
      - defaults::pytest-arraydiff-0.3-py37h39e3cac_0
      - defaults::pytest-astropy-0.5.0-py37_0
      - defaults::pytest-doctestplus-0.3.0-py37_0
      - defaults::pywavelets-1.0.3-py37hdd07704_1
      - defaults::scikit-image-0.15.0-py37he6710b0_0
      - defaults::scikit-learn-0.21.2-py37hd81dba3_0
      - defaults::scipy-1.2.1-py37h7c811a0_0
      - defaults::seaborn-0.9.0-py37_0
      - defaults::statsmodels-0.10.0-py37hdd07704_0
      - conda-forge::umap-learn-0.3.8-py37_0
      - defaults::datashape-0.5.4-py37_1
      - defaults::statsmodels-0.9.0-py37h035aef0_0
      - defaults::scipy-1.1.0-py37h7c811a0_2
      - defaults::numexpr-2.6.8-py37h9e4a6bb_0
      - defaults::pywavelets-1.0.1-py37hdd07704_0
      - defaults::blaze-0.11.3-py37_0
      - defaults::scikit-image-0.14.1-py37he6710b0_0
      - defaults::astropy-3.1-py37h7b6447c_0
      - defaults::bokeh-1.0.2-py37_0
      - defaults::odo-0.5.1-py37_0
      - defaults::pytest-doctestplus-0.2.0-py37_0
      - defaults::dask-1.0.0-py37_0
      - defaults::numpy-1.15.4-py37h7e9f1db_0
      - defaults::pytables-3.4.4-py37ha205bf6_0
      - defaults::h5py-2.8.0-py37h989c5e5_3
      - defaults::numba-0.41.0-py37h962f231_0
      - defaults::imageio-2.4.1-py37_0
      - defaults::scikit-learn-0.20.1-py37hd81dba3_0
      - defaults::pandas-0.23.4-py37h04863e7_0
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "/usr/local/anaconda3/lib/python3.7/site-packages/conda/exceptions.py", line 1043, in __call__
        return func(*args, **kwargs)
      File "/usr/local/anaconda3/lib/python3.7/site-packages/conda/cli/main.py", line 84, in _main
        exit_code = do_call(args, p)
      File "/usr/local/anaconda3/lib/python3.7/site-packages/conda/cli/conda_argparse.py", line 82, in do_call
        exit_code = getattr(module, func_name)(args, parser)
      File "/usr/local/anaconda3/lib/python3.7/site-packages/conda/cli/main_update.py", line 20, in execute
        install(args, parser, 'update')
      File "/usr/local/anaconda3/lib/python3.7/site-packages/conda/cli/install.py", line 280, in install
        force_reinstall=context.force_reinstall or context.force,
      File "/usr/local/anaconda3/lib/python3.7/site-packages/conda/core/solve.py", line 112, in solve_for_transaction
        force_remove, force_reinstall)
      File "/usr/local/anaconda3/lib/python3.7/site-packages/conda/core/solve.py", line 150, in solve_for_diff
        force_remove)
      File "/usr/local/anaconda3/lib/python3.7/site-packages/conda/core/solve.py", line 261, in solve_final_state
        ssc.solution_precs = IndexedSet(PrefixGraph(ssc.solution_precs).graph)
      File "/usr/local/anaconda3/lib/python3.7/site-packages/conda/models/prefix_graph.py", line 47, in __init__
        self._toposort()
      File "/usr/local/anaconda3/lib/python3.7/site-packages/conda/models/prefix_graph.py", line 202, in _toposort
        sorted_nodes = tuple(self._topo_sort_handle_cycles(graph_copy))
      File "/usr/local/anaconda3/lib/python3.7/site-packages/conda/models/prefix_graph.py", line 259, in _topo_sort_handle_cycles
        yield cls._toposort_pop_key(graph)
      File "/usr/local/anaconda3/lib/python3.7/site-packages/conda/models/prefix_graph.py", line 274, in _toposort_pop_key
        (len(parents), node.name, node) for node, parents in iteritems(graph)
    TypeError: '<' not supported between instances of 'PrefixRecord' and 'PackageRecord'

`$ /usr/local/anaconda3/bin/conda update anaconda`

  environment variables:
                 CIO_TEST=<not set>
                CONDA_EXE=/usr/local/anaconda3/bin/conda
         CONDA_PYTHON_EXE=/usr/local/anaconda3/bin/python
               CONDA_ROOT=/usr/local/anaconda3
              CONDA_SHLVL=0
            DEFAULTS_PATH=/usr/share/gconf/plasma.default.path
           MANDATORY_PATH=/usr/share/gconf/plasma.mandatory.path
                     PATH=/usr/local/anaconda3/bin:/usr/local/anaconda3/condabin:/home/fabian/.c
                          argo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:
                          /usr/games:/usr/local/games:/home/fabian/.fzf/bin:/home/fabian/.cargo/
                          bin:/home/fabian/bin:/usr/local/anaconda3/bin:/usr/local/anaconda3/con
                          dabin:/home/fabian/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin
                          :/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/fabian/.fzf/bin
       REQUESTS_CA_BUNDLE=<not set>
             SSH_KEY_PATH=~/.ssh/rsa_id
            SSL_CERT_FILE=<not set>
            XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
         XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1

     active environment : None
            shell level : 0
       user config file : /home/fabian/.condarc
 populated config files : 
          conda version : 4.7.5
    conda-build version : 3.17.6
         python version : 3.7.3.final.0
       virtual packages : 
       base environment : /usr/local/anaconda3  (writable)
           channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /usr/local/anaconda3/pkgs
                          /home/fabian/.conda/pkgs
       envs directories : /usr/local/anaconda3/envs
                          /home/fabian/.conda/envs
               platform : linux-64
             user-agent : conda/4.7.5 requests/2.22.0 CPython/3.7.3 Linux/5.0.0-20-generic ubuntu/19.04 glibc/2.29
                UID:GID : 1000:1000
             netrc file : None
           offline mode : False


An unexpected error has occurred. Conda has prepared the above report.

If submitted, this report will be used by core maintainers to improve
future releases of conda.
Would you like conda to send this report to the core maintainers?

[y/N]: y
Upload successful.

Thank you for helping to improve conda.
Opt-in to always sending reports (and not see this message again)
by running

    $ conda config --set report_errors true```

@aakhmetz
Copy link

@SomeUserName1 I had also a similar error, and the command conda install anaconda helped me to resolve it. Could you try to do it also?

@MHouse
Copy link

MHouse commented Jul 15, 2019

I could be off-base here, but running a conda update anaconda helped me get back on track.

The other thing that I noticed is that there seem to be dependency solving issues due to the new jupyterlab_server package. It's now up to version 1.0.0, but the build was coded out as py_0. This seems to have caused quite a few problems for whatever reason. I downgraded to the prior version to help with dependency resolution: conda install jupyterlab_server=0.3.4=py36_0

The problem after that is with version priority vs. channel priority, since jupyterlab_server went from the win-64 channel to the noarch channel.

@msarahan
Copy link
Contributor

Anything that works for you is a good thing. @SomeUserName1 other users have had success deleting files in their package cache. conda clean -ay might help, but if it doesn't work, you should try to remove the .tar.bz2 and .conda files in your <anaconda install dir>/pkgs folder.

@MHouse
Copy link

MHouse commented Jul 16, 2019

Updated version of jupyterlab released today has some updated package dependencies. I was just able to do a full conda update --all and am all good now.

@SomeUserName1
Copy link

funnily conda install anaconda-clean got it working again

@mthomp89
Copy link

@msarahan I am a very new to anaconda and just now seeing the statement referred to earlier: WARNING conda.base.context:use_only_tar_bz2(632): Conda is constrained to only using the old .tar.bz2 file format because you have conda-build installed, and it is <3.18.3. Update or remove conda-build to get smaller downloads and faster extractions. What is the correct fix? Running Mac OS 10.14.5

@o12johns
Copy link

This comment is for new users trying to install and upgrade the anaconda distro. This works currently (2019.07.22) on an iMac running MacOS 10.14.5

The new version of conda does not play well with the meta-package anaconda. The Continuum people seem unable to fix the problem. But here is a work-around that will give you a functioning, up-to-date distro.

(1) Remove all trace of the anaconda distro from your system.

(2) Download and install 2019.03 using the MacOS graphical installer.

(3) Do conda upgrade --all This will upgrade a long list of packages, and also downgrade anaconda from 2019.03 to custom

(4) Do conda upgrade --all again. This will downgrade a long list of packages (presumably the ones you just upgraded in step 3.) It will also upgrade anaconda from custom back to 2019.03 This should not happen, but currently it does.

(5) Do conda upgrade mkl This will update a long list of packages (the same ones we had at the end of step 3?). It will also downgrade anaconda from 2019.03 to custom.

(6) As a test, do conda upgrade --all This should tell you that "All requested packages are already installed." You now should have a functioning, up-to-date anaconda distro.

@msarahan
Copy link
Contributor

The Continuum people seem unable to fix the problem.

No, we just haven't managed to find and close all of the related issues. The answer to this is in #8842

Closing this as a duplicate issue. For specific explanations of the behavior and the fix, see:

The entire reason why your instructions work is encapsulated in those 2 comments. The fix was to make the anaconda-custom metapackage have named dependencies, rather than just python. All of your other steps are just fidgeting with that metapackage - flip-flopping between optimizing its version and the versions of everything else. This happens because of how explicit vs. implicit dependencies get optimized.

@o12johns
Copy link

Mr. Sarahan,

I know that my list of steps is a kludge. But it does work. It gets a new user to an up-to-date, functioning system. Maybe you should publish a HOWTO that tells a new user the correct step-by-step process to go from installing a new system to finally getting an up-to-date system that works. If you have already done that, please give me the URL. I mean step-by-step instructions, do this and then do that, etc.

All best,

Oliver (o12johns)

@drevicko
Copy link

FWIW, applying @msarahan's second suggestion twice times landed me in what seems a stable state. At least conda update anaconda doesn't do anything now and no inconsistencies are reported.

conda update conda however is trying to downgrade the 'anaconda' package again to 'custom' --- I'm not going to try that for now. :)

@JPSabini
Copy link

JPSabini commented Oct 18, 2019

@msarahan I am on
Description: Ubuntu 18.04.3 LTS
Release: 18.04 I don't know why this issue is closed cause I tried what was suggested and it doesn't work for me.

I know I had to install certain libraries to work on a project in crypto. So I believe that the project downgraded five files or so. The rest were all upto date as of May. I currently(Oct 17) performed a conda update --prefix /home/john/anaconda3 anaconda and I got pretty much what everyone else described. I removed as per recommendation the *.bz2 and .conda files from the pkgs . I re-executed the conda update -n base -c defaults conda and got the same but also with assertion errors at the end just as Mr. 00krishna commented on Jul 8 .
_
(base)_ john@Euclidzu1:~$ conda update -n base -c defaults conda
WARNING conda.base.context:use_only_tar_bz2(632): Conda is constrained to only using the old .tar.bz2 file format because you have conda-build installed, and it is <3.18.3. Update or remove conda-build to get smaller downloads and faster extractions.
Collecting package metadata (repodata.json): done
Solving environment: /
The environment is inconsistent, please check the package plan carefully
The following packages are causing the inconsistency:

  • defaults/linux-64::hdf5==1.10.4=hb1b8bf9_0
  • defaults/linux-64::cython==0.29.6=py37he6710b0_0
  • defaults/linux-64::pandoc==2.2.3.2=0
  • defaults/linux-64::tblib==1.3.2=py37_0
  • defaults/linux-64::flask==1.0.2=py37_1
  • defaults/linux-64::psutil==5.6.1=py37h7b6447c_0
  • defaults/linux-64::ply==3.11=py37_0
  • defaults/linux-64::liblief==0.9.0=h7725739_2
  • defaults/linux-64::patsy==0.5.1=py37_0
  • defaults/linux-64::pyparsing==2.3.1=py37_0
  • defaults/linux-64::jedi==0.13.3=py37_0
  • defaults/linux-64::testpath==0.4.2=py37_0
  • defaults/linux-64::pkginfo==1.5.0.1=py37_0
  • defaults/linux-64::matplotlib==3.0.3=py37h5429711_0
  • defaults/linux-64::werkzeug==0.14.1=py37_0
  • defaults/linux-64::libarchive==3.3.3=h5d8350f_5
  • defaults/linux-64::pytest-remotedata==0.3.1=py37_0
  • defaults/linux-64::html5lib==1.0.1=py37_0
  • defaults/linux-64::pycrypto==2.6.1=py37h14c3975_9

........... text deleted for convenience --------------

  • defaults/linux-64::tk==8.6.8=hbc83047_0
  • defaults/linux-64::spyder==3.3.3=py37_0
  • defaults/linux-64::more-itertools==6.0.0=py37_0
  • defaults/linux-64::alabaster==0.7.12=py37_0
  • defaults/linux-64::colorama==0.4.1=py37_0
    done

==> WARNING: A newer version of conda exists. <==
current version: 4.7.5
latest version: 4.7.12

Please update conda by running

$ conda update -n base -c defaults conda

Package Plan

environment location: /home/john/anaconda3

added / updated specs:
- conda

The following NEW packages will be INSTALLED:

_anaconda_depends pkgs/main/linux-64::_anaconda_depends-2019.03-py37_0
_libgcc_mutex pkgs/main/linux-64::_libgcc_mutex-0.1-main
intel-openmp pkgs/main/linux-64::intel-openmp-2019.4-243
libstdcxx-ng pkgs/main/linux-64::libstdcxx-ng-9.1.0-hdf63c60_0
mkl pkgs/main/linux-64::mkl-2019.4-243

The following packages will be UPDATED:

ca-certificates 2019.1.23-0 --> 2019.8.28-0

The following packages will be DOWNGRADED:

anaconda 2019.03-py37_0 --> custom-py37_1

Proceed ([y]/n)? y

Preparing transaction: done
Verifying transaction: done
Executing transaction: done
ERROR conda.core.link:_execute(637): An error occurred while installing package 'None'.
AssertionError()
Attempting to roll back.

Rolling back transaction: done

AssertionError()
()
AssertionError()
AssertionError()**_

What is the best plan forward? Do I have to destroy the env and reinstall anaconda from scratch and rebuild everything?

@prusswan
Copy link

prusswan commented Nov 20, 2019

Had to do conda update anaconda twice. The first time got it to a custom version (2019.3-py37_0 --> custom-py37_1), the next one to 2019.10-py37_0

Edit: Still had other errors, ended up uninstalling 2019.3 and installing fresh 2019.10

@junpuf
Copy link

junpuf commented Apr 2, 2020

What's happening here is this:

1. anaconda is a metapackage. Each version consists of a set of versions that have all gone through QA together as a set.  If you change any version of any package in that collection, you no longer have that metapackage, because you have strayed from that known set.  There is a special version of that metapackage, custom, that is meant to handle this relaxation of constraints.  The "custom" version depends only on a particular version of python - it removes the constraints on all other packages.

2. conda 4.7 builds up its candidates for addition differently from earlier conda versions.  It starts with specs from the history, and tries to constrain things where it can, to speed up the solve.  When conda finds the anaconda metapackage with the "custom" version, it keeps it, but all of those other dependencies are now orphaned.  This is why conda is removing them - they have no spec in the history that tells conda to keep them.

You can restore these by running conda install --only-deps anaconda. From then on, all of those packages are considered part of your explicit history, and you won't have further problems like this.

@msarahan

In my recent experience with #9807 conda install --only-deps anaconda didn't help with the situation.

In my trial, after conda removed all packages that comes with anaconda metapackage, I used conda install --only-deps anaconda to restore them, at this point my expectation is that they won't be removed again if I conda remove -y pytest, however that's not the case. All of those packages again being removed from my environment.

@SomePersonSomeWhereInTheWorld

On Fedora 32 with Python 3.7 I've tried every variation from conda install --only-deps anaconda, to uninstalling setuptools from pip, and trying to install it via conda to conda update -n base -c defaults conda --force,

It always fails with the setuptools dependency.

## Package Plan ##

  environment location: /usr/local/bin/anaconda3

  added / updated specs:
    - _anaconda_depends
    - anaconda


The following NEW packages will be INSTALLED:

  _anaconda_depends  pkgs/main/linux-64::_anaconda_depends-2019.10-py37_0
  fsspec             pkgs/main/noarch::fsspec-0.7.4-py_0
  importlib-metadata pkgs/main/linux-64::importlib-metadata-1.7.0-py37_0
  importlib_metadata pkgs/main/noarch::importlib_metadata-1.7.0-0
  iniconfig          pkgs/main/noarch::iniconfig-1.0.1-py_0
  py                 pkgs/main/noarch::py-1.9.0-py_0
  pycodestyle        pkgs/main/noarch::pycodestyle-2.6.0-py_0
  pyflakes           pkgs/main/noarch::pyflakes-2.2.0-py_0
  pytest             pkgs/main/linux-64::pytest-6.0.1-py37_0
  ripgrep            pkgs/main/linux-64::ripgrep-11.0.2-he32d670_0
  setuptools         pkgs/main/linux-64::setuptools-49.6.0-py37_0
  tbb                pkgs/main/linux-64::tbb-2020.0-hfd86e86_0
  toml               pkgs/main/noarch::toml-0.10.1-py_0

The following packages will be UPDATED:

  ca-certificates                               2019.5.15-0 --> 2020.6.24-0
  openssl                                 1.1.1c-h7b6447c_1 --> 1.1.1g-h7b6447c_0


Proceed ([y]/n)? y

Preparing transaction: done
Verifying transaction: failed

RemoveError: 'setuptools' is a dependency of conda and cannot be removed from conda's operating environment.

Should I just uninstall Anaconda Python completely and install 3.8?

@SamSeven-7
Copy link

Hi,
From Anaconda Home, I only have VS Code (but I can use my Jupyter notebook). I wanted to go to Environments and install Plotly, but can't see this in my Not Installted.
So my questions:

  • How do I see all the packages in the Home tab?
  • How do I install Plotly?

I have tried everything listed above, e.g. conda install anaconda, my reply: 'conda' is not recognized as an internal or external command, operable program or batch file.

Please help

@kenodegard kenodegard added type::support neither a bug nor feature, is really just a user having questions or difficulty somewhere and removed type::question labels Jan 18, 2022
@github-actions github-actions bot added the locked [bot] locked due to inactivity label Jan 20, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
¡breaking! used to indicate that the code change will likely require a minor or major version bump locked [bot] locked due to inactivity pending::feedback indicates we are waiting on feedback from the user source::community catch-all for issues filed by community members type::support neither a bug nor feature, is really just a user having questions or difficulty somewhere
Projects
None yet
Development

Successfully merging a pull request may close this issue.