conda / conda

A system-level, binary package and environment manager running on all major operating systems and platforms.
https://docs.conda.io/projects/conda/
Other
6.47k stars 1.68k forks source link

can't install anything using conda, it hangs in solving environment #8051

Closed solegalli closed 1 year ago

solegalli commented 5 years ago

Hello,

I don't seem to be able to install anything using conda. It hangs in "solving environment".

I tried: conda install -c anaconda pip conda install conda-build conda update conda conda install c- anaconda pandas

The all make conda try and resolve the environment until it crashes.

conda config --show-sources

gives:

channels:

I used to have conda-forge there, but I removed it after reading some threads. Either with or without I have the same problems.

I have conda 4.5.2 on windows.

Can you please help?

nickmacro commented 5 years ago

Hi, I appear to be having the same issue. conda was working in early December and I have not updated it since.

Steps to reproduce

  1. conda install python
  2. obtain the following error message
(base) C:\Users\nmacr>conda install python
Solving environment: failed

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

    Traceback (most recent call last):
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\core\subdir_data.py", line 216, in _load
        mod_etag_headers.get('_mod'))
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\core\subdir_data.py", line 553, in fetch_repodata_remote_request
        raise Response304ContentUnchanged()
    conda.core.subdir_data.Response304ContentUnchanged

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\exceptions.py", line 819, in __call__
        return func(*args, **kwargs)
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\cli\main.py", line 78, in _main
        exit_code = do_call(args, p)
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\cli\conda_argparse.py", line 77, in do_call
        exit_code = getattr(module, func_name)(args, parser)
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\cli\main_install.py", line 11, in execute
        install(args, parser, 'install')
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\cli\install.py", line 235, in install
        force_reinstall=context.force,
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\core\solve.py", line 505, in solve_for_transaction
        force_remove, force_reinstall)
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\core\solve.py", line 438, in solve_for_diff
        final_precs = self.solve_final_state(deps_modifier, prune, ignore_pinned, force_remove)
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\core\solve.py", line 179, in solve_final_state
        index, r = self._prepare(prepared_specs)
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\core\solve.py", line 560, in _prepare
        self.subdirs, prepared_specs)
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\core\index.py", line 215, in get_reduced_index
        new_records = query_all(spec)
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\core\index.py", line 184, in query_all
        return tuple(concat(future.result() for future in as_completed(futures)))
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\core\subdir_data.py", line 94, in query
        self.load()
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\core\subdir_data.py", line 148, in load
        _internal_state = self._load()
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\core\subdir_data.py", line 222, in _load
        mod_etag_headers.get('_mod'))
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\core\subdir_data.py", line 269, in _read_local_repdata
        _internal_state = self._process_raw_repodata_str(raw_repodata_str)
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\core\subdir_data.py", line 353, in _process_raw_repodata_str
        package_record = PackageRecord(**info)
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\_vendor\auxlib\entity.py", line 719, in __call__
        instance = super(EntityType, cls).__call__(*args, **kwargs)
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\_vendor\auxlib\entity.py", line 736, in __init__
        setattr(self, key, kwargs[key])
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\_vendor\auxlib\entity.py", line 427, in __set__
        instance.__dict__[self.name] = self.validate(instance, self.box(instance, instance.__class__, val))
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\models\records.py", line 102, in box
        val = tuple(f for f in (ff.strip() for ff in val) if f)
    TypeError: 'NoneType' object is not iterable

`$ C:\Users\nmacr\Miniconda3\Scripts\conda install python`

  environment variables:
                 CIO_TEST=<not set>
        CONDA_DEFAULT_ENV=base
                CONDA_EXE=C:\Users\nmacr\Miniconda3\Scripts\conda.exe
             CONDA_PREFIX=C:\Users\nmacr\Miniconda3
    CONDA_PROMPT_MODIFIER=(base)
         CONDA_PYTHON_EXE=C:\Users\nmacr\Miniconda3\python.exe
               CONDA_ROOT=C:\Users\nmacr\Miniconda3
              CONDA_SHLVL=1
                 HOMEPATH=\Users\nmacr
          MOZ_PLUGIN_PATH=C:\PROGRAM FILES (X86)\FOXIT SOFTWARE\FOXIT READER\plugins\
                     PATH=C:\Users\nmacr\Miniconda3;C:\Users\nmacr\Miniconda3\Library\mingw-w64\
                          bin;C:\Users\nmacr\Miniconda3\Library\usr\bin;C:\Users\nmacr\Miniconda
                          3\Library\bin;C:\Users\nmacr\Miniconda3\Scripts;C:\Users\nmacr\Minicon
                          da3\bin;C:\Program Files\Docker\Docker\Resources\bin;C:\Program Files
                          (x86)\Common Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\jav
                          apath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDO
                          WS\System32\WindowsPowerShell\v1.0\;C:\Python27;C:\Program
                          Files\Git\cmd;C:\Program Files\MiKTeX 2.9\miktex\bin\x64\;;C:\WINDOWS\
                          System32\OpenSSH\;C:\ProgramData\chocolatey\bin;C:\Program
                          Files\nodejs\;C:\Program Files\Microsoft VS Code\bin;C:\Users\nmacr\Ap
                          pData\Local\Mu\bin;C:\Users\nmacr\AppData\Local\Microsoft\WindowsApps;
                          C:\Program Files\Microsoft VS
                          Code\bin;C:\Users\nmacr\AppData\Local\Box\Box Edit\;C:\Users\nmacr\App
                          Data\Local\GitHubDesktop\bin;C:\Users\nmacr\AppData\Local\Microsoft\Wi
                          ndowsApps;C:\Users\nmacr\AppData\Roaming\npm;C:\Users\nmacr\Miniconda3
                          ;C:\Users\nmacr\Miniconda3\Scripts;;C:\Users\nmacr\Miniconda3\lib\site
                          -packages\pywin32_system32;C:\Users\nmacr\Miniconda3\lib\site-
                          packages\pywin32_system32
             PSMODULEPATH=C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\Windows
                          PowerShell\v1.0\Modules
         PYTHONIOENCODING=1252
       REQUESTS_CA_BUNDLE=<not set>
            SSL_CERT_FILE=<not set>

     active environment : base
    active env location : C:\Users\nmacr\Miniconda3
            shell level : 1
       user config file : C:\Users\nmacr\.condarc
 populated config files : C:\Users\nmacr\.condarc
          conda version : 4.5.4
    conda-build version : not installed
         python version : 3.6.5.final.0
       base environment : C:\Users\nmacr\Miniconda3  (writable)
           channel URLs : https://conda.anaconda.org/conda-forge/win-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://repo.anaconda.com/pkgs/main/win-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/free/win-64
                          https://repo.anaconda.com/pkgs/free/noarch
                          https://repo.anaconda.com/pkgs/r/win-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/pro/win-64
                          https://repo.anaconda.com/pkgs/pro/noarch
                          https://repo.anaconda.com/pkgs/msys2/win-64
                          https://repo.anaconda.com/pkgs/msys2/noarch
          package cache : C:\Users\nmacr\Miniconda3\pkgs
                          C:\Users\nmacr\AppData\Local\conda\conda\pkgs
       envs directories : C:\Users\nmacr\Miniconda3\envs
                          C:\Users\nmacr\AppData\Local\conda\conda\envs
                          C:\Users\nmacr\.conda\envs
               platform : win-64
             user-agent : conda/4.5.4 requests/2.18.4 CPython/3.6.5 Windows/10 Windows/10.0.17134
          administrator : False
             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]: 

conda info

     active environment : base
    active env location : C:\Users\nmacr\Miniconda3
            shell level : 1
       user config file : C:\Users\nmacr\.condarc
 populated config files : C:\Users\nmacr\.condarc
          conda version : 4.5.4
    conda-build version : not installed
         python version : 3.6.5.final.0
       base environment : C:\Users\nmacr\Miniconda3  (writable)
           channel URLs : https://conda.anaconda.org/conda-forge/win-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://repo.anaconda.com/pkgs/main/win-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/free/win-64
                          https://repo.anaconda.com/pkgs/free/noarch
                          https://repo.anaconda.com/pkgs/r/win-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/pro/win-64
                          https://repo.anaconda.com/pkgs/pro/noarch
                          https://repo.anaconda.com/pkgs/msys2/win-64
                          https://repo.anaconda.com/pkgs/msys2/noarch
          package cache : C:\Users\nmacr\Miniconda3\pkgs
                          C:\Users\nmacr\AppData\Local\conda\conda\pkgs
       envs directories : C:\Users\nmacr\Miniconda3\envs
                          C:\Users\nmacr\AppData\Local\conda\conda\envs
                          C:\Users\nmacr\.conda\envs
               platform : win-64
             user-agent : conda/4.5.4 requests/2.18.4 CPython/3.6.5 Windows/10 Windows/10.0.17134
          administrator : False
             netrc file : None
           offline mode : False

conda config --show-sources

==> C:\Users\nmacr\.condarc <==
channels:
  - conda-forge
  - defaults

conda list --show-channel-urls

# packages in environment at C:\Users\nmacr\Miniconda3:
#
# Name                    Version                   Build  Channel
asn1crypto                0.24.0                   py36_0    defaults
ca-certificates           2018.03.07                    0    defaults
certifi                   2018.4.16                py36_0    defaults
cffi                      1.11.5           py36h945400d_0    defaults
chardet                   3.0.4            py36h420ce6e_1    defaults
conda                     4.5.4                    py36_0    defaults
conda-env                 2.6.0                h36134e3_1    defaults
console_shortcut          0.1.1                h6bb2dd7_3    defaults
cryptography              2.2.2            py36hfa6e2cd_0    defaults
idna                      2.6              py36h148d497_1    defaults
menuinst                  1.4.11           py36hfa6e2cd_0    defaults
openssl                   1.0.2o               h8ea7d77_0    defaults
pip                       9.0.3                    py36_0    defaults
pycosat                   0.6.3            py36h413d8a4_0    defaults
pycparser                 2.18             py36hd053e01_1    defaults
pyopenssl                 17.5.0           py36h5b7d817_0    defaults
pysocks                   1.6.8                    py36_0    defaults
python                    3.6.5                h0c2934d_0    defaults
pywin32                   223              py36hfa6e2cd_0    defaults
requests                  2.18.4           py36h4371aae_1    defaults
ruamel_yaml               0.15.35          py36hfa6e2cd_1    defaults
setuptools                39.0.1                   py36_0    defaults
six                       1.11.0           py36h4db2310_1    defaults
urllib3                   1.22             py36h276f60a_0    defaults
vc                        14                   h0510ff6_3    defaults
vs2015_runtime            14.0.25123                    3    defaults
wheel                     0.31.0                   py36_0    defaults
win_inet_pton             1.0.1            py36he67d7fd_1    defaults
wincertstore              0.2              py36h7fe50ca_0    defaults
yaml                      0.1.7                hc54c509_2    defaults

Please let me know if any additional information is required to help debug this problem.

EricThomson commented 5 years ago

I started having this problem today. To try to fix it, I uninstalled anaconda, and installed miniconda and am still getting the same error message as @NickMacro . E.g., when I try to update or install anything, I get the same error.

I am in Windows 10.

Output of conda info:

 active environment : base
active env location : C:\Users\Eric\Miniconda3
        shell level : 1
   user config file : C:\Users\Eric\.condarc

populated config files : C:\Users\Eric.condarc conda version : 4.5.12 conda-build version : not installed python version : 3.7.1.final.0 base environment : C:\Users\Eric\Miniconda3 (writable) channel URLs : https://conda.anaconda.org/conda-forge/win-64 https://conda.anaconda.org/conda-forge/noarch https://conda.anaconda.org/t//ramonaoptics/win-64 https://conda.anaconda.org/t//ramonaoptics/noarch https://repo.anaconda.com/pkgs/main/win-64 https://repo.anaconda.com/pkgs/main/noarch https://repo.anaconda.com/pkgs/free/win-64 https://repo.anaconda.com/pkgs/free/noarch https://repo.anaconda.com/pkgs/r/win-64 https://repo.anaconda.com/pkgs/r/noarch https://repo.anaconda.com/pkgs/pro/win-64 https://repo.anaconda.com/pkgs/pro/noarch https://repo.anaconda.com/pkgs/msys2/win-64 https://repo.anaconda.com/pkgs/msys2/noarch package cache : C:\Users\Eric\Miniconda3\pkgs C:\Users\Eric\AppData\Local\conda\conda\pkgs envs directories : C:\Users\Eric\Miniconda3\envs C:\Users\Eric\AppData\Local\conda\conda\envs C:\Users\Eric.conda\envs platform : win-64 user-agent : conda/4.5.12 requests/2.21.0 CPython/3.7.1 Windows/10 Windows/10.0.17134 administrator : False netrc file : None offline mode : False

Output, after installing Miniconda, of conda update conda:

Solving environment: failed

ERROR REPORT

Traceback (most recent call last):
  File "C:\Users\Eric\Miniconda3\lib\site-packages\conda\exceptions.py", line 819, in __call__
    return func(*args, **kwargs)
  File "C:\Users\Eric\Miniconda3\lib\site-packages\conda\cli\main.py", line 78, in _main
    exit_code = do_call(args, p)
  File "C:\Users\Eric\Miniconda3\lib\site-packages\conda\cli\conda_argparse.py", line 77, in do_call
    exit_code = getattr(module, func_name)(args, parser)
  File "C:\Users\Eric\Miniconda3\lib\site-packages\conda\cli\main_update.py", line 14, in execute
    install(args, parser, 'update')
  File "C:\Users\Eric\Miniconda3\lib\site-packages\conda\cli\install.py", line 235, in install
    force_reinstall=context.force,
  File "C:\Users\Eric\Miniconda3\lib\site-packages\conda\core\solve.py", line 518, in solve_for_transaction
    force_remove, force_reinstall)
  File "C:\Users\Eric\Miniconda3\lib\site-packages\conda\core\solve.py", line 451, in solve_for_diff
    final_precs = self.solve_final_state(deps_modifier, prune, ignore_pinned, force_remove)
  File "C:\Users\Eric\Miniconda3\lib\site-packages\conda\core\solve.py", line 180, in solve_final_state
    index, r = self._prepare(prepared_specs)
  File "C:\Users\Eric\Miniconda3\lib\site-packages\conda\core\solve.py", line 592, in _prepare
    self.subdirs, prepared_specs)
  File "C:\Users\Eric\Miniconda3\lib\site-packages\conda\core\index.py", line 215, in get_reduced_index
    new_records = query_all(spec)
  File "C:\Users\Eric\Miniconda3\lib\site-packages\conda\core\index.py", line 184, in query_all
    return tuple(concat(future.result() for future in as_completed(futures)))
  File "C:\Users\Eric\Miniconda3\lib\site-packages\conda\core\subdir_data.py", line 95, in query
    self.load()
  File "C:\Users\Eric\Miniconda3\lib\site-packages\conda\core\subdir_data.py", line 149, in load
    _internal_state = self._load()
  File "C:\Users\Eric\Miniconda3\lib\site-packages\conda\core\subdir_data.py", line 218, in _load
    mod_etag_headers.get('_mod'))
  File "C:\Users\Eric\Miniconda3\lib\site-packages\conda\core\subdir_data.py", line 280, in _read_local_repdata
    _internal_state = self._process_raw_repodata_str(raw_repodata_str)
  File "C:\Users\Eric\Miniconda3\lib\site-packages\conda\core\subdir_data.py", line 374, in _process_raw_repodata_str
    package_record = PackageRecord(**info)
  File "C:\Users\Eric\Miniconda3\lib\site-packages\conda\_vendor\auxlib\entity.py", line 719, in __call__
    instance = super(EntityType, cls).__call__(*args, **kwargs)
  File "C:\Users\Eric\Miniconda3\lib\site-packages\conda\_vendor\auxlib\entity.py", line 736, in __init__
    setattr(self, key, kwargs[key])
  File "C:\Users\Eric\Miniconda3\lib\site-packages\conda\_vendor\auxlib\entity.py", line 427, in __set__
    instance.__dict__[self.name] = self.validate(instance, self.box(instance, instance.__class__, val))
  File "C:\Users\Eric\Miniconda3\lib\site-packages\conda\models\records.py", line 102, in box
    val = tuple(f for f in (ff.strip() for ff in val) if f)
TypeError: 'NoneType' object is not iterable

$ C:\Users\Eric\Miniconda3\Scripts\conda update conda

environment variables: CIO_TEST= CONDA_DEFAULT_ENV=base CONDA_EXE=C:\Users\Eric\Miniconda3\Scripts\conda.exe CONDA_PREFIX=C:\Users\Eric\Miniconda3 CONDA_PROMPT_MODIFIER=(base) CONDA_PYTHON_EXE=C:\Users\Eric\Miniconda3\python.exe CONDA_ROOT=C:\Users\Eric\Miniconda3 CONDA_SHLVL=1 HOMEPATH=\Users\Eric PATH=C:\Users\Eric\Miniconda3;C:\Users\Eric\Miniconda3\Library\mingw-w64\bi n;C:\Users\Eric\Miniconda3\Library\usr\bin;C:\Users\Eric\Miniconda3\Li brary\bin;C:\Users\Eric\Miniconda3\Scripts;C:\Users\Eric\Miniconda3\bi n;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\iCLS\;C:\Program Files\Intel\Intel(R) Management Engine Com ponents\iCLS\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem; C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSS H\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\MATLAB\R2018b\runtime\win64;C:\Program Files\MATLAB\R2018b\bin;C :\Users\Eric\AppData\Local\Microsoft\WindowsApps;C:\Users\Eric\AppData \Local\atom\bin PSMODULEPATH=C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\Windows PowerShell\v1.0\Modules PYTHONIOENCODING=1252 REQUESTS_CA_BUNDLE= SSL_CERT_FILE=

kylekeppler commented 5 years ago

I am having the same problem as Eric and Nick. Removing conda-forge from my channels appears to be working.

ougx commented 5 years ago

Having the same issue. conda install -c conda-forge some_pkgs does not work either.

I am having the same problem as Eric and Nick. Removing conda-forge from my channels appears to be working.

sevas commented 5 years ago

I observe the same with conda 4.5, although no issue with conda 4.3.

tharma3 commented 5 years ago

Also having the same issue. I'm on Windows 7 and uninstalled and reinstalled Anaconda 3.7, version 4.5.12, no luck.

'(base) C:\Users\mnorrick>conda update conda Solving environment: failed

Traceback (most recent call last):
  File "C:\Users\mnorrick\anaconda3\lib\site-packages\conda\exceptions.py",

line 819, in call return func(args, kwargs) File "C:\Users\mnorrick\anaconda3\lib\site-packages\conda\cli\main.py", li ne 78, in _main exit_code = do_call(args, p) File "C:\Users\mnorrick\anaconda3\lib\site-packages\conda\cli\conda_argpar se.py", line 77, in do_call exit_code = getattr(module, func_name)(args, parser) File "C:\Users\mnorrick\anaconda3\lib\site-packages\conda\cli\main_update. py", line 14, in execute install(args, parser, 'update') File "C:\Users\mnorrick\anaconda3\lib\site-packages\conda\cli\install.py", line 235, in install force_reinstall=context.force, File "C:\Users\mnorrick\anaconda3\lib\site-packages\conda\core\solve.py", line 518, in solve_for_transaction force_remove, force_reinstall) File "C:\Users\mnorrick\anaconda3\lib\site-packages\conda\core\solve.py", line 451, in solve_for_diff final_precs = self.solve_final_state(deps_modifier, prune, ignore_pinned , force_remove) File "C:\Users\mnorrick\anaconda3\lib\site-packages\conda\core\solve.py", line 180, in solve_final_state index, r = self._prepare(prepared_specs) File "C:\Users\mnorrick\anaconda3\lib\site-packages\conda\core\solve.py", line 592, in _prepare self.subdirs, prepared_specs) File "C:\Users\mnorrick\anaconda3\lib\site-packages\conda\core\index.py", line 215, in get_reduced_index new_records = query_all(spec) File "C:\Users\mnorrick\anaconda3\lib\site-packages\conda\core\index.py", line 184, in query_all return tuple(concat(future.result() for future in as_completed(futures)) ) File "C:\Users\mnorrick\anaconda3\lib\site-packages\conda\core\subdir_data .py", line 95, in query self.load() File "C:\Users\mnorrick\anaconda3\lib\site-packages\conda\core\subdir_data .py", line 149, in load _internal_state = self._load() File "C:\Users\mnorrick\anaconda3\lib\site-packages\conda\core\subdir_data .py", line 218, in _load mod_etag_headers.get('_mod')) File "C:\Users\mnorrick\anaconda3\lib\site-packages\conda\core\subdir_data .py", line 280, in _read_local_repdata _internal_state = self._process_raw_repodata_str(raw_repodata_str) File "C:\Users\mnorrick\anaconda3\lib\site-packages\conda\core\subdir_data .py", line 374, in _process_raw_repodata_str package_record = PackageRecord(info) File "C:\Users\mnorrick\anaconda3\lib\site-packages\conda_vendor\auxlib\e ntity.py", line 719, in call instance = super(EntityType, cls).call(args, **kwargs) File "C:\Users\mnorrick\anaconda3\lib\site-packages\conda_vendor\auxlib\e ntity.py", line 736, in init setattr(self, key, kwargs[key]) File "C:\Users\mnorrick\anaconda3\lib\site-packages\conda_vendor\auxlib\e ntity.py", line 427, in set instance.dict[self.name] = self.validate(instance, self.box(instance , instance.class, val)) File "C:\Users\mnorrick\anaconda3\lib\site-packages\conda\models\records.p y", line 102, in box val = tuple(f for f in (ff.strip() for ff in val) if f) TypeError: 'NoneType' object is not iterable

$ C:\Users\mnorrick\anaconda3\Scripts\conda update conda

environment variables: CIO_TEST= CONDA_DEFAULT_ENV=base CONDA_EXE=C:\Users\mnorrick\anaconda3\Scripts\conda.exe CONDA_PREFIX=C:\Users\mnorrick\anaconda3 CONDA_PROMPT_MODIFIER=(base) CONDA_PYTHON_EXE=C:\Users\mnorrick\anaconda3\python.exe CONDA_ROOT=C:\Users\mnorrick\anaconda3 CONDA_SHLVL=1 HOMEPATH=\Users\mnorrick PATH=C:\Users\mnorrick\anaconda3;C:\Users\mnorrick\anaconda 3\Library\mingw- w64\bin;C:\Users\mnorrick\anaconda3\Library\usr\bin;C: \Users\mnorrick\ anaconda3\Library\bin;C:\Users\mnorrick\anaconda3\Scri pts;C:\Users\mno rrick\anaconda3\bin;C:\ProgramData\Oracle\Java\javapat h;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\instantclient_12_2;C:\Pr ogram Files\dotnet\;C:\ProgramData\mnorrick\GitHubDesktop\bi n PSMODULEPATH=C:\windows\system32\WindowsPowerShell\v1.0\Modules\ PYTHONIOENCODING=1252 REQUESTS_CA_BUNDLE= SSL_CERT_FILE=

 active environment : base
active env location : C:\Users\mnorrick\anaconda3
        shell level : 1
   user config file : C:\Users\mnorrick\.condarc

populated config files : C:\Users\mnorrick.condarc conda version : 4.5.12 conda-build version : 3.17.6 python version : 3.7.1.final.0 base environment : C:\Users\mnorrick\anaconda3 (writable) channel URLs : https://conda.anaconda.org/conda-forge/win-64 https://conda.anaconda.org/conda-forge/noarch https://repo.anaconda.com/pkgs/main/win-64 https://repo.anaconda.com/pkgs/main/noarch https://repo.anaconda.com/pkgs/free/win-64 https://repo.anaconda.com/pkgs/free/noarch https://repo.anaconda.com/pkgs/r/win-64 https://repo.anaconda.com/pkgs/r/noarch https://repo.anaconda.com/pkgs/pro/win-64 https://repo.anaconda.com/pkgs/pro/noarch https://repo.anaconda.com/pkgs/msys2/win-64 https://repo.anaconda.com/pkgs/msys2/noarch package cache : C:\Users\mnorrick\anaconda3\pkgs C:\Users\mnorrick\AppData\Local\conda\conda\pkgs envs directories : C:\Users\mnorrick\anaconda3\envs C:\Users\mnorrick\AppData\Local\conda\conda\envs C:\Users\mnorrick.conda\envs platform : win-64 user-agent : conda/4.5.12 requests/2.21.0 CPython/3.7.1 Windows/7 W indows/6.1.7601 administrator : False 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?'

EricThomson commented 5 years ago

As suggested by @solegalli, I was able to fix it by removing the conda-forge channel. To see if you have conda-forge installed, you can open your configuration file in .condarc or just enter conda config --get channels at your conda prompt. I removed the conda-forge line from .condarc, and I'm no longer getting the error. You can also enter conda config --remove channels conda-forge to remove it.

Strangely, after removing the channel, I've added it back and the error has not returned.

Edit: Note I did uninstall anaconda yesterday before trying this today, so there is a chance that was important. But the error did not disappear until I removed the channel.

nickmacro commented 5 years ago

Removing the conda-forge channel appears to remove this behavior and it continues to work after add conda-forge.

The following steps worked to resolve the issue.

  1. conda config --remove channels conda-forge
  2. conda config --add channels conda-forge

No other changes were required to fix this on my system.

Thank you @EricThomson and @solegalli for figuring this out!

soapy1 commented 5 years ago

There were issues with repodata for conda-forge packages yesterday afternoon causing some of the errors above. The issue should be fixed now, so you should be able to install without issues using the conda-forge channel. @solegalli is this still an issue for you?

solegalli commented 5 years ago

My issue is not resolved by adding / removing the conda-forge channel. I will try re-installing anaconda.

ougx commented 5 years ago

It works for me today with conda-forge.

soapy1 commented 5 years ago

@solegalli I'll need a bit more information to get to the bottom of what's going on. Could you give me the output of conda info, as well as the command you are running that is broken and the output of that command.

solegalli commented 5 years ago

I tried: conda install -c anaconda pip conda install conda-build conda update conda conda install c- anaconda pandas

The output of any of this is python crashing. And the install aborting. The conda prompt does not close though.

conda info `

active environment : None user config file : C:\Users\Sole.condarc populated config files : C:\Users\Sole.condarc conda version : 4.5.2 conda-build version : not installed python version : 3.6.1.final.0 base environment : C:\Users\Sole\Anaconda3 (writable) channel URLs : https://conda.anaconda.org/conda-forge/win-64 https://conda.anaconda.org/conda-forge/noarch https://repo.continuum.io/pkgs/msys2/win-64 https://repo.continuum.io/pkgs/msys2/noarch package cache : C:\Users\Sole\Anaconda3\pkgs C:\Users\Sole\AppData\Local\conda\conda\pkgs envs directories : C:\Users\Sole\Anaconda3\envs C:\Users\Sole\AppData\Local\conda\conda\envs C:\Users\Sole.conda\envs platform : win-64 user-agent : conda/4.5.2 requests/2.14.2 CPython/3.6.1 Windows/8.1 Windows/6.3.9600 administrator : False netrc file : None offline mode : False `

$ conda config --show-sources ==> C:\Users\Sole.condarc <== ssl_verify: True channels: - conda-forge - defaults default_channels: - https://repo.continuum.io/pkgs/msys2

Thank you

soapy1 commented 5 years ago

I can't reproduce your issue. Can you share the output of conda config --show

solegalli commented 5 years ago

conda config --show add_anaconda_token: True add_pip_as_python_dependency: True aggressive_update_packages:

soapy1 commented 5 years ago

I don't think you need

custom_channels:
  - pkgs/msys2: https://repo.continuum.io
custom_multichannels:
 - defaults: ["https://repo.continuum.io/pkgs/msys2"]

or

default_channels:
 - https://repo.continuum.io/pkgs/msys2
AshtonCoop commented 5 years ago

I'm facing the same issue here. Installed Anaconda (latest version) on Mac. 1st time install on this Mac. I was trying to install several packages in Anaconda Navigator root environment but it gets stuck at Solving Package Specification.

From .condarc file: ssl_verify: true channels:

From conda info:

active environment : base active env location : /anaconda3 shell level : 1 user config file : /Users/ashton/.condarc populated config files : /Users/ashton/.condarc conda version : 4.5.12 conda-build version : 3.17.6 python version : 3.7.1.final.0 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/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://repo.continuum.io/pkgs/free/osx-64 https://repo.continuum.io/pkgs/free/noarch package cache : /anaconda3/pkgs /Users/ashton/.conda/pkgs envs directories : /anaconda3/envs /Users/ashton/.conda/envs platform : osx-64 user-agent : conda/4.5.12 requests/2.21.0 CPython/3.7.1 Darwin/18.2.0 OSX/10.14.2 UID:GID : 501:20 netrc file : None offline mode : False

Latest Mac version and latest Anaconda version. Thx!

dschreij commented 5 years ago

I also have this problem. Removing and readding conda-forge does not fix it, sadly. Any updates on the possible cause of this?

assumptionsoup commented 5 years ago

I'm having the same issue. I've reinstalled anaconda. I've removed the conda-forge. Attempting to update from command line conda update conda fails. Conda fails when trying to create any environment, or install any package. Effectively, conda is now completely broken for me.

assumptionsoup commented 5 years ago

Conda lists the following as my default channels:

  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/free
  - https://repo.anaconda.com/pkgs/r
  - https://repo.anaconda.com/pkgs/pro
  - https://repo.anaconda.com/pkgs/msys2

Changing my .condarc from

channels:
  - conda-forge
  - defaults

to

channels:
  - conda-forge
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/free
  - https://repo.anaconda.com/pkgs/r
  - https://repo.anaconda.com/pkgs/pro

To explicitly remove https://repo.anaconda.com/pkgs/msys2 appears to have fixed the problem for me. Thanks to @soapy1 for the hint!

adrianlungu commented 5 years ago

Seems to have been an OpenSSL issue for me. Trying to use conda search was what gave it away; after installing OpenSSL, it didn't hang anymore.

ghost commented 5 years ago

I am unable to install some R packages on ubuntu when same commands work fine on Windows.

Below warning message is shown:

Warning message: “unable to access index for repository http://R-Forge.R-project.org/src/contrib: Line starting '<!DOCTYPE HTML PUBLI ...' is malformed!”

Any solutions?

Okroshiashvili commented 5 years ago

Up until now, I had the same problem. Running conda update conda or conda install <packagename> my computer was unresponsive almost 1 hour and after that in the stage of solving environment conda was giving, solving environment: killed

I removed conda-forge and the problem solved. Works as expected. I use Linux mint.

Thanks, @solegalli and others for suggestions

pcuci commented 5 years ago

Upgrading to conda 4.7.11-py37_0 worked for me; was then able install the package that was hanging on "solving environment" in my local python2.7 anaconda environment.

(base) C:\WINDOWS\system32>conda update conda
Collecting package metadata: done
Solving environment: |
The environment is inconsistent, please check the package plan carefully
The following packages are causing the inconsistency:

  - defaults/win-64::anaconda==custom=py37_0
done

## Package Plan ##

  environment location: C:\tools\Anaconda3

  added / updated specs:
    - conda

The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    certifi-2019.6.16          |           py37_1         156 KB
    conda-4.7.11               |           py37_0         3.0 MB
    ------------------------------------------------------------
                                           Total:         3.2 MB

The following NEW packages will be INSTALLED:

  conda-package-han~ pkgs/main/win-64::conda-package-handling-1.3.11-py37_0

The following packages will be UPDATED:

  certifi                                   2019.3.9-py37_0 --> 2019.6.16-py37_1
  conda                                       4.6.14-py37_0 --> 4.7.11-py37_0

Proceed ([y]/n)? y

Downloading and Extracting Packages
certifi-2019.6.16    | 156 KB    | ############################################################################ | 100%
conda-4.7.11         | 3.0 MB    | ############################################################################ | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done

(base) C:\WINDOWS\system32>conda install -c anaconda nasm

CondaError: KeyboardInterrupt

Terminate batch job (Y/N)? y

(base) C:\WINDOWS\system32>conda activate py27

(py27) C:\WINDOWS\system32>conda install -c anaconda nasm
Collecting package metadata (repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: C:\tools\Anaconda3\envs\py27

  added / updated specs:
    - nasm

The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    ca-certificates-2019.5.15  |                0         166 KB  anaconda
    certifi-2019.6.16          |           py27_1         156 KB  anaconda
    nasm-2.13.03               |       h62dcd97_1         556 KB  anaconda
    openssl-1.1.1              |       h0c8e037_0         4.8 MB  anaconda
    ------------------------------------------------------------
                                           Total:         5.7 MB

The following NEW packages will be INSTALLED:

  nasm               anaconda/win-64::nasm-2.13.03-h62dcd97_1

The following packages will be UPDATED:

  openssl              pkgs/main::openssl-1.1.1c-h0c8e037_1 --> anaconda::openssl-1.1.1-h0c8e037_0

The following packages will be SUPERSEDED by a higher-priority channel:

  ca-certificates                                 pkgs/main --> anaconda
  certifi                                         pkgs/main --> anaconda

Proceed ([y]/n)? y

Downloading and Extracting Packages
certifi-2019.6.16    | 156 KB    | ############################################################################ | 100%
nasm-2.13.03         | 556 KB    | ############################################################################ | 100%
ca-certificates-2019 | 166 KB    | ############################################################################ | 100%
openssl-1.1.1        | 4.8 MB    | ############################################################################ | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
reywlady commented 5 years ago

In my case, I solved it by setting the variables of the PROXY environment Since Conda did not have internet access to update.

then run

conda update conda

OK, I save my life

gilbertoolimpio commented 5 years ago

Hello!

In my case (windows user) the command conda init cmd.exe when I use the prompt, and conda init powershell.exe when I use a PowerShell console.

I hope this helps!

Nadabouz commented 5 years ago

Hi, I appear to be having the same issue. conda was working in early December and I have not updated it since.

Steps to reproduce

  1. conda install python
  2. obtain the following error message
(base) C:\Users\nmacr>conda install python
Solving environment: failed

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

    Traceback (most recent call last):
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\core\subdir_data.py", line 216, in _load
        mod_etag_headers.get('_mod'))
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\core\subdir_data.py", line 553, in fetch_repodata_remote_request
        raise Response304ContentUnchanged()
    conda.core.subdir_data.Response304ContentUnchanged

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\exceptions.py", line 819, in __call__
        return func(*args, **kwargs)
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\cli\main.py", line 78, in _main
        exit_code = do_call(args, p)
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\cli\conda_argparse.py", line 77, in do_call
        exit_code = getattr(module, func_name)(args, parser)
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\cli\main_install.py", line 11, in execute
        install(args, parser, 'install')
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\cli\install.py", line 235, in install
        force_reinstall=context.force,
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\core\solve.py", line 505, in solve_for_transaction
        force_remove, force_reinstall)
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\core\solve.py", line 438, in solve_for_diff
        final_precs = self.solve_final_state(deps_modifier, prune, ignore_pinned, force_remove)
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\core\solve.py", line 179, in solve_final_state
        index, r = self._prepare(prepared_specs)
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\core\solve.py", line 560, in _prepare
        self.subdirs, prepared_specs)
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\core\index.py", line 215, in get_reduced_index
        new_records = query_all(spec)
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\core\index.py", line 184, in query_all
        return tuple(concat(future.result() for future in as_completed(futures)))
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\core\subdir_data.py", line 94, in query
        self.load()
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\core\subdir_data.py", line 148, in load
        _internal_state = self._load()
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\core\subdir_data.py", line 222, in _load
        mod_etag_headers.get('_mod'))
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\core\subdir_data.py", line 269, in _read_local_repdata
        _internal_state = self._process_raw_repodata_str(raw_repodata_str)
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\core\subdir_data.py", line 353, in _process_raw_repodata_str
        package_record = PackageRecord(**info)
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\_vendor\auxlib\entity.py", line 719, in __call__
        instance = super(EntityType, cls).__call__(*args, **kwargs)
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\_vendor\auxlib\entity.py", line 736, in __init__
        setattr(self, key, kwargs[key])
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\_vendor\auxlib\entity.py", line 427, in __set__
        instance.__dict__[self.name] = self.validate(instance, self.box(instance, instance.__class__, val))
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\models\records.py", line 102, in box
        val = tuple(f for f in (ff.strip() for ff in val) if f)
    TypeError: 'NoneType' object is not iterable

`$ C:\Users\nmacr\Miniconda3\Scripts\conda install python`

  environment variables:
                 CIO_TEST=<not set>
        CONDA_DEFAULT_ENV=base
                CONDA_EXE=C:\Users\nmacr\Miniconda3\Scripts\conda.exe
             CONDA_PREFIX=C:\Users\nmacr\Miniconda3
    CONDA_PROMPT_MODIFIER=(base)
         CONDA_PYTHON_EXE=C:\Users\nmacr\Miniconda3\python.exe
               CONDA_ROOT=C:\Users\nmacr\Miniconda3
              CONDA_SHLVL=1
                 HOMEPATH=\Users\nmacr
          MOZ_PLUGIN_PATH=C:\PROGRAM FILES (X86)\FOXIT SOFTWARE\FOXIT READER\plugins\
                     PATH=C:\Users\nmacr\Miniconda3;C:\Users\nmacr\Miniconda3\Library\mingw-w64\
                          bin;C:\Users\nmacr\Miniconda3\Library\usr\bin;C:\Users\nmacr\Miniconda
                          3\Library\bin;C:\Users\nmacr\Miniconda3\Scripts;C:\Users\nmacr\Minicon
                          da3\bin;C:\Program Files\Docker\Docker\Resources\bin;C:\Program Files
                          (x86)\Common Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\jav
                          apath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDO
                          WS\System32\WindowsPowerShell\v1.0\;C:\Python27;C:\Program
                          Files\Git\cmd;C:\Program Files\MiKTeX 2.9\miktex\bin\x64\;;C:\WINDOWS\
                          System32\OpenSSH\;C:\ProgramData\chocolatey\bin;C:\Program
                          Files\nodejs\;C:\Program Files\Microsoft VS Code\bin;C:\Users\nmacr\Ap
                          pData\Local\Mu\bin;C:\Users\nmacr\AppData\Local\Microsoft\WindowsApps;
                          C:\Program Files\Microsoft VS
                          Code\bin;C:\Users\nmacr\AppData\Local\Box\Box Edit\;C:\Users\nmacr\App
                          Data\Local\GitHubDesktop\bin;C:\Users\nmacr\AppData\Local\Microsoft\Wi
                          ndowsApps;C:\Users\nmacr\AppData\Roaming\npm;C:\Users\nmacr\Miniconda3
                          ;C:\Users\nmacr\Miniconda3\Scripts;;C:\Users\nmacr\Miniconda3\lib\site
                          -packages\pywin32_system32;C:\Users\nmacr\Miniconda3\lib\site-
                          packages\pywin32_system32
             PSMODULEPATH=C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\Windows
                          PowerShell\v1.0\Modules
         PYTHONIOENCODING=1252
       REQUESTS_CA_BUNDLE=<not set>
            SSL_CERT_FILE=<not set>

     active environment : base
    active env location : C:\Users\nmacr\Miniconda3
            shell level : 1
       user config file : C:\Users\nmacr\.condarc
 populated config files : C:\Users\nmacr\.condarc
          conda version : 4.5.4
    conda-build version : not installed
         python version : 3.6.5.final.0
       base environment : C:\Users\nmacr\Miniconda3  (writable)
           channel URLs : https://conda.anaconda.org/conda-forge/win-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://repo.anaconda.com/pkgs/main/win-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/free/win-64
                          https://repo.anaconda.com/pkgs/free/noarch
                          https://repo.anaconda.com/pkgs/r/win-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/pro/win-64
                          https://repo.anaconda.com/pkgs/pro/noarch
                          https://repo.anaconda.com/pkgs/msys2/win-64
                          https://repo.anaconda.com/pkgs/msys2/noarch
          package cache : C:\Users\nmacr\Miniconda3\pkgs
                          C:\Users\nmacr\AppData\Local\conda\conda\pkgs
       envs directories : C:\Users\nmacr\Miniconda3\envs
                          C:\Users\nmacr\AppData\Local\conda\conda\envs
                          C:\Users\nmacr\.conda\envs
               platform : win-64
             user-agent : conda/4.5.4 requests/2.18.4 CPython/3.6.5 Windows/10 Windows/10.0.17134
          administrator : False
             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]: 

conda info

     active environment : base
    active env location : C:\Users\nmacr\Miniconda3
            shell level : 1
       user config file : C:\Users\nmacr\.condarc
 populated config files : C:\Users\nmacr\.condarc
          conda version : 4.5.4
    conda-build version : not installed
         python version : 3.6.5.final.0
       base environment : C:\Users\nmacr\Miniconda3  (writable)
           channel URLs : https://conda.anaconda.org/conda-forge/win-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://repo.anaconda.com/pkgs/main/win-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/free/win-64
                          https://repo.anaconda.com/pkgs/free/noarch
                          https://repo.anaconda.com/pkgs/r/win-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/pro/win-64
                          https://repo.anaconda.com/pkgs/pro/noarch
                          https://repo.anaconda.com/pkgs/msys2/win-64
                          https://repo.anaconda.com/pkgs/msys2/noarch
          package cache : C:\Users\nmacr\Miniconda3\pkgs
                          C:\Users\nmacr\AppData\Local\conda\conda\pkgs
       envs directories : C:\Users\nmacr\Miniconda3\envs
                          C:\Users\nmacr\AppData\Local\conda\conda\envs
                          C:\Users\nmacr\.conda\envs
               platform : win-64
             user-agent : conda/4.5.4 requests/2.18.4 CPython/3.6.5 Windows/10 Windows/10.0.17134
          administrator : False
             netrc file : None
           offline mode : False

conda config --show-sources

==> C:\Users\nmacr\.condarc <==
channels:
  - conda-forge
  - defaults

conda list --show-channel-urls

# packages in environment at C:\Users\nmacr\Miniconda3:
#
# Name                    Version                   Build  Channel
asn1crypto                0.24.0                   py36_0    defaults
ca-certificates           2018.03.07                    0    defaults
certifi                   2018.4.16                py36_0    defaults
cffi                      1.11.5           py36h945400d_0    defaults
chardet                   3.0.4            py36h420ce6e_1    defaults
conda                     4.5.4                    py36_0    defaults
conda-env                 2.6.0                h36134e3_1    defaults
console_shortcut          0.1.1                h6bb2dd7_3    defaults
cryptography              2.2.2            py36hfa6e2cd_0    defaults
idna                      2.6              py36h148d497_1    defaults
menuinst                  1.4.11           py36hfa6e2cd_0    defaults
openssl                   1.0.2o               h8ea7d77_0    defaults
pip                       9.0.3                    py36_0    defaults
pycosat                   0.6.3            py36h413d8a4_0    defaults
pycparser                 2.18             py36hd053e01_1    defaults
pyopenssl                 17.5.0           py36h5b7d817_0    defaults
pysocks                   1.6.8                    py36_0    defaults
python                    3.6.5                h0c2934d_0    defaults
pywin32                   223              py36hfa6e2cd_0    defaults
requests                  2.18.4           py36h4371aae_1    defaults
ruamel_yaml               0.15.35          py36hfa6e2cd_1    defaults
setuptools                39.0.1                   py36_0    defaults
six                       1.11.0           py36h4db2310_1    defaults
urllib3                   1.22             py36h276f60a_0    defaults
vc                        14                   h0510ff6_3    defaults
vs2015_runtime            14.0.25123                    3    defaults
wheel                     0.31.0                   py36_0    defaults
win_inet_pton             1.0.1            py36he67d7fd_1    defaults
wincertstore              0.2              py36h7fe50ca_0    defaults
yaml                      0.1.7                hc54c509_2    defaults

Please let me know if any additional information is required to help debug this problem.

I had the same issue and i solved it by copying the following channels in condarc and instead o f defaults. I'm not sure it's the best way but it worked

                      https://repo.anaconda.com/pkgs/main/noarch

                      https://repo.anaconda.com/pkgs/free/noarch

                      https://repo.anaconda.com/pkgs/r/noarch

                      https://repo.anaconda.com/pkgs/pro/noarch 
gpantalos commented 4 years ago

Same issue. conda info gives:

     active environment : base
    active env location : C:\ProgramData\Anaconda3
            shell level : 1
       user config file : C:\Users\chgepan\.condarc
 populated config files : C:\Users\chgepan\.condarc
          conda version : 4.7.12
    conda-build version : 3.18.8
         python version : 3.7.3.final.0
       virtual packages : __cuda=10.2
       base environment : C:\ProgramData\Anaconda3  (read only)
           channel URLs : https://repo.anaconda.com/pkgs/pro/noarch
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/free/noarch
                          https://repo.anaconda.com/pkgs/main/noarch
          package cache : C:\ProgramData\Anaconda3\pkgs
                          C:\Users\chgepan\.conda\pkgs
                          C:\Users\chgepan\AppData\Local\conda\conda\pkgs
       envs directories : C:\Users\chgepan\.conda\envs
                          C:\ProgramData\Anaconda3\envs
                          C:\Users\chgepan\AppData\Local\conda\conda\envs
               platform : win-64
             user-agent : conda/4.7.12 requests/2.22.0 CPython/3.7.3 Windows/10 Windows/10.0.16299
          administrator : False
             netrc file : None
           offline mode : False
den-run-ai commented 4 years ago

Having a similar issue, started very randomly few days ago:

(pytorch.1.2) [j0541825@powerpc8-2 examples]$ conda install sympy --verbose
Collecting package metadata: ...working... done
Solving environment: ...working... done

==> WARNING: A newer version of conda exists. <==
  current version: 4.6.8
  latest version: 4.8.1

Please update conda by running

    $ conda update -n base -c defaults conda

initializing UnlinkLinkTransaction with
  target_prefix: /anaconda3/envs/pytorch.1.2
  unlink_precs:

  link_precs:
    defaults::gmp-6.1.2-h7f7056e_2
    defaults::mpfr-4.0.1-hdf1c602_3
    defaults::mpc-1.1.0-h10f8cd9_1
    defaults::fastcache-1.1.0-py36h7b6447c_0
    defaults::gmpy2-2.0.8-py36h10f8cd9_2
    defaults::mpmath-1.1.0-py36_0
    defaults::sympy-1.5.1-py36_0

^CTraceback (most recent call last):
  File "/anaconda3/lib/python3.7/site-packages/conda/core/package_cache_data.py", line 294, in _make_single_record
    repodata_record = read_repodata_json(extracted_package_dir)
  File "/anaconda3/lib/python3.7/site-packages/conda/gateways/disk/read.py", line 126, in read_repodata_json
    with open(join(extracted_package_directory, 'info', 'repodata_record.json')) as fi:
  File "/anaconda3/lib/python3.7/site-packages/conda/common/compat.py", line 132, in open
    closefd=closefd)
FileNotFoundError: [Errno 2] No such file or directory: '/anaconda3/pkgs/cudnn-7.6.3_10.1-590.g5627c5e/info/repodata_record.json'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/anaconda3/lib/python3.7/site-packages/conda/core/package_cache_data.py", line 311, in _make_single_record
    raw_json_record = read_index_json(extracted_package_dir)
  File "/anaconda3/lib/python3.7/site-packages/conda/gateways/disk/read.py", line 115, in read_index_json
    with open(join(extracted_package_directory, 'info', 'index.json')) as fi:
  File "/anaconda3/lib/python3.7/site-packages/conda/common/compat.py", line 132, in open
    closefd=closefd)
FileNotFoundError: [Errno 2] No such file or directory: '/anaconda3/pkgs/cudnn-7.6.3_10.1-590.g5627c5e/info/index.json'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/anaconda3/lib/python3.7/site-packages/conda/exceptions.py", line 1002, in __call__
    return func(*args, **kwargs)
  File "/anaconda3/lib/python3.7/site-packages/conda/cli/main.py", line 84, in _main
    exit_code = do_call(args, p)
  File "/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 "/anaconda3/lib/python3.7/site-packages/conda/cli/main_install.py", line 20, in execute
    install(args, parser, 'install')
  File "/anaconda3/lib/python3.7/site-packages/conda/cli/install.py", line 275, in install
    handle_txn(unlink_link_transaction, prefix, args, newenv)
  File "/anaconda3/lib/python3.7/site-packages/conda/cli/install.py", line 291, in handle_txn
    unlink_link_transaction.print_transaction_summary()
  File "/anaconda3/lib/python3.7/site-packages/conda/core/link.py", line 818, in print_transaction_summary
    legacy_action_groups = self._make_legacy_action_groups()
  File "/anaconda3/lib/python3.7/site-packages/conda/core/link.py", line 802, in _make_legacy_action_groups
    self._pfe.prepare()
  File "/anaconda3/lib/python3.7/site-packages/conda/common/io.py", line 85, in decorated
    return f(*args, **kwds)
  File "/anaconda3/lib/python3.7/site-packages/conda/core/package_cache_data.py", line 574, in prepare
    for prec in self.link_precs)
  File "/anaconda3/lib/python3.7/site-packages/conda/core/package_cache_data.py", line 574, in <genexpr>
    for prec in self.link_precs)
  File "/anaconda3/lib/python3.7/site-packages/conda/core/package_cache_data.py", line 468, in make_actions_for_record
    ), None)
  File "/anaconda3/lib/python3.7/site-packages/conda/core/package_cache_data.py", line 465, in <genexpr>
    pcrec for pcrec in concat(PackageCacheData(pkgs_dir).query(pref_or_spec)
  File "/anaconda3/lib/python3.7/site-packages/conda/core/package_cache_data.py", line 466, in <genexpr>
    for pkgs_dir in context.pkgs_dirs)
  File "/anaconda3/lib/python3.7/site-packages/conda/core/package_cache_data.py", line 122, in query
    return (pcrec for pcrec in itervalues(self._package_cache_records) if pcrec == param)
  File "/anaconda3/lib/python3.7/site-packages/conda/core/package_cache_data.py", line 237, in _package_cache_records
    self.load()
  File "/anaconda3/lib/python3.7/site-packages/conda/core/package_cache_data.py", line 88, in load
    package_cache_record = self._make_single_record(base_name)
  File "/anaconda3/lib/python3.7/site-packages/conda/core/package_cache_data.py", line 333, in _make_single_record
    extract_tarball(package_tarball_full_path, extracted_package_dir)
  File "/anaconda3/lib/python3.7/site-packages/conda/gateways/disk/create.py", line 185, in extract_tarball
    tar_file.extractall(path=destination_directory)
  File "/anaconda3/lib/python3.7/tarfile.py", line 2002, in extractall
    numeric_owner=numeric_owner)
  File "/anaconda3/lib/python3.7/tarfile.py", line 2044, in extract
    numeric_owner=numeric_owner)
  File "/anaconda3/lib/python3.7/tarfile.py", line 2114, in _extract_member
    self.makefile(tarinfo, targetpath)
  File "/anaconda3/lib/python3.7/tarfile.py", line 2163, in makefile
    copyfileobj(source, target, tarinfo.size, ReadError, bufsize)
  File "/anaconda3/lib/python3.7/tarfile.py", line 247, in copyfileobj
    buf = src.read(bufsize)
  File "/anaconda3/lib/python3.7/bz2.py", line 178, in read
    return self._buffer.read(size)
  File "/anaconda3/lib/python3.7/_compression.py", line 68, in readinto
    data = self.read(len(byte_view))
  File "/anaconda3/lib/python3.7/_compression.py", line 103, in read
    data = self._decompressor.decompress(rawblock, size)
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/anaconda3/bin/conda", line 13, in <module>
    sys.exit(main())
  File "/anaconda3/lib/python3.7/site-packages/conda/cli/main.py", line 117, in main
    return conda_exception_handler(_main, *args, **kwargs)
  File "/anaconda3/lib/python3.7/site-packages/conda/exceptions.py", line 1290, in conda_exception_handler
    return_value = exception_handler(func, *args, **kwargs)
  File "/anaconda3/lib/python3.7/site-packages/conda/exceptions.py", line 1005, in __call__
    return self.handle_exception(exc_val, exc_tb)
  File "/anaconda3/lib/python3.7/site-packages/conda/exceptions.py", line 1045, in handle_exception
    self._print_conda_exception(CondaError("KeyboardInterrupt"), _format_exc())
  File "/anaconda3/lib/python3.7/site-packages/conda/exceptions.py", line 1056, in _print_conda_exception
    print_conda_exception(exc_val, exc_tb)
  File "/anaconda3/lib/python3.7/site-packages/conda/exceptions.py", line 971, in print_conda_exception
    print(_format_exc(exc_val, exc_tb), file=sys.stderr)
  File "/anaconda3/lib/python3.7/site-packages/conda/exceptions.py", line 992, in _format_exc
    formatted_exception = format_exception(exc_type, exc_val, exc_tb)
  File "/anaconda3/lib/python3.7/traceback.py", line 121, in format_exception
    type(value), value, tb, limit=limit).format(chain=chain))
  File "/anaconda3/lib/python3.7/traceback.py", line 508, in __init__
    capture_locals=capture_locals)
  File "/anaconda3/lib/python3.7/traceback.py", line 344, in extract
    for f, lineno in frame_gen:
  File "/anaconda3/lib/python3.7/traceback.py", line 309, in walk_tb
    yield tb.tb_frame, tb.tb_lineno
AttributeError: 'str' object has no attribute 'tb_frame'
(pytorch.1.2) [j0541825@powerpc8-2 examples]$ 
(pytorch.1.2) [powerpc8-2 examples]$ conda info

     active environment : pytorch.1.2
    active env location : /data/gpfs/Users/anaconda3/envs/pytorch.1.2
            shell level : 1
       user config file : /home/.condarc
 populated config files : /home/.condarc
          conda version : 4.6.8
    conda-build version : 3.16.3
         python version : 3.7.1.final.0
       base environment : /data/gpfs/Users/anaconda3  (writable)
           channel URLs : https://public.dhe.ibm.com/ibmdl/export/pub/software/server/ibm-ai/conda-early-access/linux-ppc64le
                          https://public.dhe.ibm.com/ibmdl/export/pub/software/server/ibm-ai/conda-early-access/noarch
                          https://public.dhe.ibm.com/ibmdl/export/pub/software/server/ibm-ai/conda/linux-ppc64le
                          https://public.dhe.ibm.com/ibmdl/export/pub/software/server/ibm-ai/conda/noarch
                          https://repo.anaconda.com/pkgs/main/linux-ppc64le
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/free/linux-ppc64le
                          https://repo.anaconda.com/pkgs/free/noarch
                          https://repo.anaconda.com/pkgs/r/linux-ppc64le
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /data/gpfs/Users/anaconda3/pkgs
                          /home/.conda/pkgs
       envs directories : /data/gpfs/Users/anaconda3/envs
                          /home/.conda/envs
               platform : linux-ppc64le
             user-agent : conda/4.6.8 requests/2.21.0 CPython/3.7.1 Linux/3.10.0-693.el7.ppc64le rhel/7.4 glibc/2.17
                UID:GID : 10284:512
             netrc file : None
           offline mode : False
andrewssdd commented 4 years ago

Reinstalling anaconda didn't help. But starting a new linux account and installing anaconda resolved the issue. So must be something local.

TheCrimsondev commented 4 years ago

I had the same issue when adding conda-forge channel and i fixed it by changing channel-priority to "flexible"

conda config --describe channel_priority conda config --set channel_priority flexible

After that conda update conda woked fine again. I hope it helps.

Efroymson commented 4 years ago

Tried: conda config --set channel_priority flexible

and got an error. It allowed me to send a message to the maintainers, so perhaps someone will see it.

I am just trying to install the bezier, or r-bezier package, and it fails repeatedly.

KokeCacao commented 4 years ago

I had the same issue when adding conda-forge channel and i fixed it by changing channel-priority to "flexible"

conda config --describe channel_priority conda config --set channel_priority flexible

After that conda update conda woked fine again. I hope it helps.

conda config --set channel_priority flexible worked for me!

LinYunWen commented 4 years ago

I had the same problem. I don't know why and how. It just suddenly happened right after I used it as normal last day. I am unable to conda install anything even cannot do conda update conda. Every time it stops after Collecting package metadata and shows

Collecting package metadata (current_repodata.json): failed
# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<
        ...
        raise Response304ContentUnchanged()
    conda.core.subdir_data.Response304ContentUnchanged
        ...

I search on the internet and find this conda install error. I check conda clean which is just to remove some unused packages and zip/tar files.

So, I try to do conda clean --all and remove all the files which are auto-recommend by conda . Now it works well after that.

den-run-ai commented 4 years ago

I found that my cache of conda packages was corrupt due to my mistake and the re-generation of cache/metadata takes about 1sec per package, so it was very slow and it appears as stalled.

josh-greaves commented 4 years ago

Made sure Anaconda was up to date, and not running in the background. This fixed the issue

javafalcon commented 4 years ago

As suggested by @solegalli, I was able to fix it by removing the conda-forge channel. To see if you have conda-forge installed, you can open your configuration file in .condarc or just enter conda config --get channels at your conda prompt. I removed the conda-forge line from .condarc, and I'm no longer getting the error. You can also enter conda config --remove channels conda-forge to remove it.

Strangely, after removing the channel, I've added it back and the error has not returned.

Edit: Note I did uninstall anaconda yesterday before trying this today, so there is a chance that was important. But the error did not disappear until I removed the channel.

Thank you. I fix my problem by your suggestion.

vincentX3 commented 4 years ago

I had the same problem. I don't know why and how. It just suddenly happened right after I used it as normal last day. I am unable to conda install anything even cannot do conda update conda. Every time it stops after Collecting package metadata and shows

Collecting package metadata (current_repodata.json): failed
# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<
        ...
        raise Response304ContentUnchanged()
    conda.core.subdir_data.Response304ContentUnchanged
        ...

I search on the internet and find this conda install error. I check conda clean which is just to remove some unused packages and zip/tar files.

So, I try to do conda clean --all and remove all the files which are auto-recommend by conda . Now it works well after that.

Thx. I tried conda clean -i, which fix my problem.

KrisThielemans commented 4 years ago

Same problem here on Windows. I've tried conda clean -i, conda clean -all, checked the channel-priority (which was already flexible), no luck. I don't have conda-forge channel, or any others really. conda config --show gives

default_channels:
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - https://repo.anaconda.com/pkgs/msys2

conda update -vvv conda gives me

.....
DEBUG conda.core.solve:solve_final_state(223): solving prefix C:\Users\krisf\Anaconda2
  specs_to_remove: frozenset([])
  specs_to_add: frozenset([MatchSpec("conda")])
  prune: <auxlib._Null object at 0x0000000002D68CC0>
Collecting package metadata (repodata.json): ...working... TRACE conda.gateways.disk.test:file_path_is_writable(25): checking path is writable C:\Users\krisf\Anaconda2\pkgs\urls.txt
DEBUG conda.core.package_cache_data:_check_writable(259): package cache directory 'C:\Users\krisf\Anaconda2\pkgs' writable: True

and then nothing happens anymore. 0% CPU time used by conda. I've waited for 8 hours and had to cancel via Task Manager.

daddydrac commented 4 years ago

Seems to have been an OpenSSL issue for me. Trying to use conda search was what gave it away; after installing OpenSSL, it didn't hang anymore.

how did u install openssl?

KrisThielemans commented 4 years ago

how did u install openssl?

Good question! The following hangs

> conda install -c anaconda openssl
Collecting package metadata (repodata.json): /
daddydrac commented 4 years ago

The solution is to update Conda to latest version, then create a Conda env (I know it sounds redundant) and lastly, run:

conda config --set ssl_verify False

You’ll be able to download whatever packages. At some point you may want to re-run as True to regain SSL/TLS verification.

northNomad commented 4 years ago

Tried on three machines with newly installed miniconda v3.7 All running into the same problem

This needs to be fixed.

EricThomson commented 4 years ago

Tried on three machines with newly installed miniconda v3.7 All running into the same problem

This needs to be fixed.

@northNomad Please let us know what you have tried from the above posts and if they do not help (and of course if any of them help please let us know!).

brainfo commented 4 years ago
conda install hicexplorer --verbose -c bioconda -c conda-forge
Collecting package metadata (current_repodata.json): ...working... Unable to retrieve repodata (response: 404) for https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/linux-64/current_repodata.json

Unable to retrieve repodata (response: 404) for https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/pro/linux-64/current_repodata.json

done
Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve.
Solving environment: ...working...

It seems there's something wrong with tsinghua source. And My laptop can access the two resources normally( i.e. https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/pro/linux-64/current_repodata.json) I don't know what's wrong with the network of my lab's server. (and on that server, conda update conda can install a lot of packages and pip can also install packages, so the usual network should be normal)

At first I have the default authoritised channels and I tried to remove the conda-forge channels, but it doesn't work. And I used condo clean, but after that, I still cannot install the packages. Then I conda update conda, this can update my conda(it installed a lot of packages) but after that I still cannot install hicexplorer. So I checked tsinghua source website to see the newest update, and update my .condarc to

channels:

Then I still cannot install hicexplorer (404 error).

tsinghua source has got the license, right?

Kumaava commented 4 years ago

(tensorflow) Avaneeshs-MacBook-Pro:~ $ conda config --set channel_priority flexible ....... packages/conda/_vendor/auxlib/type_coercion.py", line 259, in typify_data_structure return typify(value, type_hint) File "/Applications/anaconda2/lib/python2.7/site-packages/conda/_vendor/auxlib/type_coercion.py", line 246, in typify raise TypeCoercionError(value, text_type(e)) TypeCoercionError: The value u'flexible' cannot be boolified.

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


Facing issue in changing the channel flexibility using "conda config --set channel_priority flexible" although "conda clean --all" solved the issue of "solving environment: failed"

Tonyarey commented 4 years ago

I had the same problem. Removing conda-forge cannot solve mine. Thanks to this blog "https://www.jianshu.com/p/2bca744fcd82", I run "conda clean -i" and solved this.

KrisThielemans commented 4 years ago

I've installed latest Anaconda3. a first conda update conda went fine. Then stuck again.

conda clean -idoesn't help me. @joehoeller's trick (create env, activate,conda config --set ssl_verify False`) doesn't help either.

So, I cannot use conda at all.

One thing to note is that at least now a Ctrl-C does abort (with my previous anaconda2 installation I needed to kill conda with the task manager)

FrankwaP commented 4 years ago

After one year without problem, I had the same problem yesterday, with the message:

Solving environment: failed with repodata from current_repodata.json

I fixed it by following @EricThomson advice: removing conda-forge from the root .condarc (inside the user directory).

I haven't tried it but removing then adding it again likely works because it changes the channels priorities.

Architect0711 commented 4 years ago

trying to install opencv. using newest conda version (at least conda update conda said so)

conda install -c conda-forge opencv

Collecting package metadata (current_repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source. Collecting package metadata (repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Solving environment: - Found conflicts! Looking for incompatible packages. This can take several minutes. Press CTRL-C to abort. Found conflicts! Looking for incompatible packages.

UnsatisfiableError: The following specifications were found to be incompatible with the existing python installation in your environment:

Specifications:

  • anaconda-navigator==1.9.12 -> python[version='2.7.|3.5.|3.6.|>=3.5,<3.6.0a0|3.4.']
  • anaconda-project -> python[version='3.4.*|>=3.8,<3.9.0a0']
  • anaconda==2019.10 -> python[version='2.7.16|3.6.9|3.7.4',build='h5263a28_0|hcb6e200_0|h5500b2f_0']
  • backports.functools_lru_cache -> python[version='2.7.|3.5.|3.6.|3.4.|>=2.7,<2.8.0a0']
  • bkcharts -> python=3.4
  • bleach -> python[version='>=3.8,<3.9.0a0']
  • cffi -> python[version='2.7.|3.5.|3.6.|3.6.9|3.6.9|>=2.7,<2.8.0a0|>=3.8,<3.9.0a0|>=3.7,<3.8.0a0|>=3.6,<3.7.0a0|>=3.5,<3.6.0a0|3.4.',build='2_73_pypy|1_73_pypy|0_73_pypy']
  • conda-env -> python[version='2.7.|3.4.|3.5.*']
  • cryptography -> python[version='3.4.*|3.6.9|<=3.3',build='2_73_pypy|1_73_pypy|0_73_pypy']
  • curl -> python=2.7
  • gevent -> python[version='3.6.9|3.7.|3.8.',build='2_73_pypy|1_73_pypy|0_73_pypy']
  • h5py -> python[version='<3']
  • html5lib -> python[version='3.4.*|>=3.8,<3.9.0a0']
  • jinja2 -> python[version='>=3.8,<3.9.0a0']
  • joblib -> python[version='>=3.8,<3.9.0a0']

Then it runs forever and outputs a lot of stuff like this:

  • html5lib -> python[version='3.4.*|>=3.8,<3.9.0a0']
  • jinja2 -> python[version='>=3.8,<3.9.0a0']
  • joblib -> python[version='>=3.8,<3.9.0a0'] .....