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 install fails: 'boto3' has no attribute 'client'. boto3.client('s3') #9297

Closed
joshlk opened this issue Sep 30, 2019 · 10 comments
Closed
Labels
locked [bot] locked due to inactivity stale::closed [bot] closed after being marked as stale stale [bot] marked as stale due to inactivity

Comments

@joshlk
Copy link

joshlk commented Sep 30, 2019

Current Behavior

I updated scikit-learn using conda update scikit-learn which ran successfully.

Full output

$ conda update scikit-learn
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /Users/<home>/anaconda3

  added / updated specs:
    - scikit-learn


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    absl-py-0.8.0              |           py37_0         164 KB
    ca-certificates-2019.8.28  |                0         133 KB
    certifi-2019.9.11          |           py37_0         154 KB
    cloudpickle-1.2.2          |             py_0          29 KB
    conda-4.7.12               |           py37_0         3.0 MB
    conda-package-handling-1.6.0|   py37h1de35cc_0         1.3 MB
    contextlib2-0.6.0          |             py_0          16 KB
    dask-2.4.0                 |             py_0          12 KB
    dask-core-2.4.0            |             py_0         581 KB
    distributed-2.4.0          |             py_0         381 KB
    docutils-0.15.2            |           py37_0         659 KB
    fsspec-0.5.1               |             py_0          45 KB
    gast-0.3.2                 |             py_0          13 KB
    heapdict-1.0.1             |             py_0           9 KB
    importlib_metadata-0.23    |           py37_0          43 KB
    jupyter_client-5.3.3       |           py37_1         137 KB
    jupyterlab-1.1.4           |     pyhf63ae98_0         4.4 MB
    jupyterlab_server-1.0.6    |             py_0          26 KB
    libprotobuf-3.9.2          |       hd9629dc_0         2.5 MB
    nbconvert-5.6.0            |           py37_1         501 KB
    notebook-6.0.1             |           py37_0         6.1 MB
    openpyxl-2.6.3             |             py_0         158 KB
    openssl-1.1.1d             |       h1de35cc_1         3.4 MB
    packaging-19.2             |             py_0          30 KB
    pip-19.2.3                 |           py37_0         1.9 MB
    pluggy-0.13.0              |           py37_0          31 KB
    protobuf-3.9.2             |   py37h0a44026_0         620 KB
    pyrsistent-0.15.4          |   py37h1de35cc_0          90 KB
    pysocks-1.7.1              |           py37_0          30 KB
    pytest-5.1.2               |           py37_0         361 KB
    pytest-doctestplus-0.4.0   |             py_0          18 KB
    pytest-openfiles-0.4.0     |             py_0          10 KB
    qtawesome-0.6.0            |             py_0         671 KB
    qtconsole-4.5.5            |             py_0          94 KB
    regex-2019.08.19           |   py37h1de35cc_0         356 KB
    setuptools-41.2.0          |           py37_0         658 KB
    snowballstemmer-1.9.1      |             py_0          59 KB
    soupsieve-1.9.3            |           py37_0          60 KB
    sphinx-2.2.0               |             py_0         1.5 MB
    spyder-kernels-0.5.2       |           py37_0          69 KB
    sqlalchemy-1.3.8           |   py37h1de35cc_0         1.7 MB
    theano-1.0.4               |   py37h04f5b5a_0         3.6 MB
    tqdm-4.36.1                |             py_0          50 KB
    werkzeug-0.16.0            |             py_0         255 KB
    wheel-0.33.6               |           py37_0          40 KB
    xlsxwriter-1.2.1           |             py_0         106 KB
    xlwings-0.15.10            |           py37_0         462 KB
    zipp-0.6.0                 |             py_0           9 KB
    ------------------------------------------------------------
                                           Total:        36.4 MB

The following packages will be REMOVED:

  boto3-1.9.199-py_0
  botocore-1.12.199-py_0
  bz2file-0.98-py37_1
  jmespath-0.9.4-py_0
  s3transfer-0.2.1-py37_0
  smart_open-1.8.4-py_0

The following packages will be UPDATED:

  absl-py                                      0.7.1-py37_0 --> 0.8.0-py37_0
  ca-certificates                               2019.5.15-1 --> 2019.8.28-0
  certifi                                  2019.6.16-py37_1 --> 2019.9.11-py37_0
  cloudpickle                                    1.2.1-py_0 --> 1.2.2-py_0
  conda                                       4.7.11-py37_0 --> 4.7.12-py37_0
  conda-package-han~                          1.3.11-py37_0 --> 1.6.0-py37h1de35cc_0
  contextlib2        pkgs/main/osx-64::contextlib2-0.5.5-p~ --> pkgs/main/noarch::contextlib2-0.6.0-py_0
  dask                                           2.3.0-py_0 --> 2.4.0-py_0
  dask-core                                      2.3.0-py_0 --> 2.4.0-py_0
  distributed                                    2.3.2-py_1 --> 2.4.0-py_0
  docutils                                      0.14-py37_0 --> 0.15.2-py37_0
  fsspec                                         0.4.0-py_0 --> 0.5.1-py_0
  gast                  pkgs/main/osx-64::gast-0.2.2-py37_0 --> pkgs/main/noarch::gast-0.3.2-py_0
  heapdict           pkgs/main/osx-64::heapdict-1.0.0-py37~ --> pkgs/main/noarch::heapdict-1.0.1-py_0
  importlib_metadata                            0.19-py37_0 --> 0.23-py37_0
  jupyter_client     pkgs/main/noarch::jupyter_client-5.3.~ --> pkgs/main/osx-64::jupyter_client-5.3.3-py37_1
  jupyterlab         pkgs/main/osx-64::jupyterlab-1.0.2-py~ --> pkgs/main/noarch::jupyterlab-1.1.4-pyhf63ae98_0
  jupyterlab_server                              1.0.0-py_1 --> 1.0.6-py_0
  libprotobuf                              3.8.0-hd9629dc_0 --> 3.9.2-hd9629dc_0
  nbconvert          pkgs/main/noarch::nbconvert-5.5.0-py_0 --> pkgs/main/osx-64::nbconvert-5.6.0-py37_1
  notebook                                     6.0.0-py37_0 --> 6.0.1-py37_0
  openpyxl                                       2.6.2-py_0 --> 2.6.3-py_0
  openssl                                 1.1.1c-h1de35cc_1 --> 1.1.1d-h1de35cc_1
  packaging          pkgs/main/osx-64::packaging-19.1-py37~ --> pkgs/main/noarch::packaging-19.2-py_0
  pip                                         19.2.2-py37_0 --> 19.2.3-py37_0
  pluggy               pkgs/main/noarch::pluggy-0.12.0-py_0 --> pkgs/main/osx-64::pluggy-0.13.0-py37_0
  protobuf                             3.8.0-py37h0a44026_0 --> 3.9.2-py37h0a44026_0
  pyrsistent                         0.14.11-py37h1de35cc_0 --> 0.15.4-py37h1de35cc_0
  pysocks                                      1.7.0-py37_0 --> 1.7.1-py37_0
  pytest                                       5.0.1-py37_0 --> 5.1.2-py37_0
  pytest-doctestplus pkgs/main/osx-64::pytest-doctestplus-~ --> pkgs/main/noarch::pytest-doctestplus-0.4.0-py_0
  pytest-openfiles   pkgs/main/osx-64::pytest-openfiles-0.~ --> pkgs/main/noarch::pytest-openfiles-0.4.0-py_0
  qtawesome          pkgs/main/osx-64::qtawesome-0.5.7-py3~ --> pkgs/main/noarch::qtawesome-0.6.0-py_0
  qtconsole                                      4.5.4-py_0 --> 4.5.5-py_0
  regex                           2019.06.05-py37h1de35cc_0 --> 2019.08.19-py37h1de35cc_0
  setuptools                                  41.0.1-py37_0 --> 41.2.0-py37_0
  snowballstemmer                                1.9.0-py_0 --> 1.9.1-py_0
  soupsieve                                    1.9.2-py37_0 --> 1.9.3-py37_0
  sphinx                                         2.1.2-py_0 --> 2.2.0-py_0
  spyder-kernels                               0.5.1-py37_0 --> 0.5.2-py37_0
  sqlalchemy                           1.3.7-py37h1de35cc_0 --> 1.3.8-py37h1de35cc_0
  theano                               1.0.3-py37h04f5b5a_0 --> 1.0.4-py37h04f5b5a_0
  tqdm                                          4.32.1-py_0 --> 4.36.1-py_0
  werkzeug                                      0.15.5-py_0 --> 0.16.0-py_0
  wheel                                       0.33.4-py37_0 --> 0.33.6-py37_0
  xlsxwriter                                     1.1.8-py_0 --> 1.2.1-py_0
  xlwings                                     0.15.8-py37_0 --> 0.15.10-py37_0
  zipp                                           0.5.2-py_0 --> 0.6.0-py_0


Proceed ([y]/n)? y


Downloading and Extracting Packages
werkzeug-0.16.0      | 255 KB    | ######################################################################################## | 100%
openpyxl-2.6.3       | 158 KB    | ######################################################################################## | 100%
packaging-19.2       | 30 KB     | ######################################################################################## | 100%
gast-0.3.2           | 13 KB     | ######################################################################################## | 100%
conda-4.7.12         | 3.0 MB    | ######################################################################################## | 100%
qtconsole-4.5.5      | 94 KB     | ######################################################################################## | 100%
theano-1.0.4         | 3.6 MB    | ######################################################################################## | 100%
libprotobuf-3.9.2    | 2.5 MB    | ######################################################################################## | 100%
sqlalchemy-1.3.8     | 1.7 MB    | ######################################################################################## | 100%
setuptools-41.2.0    | 658 KB    | ######################################################################################## | 100%
soupsieve-1.9.3      | 60 KB     | ######################################################################################## | 100%
nbconvert-5.6.0      | 501 KB    | ######################################################################################## | 100%
regex-2019.08.19     | 356 KB    | ######################################################################################## | 100%
cloudpickle-1.2.2    | 29 KB     | ######################################################################################## | 100%
ca-certificates-2019 | 133 KB    | ######################################################################################## | 100%
dask-core-2.4.0      | 581 KB    | ######################################################################################## | 100%
dask-2.4.0           | 12 KB     | ######################################################################################## | 100%
sphinx-2.2.0         | 1.5 MB    | ######################################################################################## | 100%
pysocks-1.7.1        | 30 KB     | ######################################################################################## | 100%
zipp-0.6.0           | 9 KB      | ######################################################################################## | 100%
jupyterlab_server-1. | 26 KB     | ######################################################################################## | 100%
contextlib2-0.6.0    | 16 KB     | ######################################################################################## | 100%
certifi-2019.9.11    | 154 KB    | ######################################################################################## | 100%
pytest-doctestplus-0 | 18 KB     | ######################################################################################## | 100%
distributed-2.4.0    | 381 KB    | ######################################################################################## | 100%
pluggy-0.13.0        | 31 KB     | ######################################################################################## | 100%
snowballstemmer-1.9. | 59 KB     | ######################################################################################## | 100%
tqdm-4.36.1          | 50 KB     | ######################################################################################## | 100%
xlwings-0.15.10      | 462 KB    | ######################################################################################## | 100%
notebook-6.0.1       | 6.1 MB    | ######################################################################################## | 100%
spyder-kernels-0.5.2 | 69 KB     | ######################################################################################## | 100%
docutils-0.15.2      | 659 KB    | ######################################################################################## | 100%
qtawesome-0.6.0      | 671 KB    | ######################################################################################## | 100%
wheel-0.33.6         | 40 KB     | ######################################################################################## | 100%
importlib_metadata-0 | 43 KB     | ######################################################################################## | 100%
pytest-openfiles-0.4 | 10 KB     | ######################################################################################## | 100%
pyrsistent-0.15.4    | 90 KB     | ######################################################################################## | 100%
absl-py-0.8.0        | 164 KB    | ######################################################################################## | 100%
jupyter_client-5.3.3 | 137 KB    | ######################################################################################## | 100%
heapdict-1.0.1       | 9 KB      | ######################################################################################## | 100%
openssl-1.1.1d       | 3.4 MB    | ######################################################################################## | 100%
conda-package-handli | 1.3 MB    | ######################################################################################## | 100%
fsspec-0.5.1         | 45 KB     | ######################################################################################## | 100%
pip-19.2.3           | 1.9 MB    | ######################################################################################## | 100%
xlsxwriter-1.2.1     | 106 KB    | ######################################################################################## | 100%
protobuf-3.9.2       | 620 KB    | ######################################################################################## | 100%
jupyterlab-1.1.4     | 4.4 MB    | ######################################################################################## | 100%
pytest-5.1.2         | 361 KB    | ######################################################################################## | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done

As can been seen in the details it looks like the transaction removed boto3 and botocore.

Then after I try to execute any install or update command, such as conda update conda you get an error:

File "/Users/home/anaconda3/lib/python3.7/site-packages/conda/gateways/connection/adapters/s3.py", line 14, in
boto3.client('s3') # #8993
AttributeError: module 'boto3' has no attribute 'client'

Full example output

$ conda update conda
Traceback (most recent call last):
  File "/Users/<home>/anaconda3/lib/python3.7/site-packages/conda/exceptions.py", line 1074, in __call__
    return func(*args, **kwargs)
  File "/Users/<home>/anaconda3/lib/python3.7/site-packages/conda/cli/main.py", line 84, in _main
    exit_code = do_call(args, p)
  File "/Users/<home>/anaconda3/lib/python3.7/site-packages/conda/cli/conda_argparse.py", line 80, in do_call
    module = import_module(relative_mod, __name__.rsplit('.', 1)[0])
  File "/Users/<home>/anaconda3/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/Users/<home>/anaconda3/lib/python3.7/site-packages/conda/cli/main_update.py", line 8, in <module>
    from .install import install
  File "/Users/<home>/anaconda3/lib/python3.7/site-packages/conda/cli/install.py", line 19, in <module>
    from ..core.index import calculate_channel_urls, get_index
  File "/Users/<home>/anaconda3/lib/python3.7/site-packages/conda/core/index.py", line 9, in <module>
    from .package_cache_data import PackageCacheData
  File "/Users/<home>/anaconda3/lib/python3.7/site-packages/conda/core/package_cache_data.py", line 15, in <module>
    from .path_actions import CacheUrlAction, ExtractPackageAction
  File "/Users/<home>/anaconda3/lib/python3.7/site-packages/conda/core/path_actions.py", line 30, in <module>
    from ..gateways.connection.download import download
  File "/Users/<home>/anaconda3/lib/python3.7/site-packages/conda/gateways/connection/download.py", line 18, in <module>
    from .session import CondaSession
  File "/Users/<home>/anaconda3/lib/python3.7/site-packages/conda/gateways/connection/session.py", line 13, in <module>
    from .adapters.s3 import S3Adapter
  File "/Users/<home>/anaconda3/lib/python3.7/site-packages/conda/gateways/connection/adapters/s3.py", line 14, in <module>
    boto3.client('s3')  # https://github.com/conda/conda/issues/8993
AttributeError: module 'boto3' has no attribute 'client'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/<home>/anaconda3/bin/conda", line 13, in <module>
    sys.exit(main())
  File "/Users/<home>/anaconda3/lib/python3.7/site-packages/conda/cli/main.py", line 150, in main
    return conda_exception_handler(_main, *args, **kwargs)
  File "/Users/<home>/anaconda3/lib/python3.7/site-packages/conda/exceptions.py", line 1366, in conda_exception_handler
    return_value = exception_handler(func, *args, **kwargs)
  File "/Users/<home>/anaconda3/lib/python3.7/site-packages/conda/exceptions.py", line 1077, in __call__
    return self.handle_exception(exc_val, exc_tb)
  File "/Users/<home>/anaconda3/lib/python3.7/site-packages/conda/exceptions.py", line 1121, in handle_exception
    return self.handle_unexpected_exception(exc_val, exc_tb)
  File "/Users/<home>/anaconda3/lib/python3.7/site-packages/conda/exceptions.py", line 1132, in handle_unexpected_exception
    self.print_unexpected_error_report(error_report)
  File "/Users/<home>/anaconda3/lib/python3.7/site-packages/conda/exceptions.py", line 1202, in print_unexpected_error_report
    from .cli.main_info import get_env_vars_str, get_main_info_str
  File "/Users/<home>/anaconda3/lib/python3.7/site-packages/conda/cli/main_info.py", line 19, in <module>
    from ..core.index import _supplement_index_with_system
  File "/Users/<home>/anaconda3/lib/python3.7/site-packages/conda/core/index.py", line 9, in <module>
    from .package_cache_data import PackageCacheData
  File "/Users/<home>/anaconda3/lib/python3.7/site-packages/conda/core/package_cache_data.py", line 15, in <module>
    from .path_actions import CacheUrlAction, ExtractPackageAction
  File "/Users/<home>/anaconda3/lib/python3.7/site-packages/conda/core/path_actions.py", line 30, in <module>
    from ..gateways.connection.download import download
  File "/Users/<home>/anaconda3/lib/python3.7/site-packages/conda/gateways/connection/download.py", line 18, in <module>
    from .session import CondaSession
  File "/Users/<home>/anaconda3/lib/python3.7/site-packages/conda/gateways/connection/session.py", line 13, in <module>
    from .adapters.s3 import S3Adapter
  File "/Users/<home>/anaconda3/lib/python3.7/site-packages/conda/gateways/connection/adapters/s3.py", line 14, in <module>
    boto3.client('s3')  # https://github.com/conda/conda/issues/8993
AttributeError: module 'boto3' has no attribute 'client'

Environment Information

I can't execute conda info as this produces the same error.

`conda config --show-sources`

==> /Users/<home>/.condarc <==
auto_activate_base: False
report_errors: True

`conda list --show-channel-urls`

# packages in environment at /Users/<home>/anaconda3:
#
# Name                    Version                   Build  Channel
_anaconda_depends         2019.03                  py37_0    defaults
_ipyw_jlab_nb_ext_conf    0.1.0                    py37_0    defaults
_tflow_select             2.3.0                       mkl    defaults
absl-py                   0.7.1                    pypi_0    pypi
alabaster                 0.7.12                   py37_0    defaults
aliyun-python-sdk-core    2.13.5                   pypi_0    pypi
aliyun-python-sdk-core-v3 2.13.3                   pypi_0    pypi
aliyun-python-sdk-kms     2.6.0                    pypi_0    pypi
amqp                      2.4.2                    pypi_0    pypi
anaconda                  custom                   py37_1    defaults
anaconda-client           1.7.2                    py37_0    defaults
anaconda-navigator        1.9.6                    py37_0    defaults
anaconda-project          0.8.3                      py_0    defaults
anyio                     1.0.0                    pypi_0    pypi
appdirs                   1.4.3                    pypi_0    pypi
appnope                   0.1.0                    py37_0    defaults
appscript                 1.1.0            py37h1de35cc_0    defaults
argparse                  1.4.0                    pypi_0    pypi
arrow                     0.13.1                   pypi_0    pypi
asciimatics               1.11.0                   pypi_0    pypi
asks                      2.3.5                    pypi_0    pypi
asn1crypto                0.24.0                   py37_0    defaults
astor                     0.8.0                    py37_0    defaults
astroid                   2.2.5                    py37_0    defaults
astropy                   3.2.1            py37h1de35cc_0    defaults
async-generator           1.10                     pypi_0    pypi
async-joblib              0.0.1                    pypi_0    pypi
atomicwrites              1.3.0                    pypi_0    pypi
attrs                     19.1.0                   py37_1    defaults
awscli                    1.16.194                 pypi_0    pypi
azure-common              1.1.23                   pypi_0    pypi
azure-storage-blob        2.0.1                    pypi_0    pypi
azure-storage-common      2.0.0                    pypi_0    pypi
babel                     2.7.0                      py_0    defaults
backcall                  0.1.0                    py37_0    defaults
backports                 1.0                        py_2    defaults
backports.os              0.1.1                    py37_0    defaults
backports.shutil_get_terminal_size 1.0.0                    py37_2    defaults
bcrypt                    3.1.7                    pypi_0    pypi
beautifulsoup4            4.8.0                    py37_0    defaults
bitarray                  1.0.1            py37h1de35cc_0    defaults
bkcharts                  0.2                      py37_0    defaults
blas                      1.0                         mkl    defaults
bleach                    3.1.0                    py37_0    defaults
blinker                   1.4                      pypi_0    pypi
blosc                     1.16.3               hd9629dc_0    defaults
bokeh                     1.3.4                    py37_0    defaults
boto                      2.49.0                   py37_0    defaults
boto3                     1.9.115                  pypi_0    pypi
botocore                  1.12.130                 pypi_0    pypi
bottleneck                1.2.1            py37h1d22016_1    defaults
bzip2                     1.0.8                h1de35cc_0    defaults
c-ares                    1.15.0            h1de35cc_1001    defaults
ca-certificates           2019.8.28                     0    defaults
cachetools                3.1.0                    pypi_0    pypi
cairo                     1.14.12              hc4e6be7_4    defaults
cattrs                    0.9.0                    pypi_0    pypi
cctools                   895                           1    defaults
certifi                   2019.9.11                py37_0    defaults
cffi                      1.12.3           py37hb5b8e2f_0    defaults
chardet                   3.0.4                 py37_1003    defaults
clang                     4.0.1                         1    defaults
clang_osx-64              4.0.1               h1ce6c1d_18    defaults
clangxx                   4.0.1                         1    defaults
clangxx_osx-64            4.0.1               h22b1bf0_18    defaults
click                     7.0                      py37_0    defaults
click-completion          0.5.1                    pypi_0    pypi
clize                     4.0.3                    pypi_0    pypi
cloudpickle               1.2.2                      py_0    defaults
clyent                    1.2.2                    py37_1    defaults
colorama                  0.3.9                    pypi_0    pypi
colorlog                  4.0.2                    pypi_0    pypi
colormap                  1.0.2                    pypi_0    pypi
compiler-rt               4.0.1                hcfea43d_1    defaults
conda                     4.7.12                   py37_0    defaults
conda-build               3.18.5                   py37_0    defaults
conda-env                 2.6.0                         1    defaults
conda-package-handling    1.6.0            py37h1de35cc_0    defaults
conda-verify              3.1.1                    py37_0    defaults
configobj                 5.0.6                    pypi_0    pypi
configparser              3.7.4                    pypi_0    pypi
contextlib2               0.5.5                    pypi_0    pypi
crayons                   0.2.0                    pypi_0    pypi
crcmod                    1.7                      pypi_0    pypi
cryptography              2.7              py37ha12b0ac_0    defaults
curl                      7.65.3               ha441bb4_0    defaults
cycler                    0.10.0                   py37_0    defaults
cymem                     2.0.2            py37h04f5b5a_0    defaults
cython                    0.29.11          py37h0a44026_0    defaults
cytoolz                   0.9.0.1          py37h1de35cc_1    defaults
dask                      2.4.0                      py_0    defaults
dask-core                 2.4.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
dill                      0.2.9                    py37_0    defaults
diskcache                 2.9.0                    pypi_0    pypi
distributed               2.4.0                      py_0    defaults
distro                    1.4.0                    pypi_0    pypi
docutils                  0.15.2                   py37_0    defaults
dvc                       0.54.1                   pypi_0    pypi
easydev                   0.9.37                   pypi_0    pypi
entrypoints               0.3                      py37_0    defaults
enum-compat               0.0.2                    pypi_0    pypi
et_xmlfile                1.0.1                    py37_0    defaults
eventlet                  0.21.0                   pypi_0    pypi
expat                     2.2.6                h0a44026_0    defaults
fastcache                 1.1.0            py37h1de35cc_0    defaults
filelock                  3.0.12                     py_0    defaults
fire                      0.1.3                    pypi_0    pypi
flask                     1.1.1                      py_0    defaults
fontconfig                2.13.0               h5d5b041_1    defaults
freetype                  2.9.1                hb4e5f40_0    defaults
fribidi                   1.0.5                h1de35cc_0    defaults
fsspec                    0.5.1                      py_0    defaults
funcy                     1.12                     pypi_0    pypi
future                    0.17.1                   py37_0    defaults
gast                      0.2.2                    pypi_0    pypi
gensim                    3.8.0                    pypi_0    pypi
get_terminal_size         1.0.0                h7520d66_0    defaults
gettext                   0.19.8.1             h15daf44_3    defaults
gevent                    1.4.0            py37h1de35cc_0    defaults
gitdb2                    2.0.5                    pypi_0    pypi
gitpython                 2.1.11                   pypi_0    pypi
glib                      2.56.2               hd9629dc_0    defaults
glob2                     0.7                        py_0    defaults
gmp                       6.1.2                hb37e062_1    defaults
gmpy2                     2.0.8            py37h6ef4df4_2    defaults
google-api-core           1.14.2                   pypi_0    pypi
google-api-python-client  1.7.8                    pypi_0    pypi
google-auth               1.6.3                    pypi_0    pypi
google-auth-httplib2      0.0.3                    pypi_0    pypi
google-auth-oauthlib      0.4.0                    pypi_0    pypi
google-cloud-bigquery     1.19.0                   pypi_0    pypi
google-cloud-core         1.0.3                    pypi_0    pypi
google-cloud-storage      1.13.0                   pypi_0    pypi
google-pasta              0.1.7                    pypi_0    pypi
google-resumable-media    0.3.2                    pypi_0    pypi
googleapis-common-protos  1.6.0                    pypi_0    pypi
grandalf                  0.6                      pypi_0    pypi
graphistry                0.9.64                   pypi_0    pypi
graphite2                 1.3.13               h2098e52_0    defaults
graphviz                  2.40.1               hefbbd9a_2    defaults
greenlet                  0.4.15           py37h1de35cc_0    defaults
grpcio                    1.19.0                   pypi_0    pypi
h11                       0.8.1                    pypi_0    pypi
h2                        3.1.0                    pypi_0    pypi
h5py                      2.9.0            py37h3134771_0    defaults
harfbuzz                  1.8.8                hb8d4a28_0    defaults
hdf5                      1.10.4               hfa1e0ec_0    defaults
healthcheck               1.3.3                    pypi_0    pypi
heapdict                  1.0.1                      py_0    defaults
hpack                     3.0.0                    pypi_0    pypi
html5lib                  1.0.1                    py37_0    defaults
httpcore                  0.3.0                    pypi_0    pypi
httplib2                  0.12.1                   pypi_0    pypi
humanize                  0.5.1                    pypi_0    pypi
hyperframe                5.2.0                    pypi_0    pypi
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.18                     pypi_0    pypi
importlib_metadata        0.23                     py37_0    defaults
inflect                   2.1.0                    pypi_0    pypi
intel-openmp              2019.4                      233    defaults
ipykernel                 5.1.2            py37h39e3cac_0    defaults
ipython                   5.3.0                    pypi_0    pypi
ipython_genutils          0.2.0                    py37_0    defaults
ipywidgets                7.5.1                      py_0    defaults
isort                     4.3.21                   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.15.1                   py37_0    defaults
jinja2                    2.10.1                   py37_0    defaults
joblib                    0.12.5                   py37_0    defaults
jpeg                      9b                   he5867d9_2    defaults
json5                     0.8.5                      py_0    defaults
jsonpath-ng               1.4.3                    pypi_0    pypi
jsonschema                3.0.2                    py37_0    defaults
jupyter                   1.0.0                    py37_7    defaults
jupyter_client            5.3.3                    py37_1    defaults
jupyter_console           6.0.0                    py37_0    defaults
jupyter_core              4.5.0                      py_0    defaults
jupyterlab                1.1.4              pyhf63ae98_0    defaults
jupyterlab_server         1.0.6                      py_0    defaults
keras                     2.2.4                         0    defaults
keras-applications        1.0.7                    pypi_0    pypi
keras-base                2.2.4                    py37_0    defaults
keras-preprocessing       1.0.9                    pypi_0    pypi
keyring                   18.0.0                   py37_0    defaults
kiwisolver                1.1.0            py37h0a44026_0    defaults
kombu                     4.5.0                    pypi_0    pypi
krb5                      1.16.1               hddcf347_7    defaults
lazy-object-proxy         1.4.2            py37h1de35cc_0    defaults
ld64                      274.2                         1    defaults
libarchive                3.3.3                h786848e_5    defaults
libcurl                   7.65.3               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
libprotobuf               3.9.2                hd9629dc_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
line_profiler             2.1.2            py37h1de35cc_0    defaults
llvm                      4.0.1                         1    defaults
llvm-lto-tapi             4.0.1                         1    defaults
llvmlite                  0.29.0           py37h98b8051_0    defaults
locket                    0.2.0                    py37_1    defaults
lxml                      4.4.1            py37hef8c89e_0    defaults
lz4-c                     1.8.1.2              h1de35cc_0    defaults
lzo                       2.10                 h362108e_2    defaults
markdown                  3.1                      pypi_0    pypi
markupsafe                1.1.1            py37h1de35cc_0    defaults
marshmallow               2.19.2                   pypi_0    pypi
matplotlib                3.1.1            py37h54f8f79_0    defaults
mccabe                    0.6.1                    py37_1    defaults
mistune                   0.8.4            py37h1de35cc_0    defaults
mkl                       2018.0.3                      1    defaults
mkl-service               1.1.2            py37h6b9c3cc_5    defaults
mkl_fft                   1.0.6            py37hb8a8100_0    defaults
mkl_random                1.0.1            py37h5d10147_1    defaults
mock                      2.0.0                    pypi_0    pypi
more-itertools            7.1.0                    pypi_0    pypi
mpc                       1.1.0                h6ef4df4_1    defaults
mpfr                      4.0.1                h3018a27_3    defaults
mpmath                    1.1.0                    py37_0    defaults
msgpack-numpy             0.4.3.2                  py37_0    defaults
msgpack-python            0.6.1            py37h04f5b5a_1    defaults
multipledispatch          0.6.0                    py37_0    defaults
murmurhash                1.0.2            py37h0a44026_0    defaults
nanotime                  0.5.2                    pypi_0    pypi
navigator-updater         0.2.1                    py37_0    defaults
nbconvert                 5.6.0                    py37_1    defaults
nbformat                  4.4.0                    py37_0    defaults
ncurses                   6.1                  h0a44026_1    defaults
neo4j                     1.7.2                    pypi_0    pypi
neobolt                   1.7.4                    pypi_0    pypi
neotime                   1.7.4                    pypi_0    pypi
networkx                  2.3                        py_0    defaults
newrelic                  4.16.1.117               pypi_0    pypi
ninja                     1.9.0            py37h04f5b5a_0    defaults
nltk                      3.4.5                    py37_0    defaults
nose                      1.3.7                    py37_2    defaults
notebook                  6.0.1                    py37_0    defaults
numba                     0.45.1           py37h6440ff4_0    defaults
numexpr                   2.6.8            py37h1dc9127_0    defaults
numpy                     1.15.4           py37h6a91979_0    defaults
numpy-base                1.15.4           py37h8a80b8c_0    defaults
numpydoc                  0.9.1                      py_0    defaults
oauthlib                  3.0.1                    pypi_0    pypi
od                        1.0                      pypi_0    pypi
olefile                   0.46                     py37_0    defaults
openpyxl                  2.6.3                      py_0    defaults
openssl                   1.1.1d               h1de35cc_1    defaults
oss2                      2.6.1                    pypi_0    pypi
outcome                   1.0.0                    pypi_0    pypi
packaging                 19.2                       py_0    defaults
pandas                    0.25.1           py37h0a44026_0    defaults
pandoc                    2.2.3.2                       0    defaults
pandocfilters             1.4.2                    py37_1    defaults
pango                     1.42.4               h060686c_0    defaults
paramiko                  2.6.0                    pypi_0    pypi
parso                     0.5.1                      py_0    defaults
partd                     1.0.0                      py_0    defaults
path.py                   12.0.1                     py_0    defaults
pathlib2                  2.3.4                    py37_0    defaults
pathspec                  0.5.9                    pypi_0    pypi
patsy                     0.5.1                    py37_0    defaults
pbr                       5.1.3                    pypi_0    pypi
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.1.0            py37hb68e598_0    defaults
pip                       19.2.3                   py37_0    defaults
pixman                    0.38.0               h1de35cc_0    defaults
pkginfo                   1.5.0.1                  py37_0    defaults
plac                      0.9.6                    py37_0    defaults
plotly                    4.1.1                    pypi_0    pypi
pluggy                    0.13.0                   py37_0    defaults
ply                       3.11                     pypi_0    pypi
preshed                   2.0.1            py37h0a44026_0    defaults
prom-night                1.4.4                    pypi_0    pypi
prometheus_client         0.7.1                      py_0    defaults
prompt-toolkit            1.0.15                   pypi_0    pypi
prompt_toolkit            2.0.9                    py37_0    defaults
protobuf                  3.7.1                    pypi_0    pypi
psutil                    5.6.3            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
pyasn1                    0.4.5                    pypi_0    pypi
pyasn1-modules            0.2.4                    pypi_0    pypi
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
pycryptodome              3.8.2                    pypi_0    pypi
pycurl                    7.43.0.3         py37ha12b0ac_0    defaults
pycycle                   0.0.8                    pypi_0    pypi
pydeps                    1.7.2                    pypi_0    pypi
pyfiglet                  0.8.post1                pypi_0    pypi
pyflakes                  2.1.1                    py37_0    defaults
pygments                  2.4.2                      py_0    defaults
pygraphviz                1.3              py37h1de35cc_1    defaults
pylint                    2.3.1                    py37_0    defaults
pymc3                     3.6                   py37_1000    conda-forge
pynacl                    1.3.0                    pypi_0    pypi
pyodbc                    4.0.27           py37h0a44026_0    defaults
pyopenssl                 19.0.0                   py37_0    defaults
pyparsing                 2.4.2                      py_0    defaults
pyqt                      5.9.2            py37h655552a_2    defaults
pyrsistent                0.15.4           py37h1de35cc_0    defaults
pysocks                   1.7.1                    py37_0    defaults
pytables                  3.5.2            py37h5bccee9_1    defaults
pytest                    5.0.0                    pypi_0    pypi
pytest-arraydiff          0.3              py37h39e3cac_0    defaults
pytest-astropy            0.5.0                    py37_0    defaults
pytest-doctestplus        0.4.0                      py_0    defaults
pytest-openfiles          0.4.0                      py_0    defaults
pytest-remotedata         0.3.2                    py37_0    defaults
python                    3.7.3                h359304d_0    defaults
python-dateutil           2.8.0                    py37_0    defaults
python-graphviz           0.10.1                     py_0    conda-forge
python-libarchive-c       2.8                     py37_13    defaults
python.app                2                        py37_9    defaults
pytorch                   1.1.0                   py3.7_0    pytorch
pytz                      2019.2                     py_0    defaults
pyvis                     0.1.6.0                  pypi_0    pypi
pywavelets                1.0.3            py37h1d22016_1    defaults
pyyaml                    5.1.2            py37h1de35cc_0    defaults
pyzmq                     18.1.0           py37h0a44026_0    defaults
qt                        5.9.7                h468cd18_1    defaults
qtawesome                 0.6.0                      py_0    defaults
qtconsole                 4.5.5                      py_0    defaults
qtpy                      1.9.0                      py_0    defaults
raven                     6.10.0                   pypi_0    pypi
readline                  7.0                  h1de35cc_5    defaults
redis                     2.10.6                   pypi_0    pypi
regex                     2019.08.19       py37h1de35cc_0    defaults
requests                  2.22.0                   py37_0    defaults
requests-async            0.5.0                    pypi_0    pypi
requests-oauthlib         1.2.0                    pypi_0    pypi
retrying                  1.3.3                    pypi_0    pypi
rfc3986                   1.3.2                    pypi_0    pypi
rope                      0.14.0                     py_0    defaults
rsa                       3.4.2                    pypi_0    pypi
ruamel-yaml               0.15.98                  pypi_0    pypi
ruamel_yaml               0.15.46          py37h1de35cc_0    defaults
s3transfer                0.2.0                    pypi_0    pypi
schema                    0.7.0                    pypi_0    pypi
scikit-image              0.15.0           py37h0a44026_0    defaults
scikit-learn              0.20.1           py37h4f467ca_0    defaults
scipy                     1.1.0            py37h28f7352_1    defaults
seaborn                   0.9.0                    py37_0    defaults
send2trash                1.5.0                    py37_0    defaults
setuptools                41.2.0                   py37_0    defaults
shellingham               1.3.1                    pypi_0    pypi
shortuuid                 0.5.0                    pypi_0    pypi
sigtools                  2.0.2                    pypi_0    pypi
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
smmap2                    2.0.5                    pypi_0    pypi
snappy                    1.1.7                he62c110_3    defaults
sniffio                   1.1.0                    pypi_0    pypi
snowballstemmer           1.9.1                      py_0    defaults
sortedcollections         1.1.2                    py37_0    defaults
sortedcontainers          2.1.0                    pypi_0    pypi
soupsieve                 1.9.3                    py37_0    defaults
spacy                     2.0.16           py37h6440ff4_0    defaults
sphinx                    2.2.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.6                    py37_0    defaults
spyder-kernels            0.5.2                    py37_0    defaults
sqlalchemy                1.3.8            py37h1de35cc_0    defaults
sqlite                    3.29.0               ha441bb4_0    defaults
statsmodels               0.10.1           py37h1d22016_0    defaults
stdlib-list               0.5.0                    pypi_0    pypi
stevedore                 1.30.1                   pypi_0    pypi
sympy                     1.4                      py37_0    defaults
tbb                       2019.4               h04f5b5a_0    defaults
tblib                     1.4.0                      py_0    defaults
tensorboard               1.13.1           py37haf313ee_0    defaults
tensorboard-logger        0.1.0                    pypi_0    pypi
tensorflow                1.13.1          mkl_py37h70c3834_0    defaults
tensorflow-base           1.13.1          mkl_py37h66b1bf0_0    defaults
tensorflow-estimator      1.13.0                     py_0    defaults
termcolor                 1.1.0                    pypi_0    pypi
terminado                 0.8.2                    py37_0    defaults
testpath                  0.4.2                    py37_0    defaults
theano                    1.0.4            py37h04f5b5a_0    defaults
thinc                     6.12.1           py37h4f467ca_0    defaults
tk                        8.6.8                ha441bb4_0    defaults
toolz                     0.10.0                     py_0    defaults
torchbiggraph             1.dev0                   pypi_0    pypi
torchvision               0.3.0             py37_cuNone_1    pytorch
tornado                   6.0.3            py37h1de35cc_0    defaults
tqdm                      4.36.1                     py_0    defaults
traitlets                 4.3.2                    py37_0    defaults
treelib                   1.5.5                    pypi_0    pypi
trio                      0.12.1                   pypi_0    pypi
typing-extensions         3.7.2                    pypi_0    pypi
ujson                     1.35                     pypi_0    pypi
unicodecsv                0.14.1                   py37_0    defaults
unixodbc                  2.3.7                h1de35cc_0    defaults
uritemplate               3.0.0                    pypi_0    pypi
urllib3                   1.24.2                   py37_0    defaults
vine                      1.3.0                    pypi_0    pypi
virtualenv                16.4.3                   pypi_0    pypi
virtualenv-clone          0.5.2                    pypi_0    pypi
virtualenvwrapper         4.8.4                    pypi_0    pypi
vmprof                    0.4.12                   pypi_0    pypi
wcwidth                   0.1.7                    py37_0    defaults
webencodings              0.5.1                    py37_1    defaults
werkzeug                  0.16.0                     py_0    defaults
wheel                     0.33.6                   py37_0    defaults
widgetsnbextension        3.5.1                    py37_0    defaults
wrapt                     1.10.11          py37h1de35cc_2    defaults
wurlitzer                 1.0.3                    py37_0    defaults
xlrd                      1.2.0                    py37_0    defaults
xlsxwriter                1.2.1                      py_0    defaults
xlwings                   0.15.10                  py37_0    defaults
xlwt                      1.3.0                    py37_0    defaults
xmltodict                 0.12.0                   pypi_0    pypi
xz                        5.2.4                h1de35cc_4    defaults
yaml                      0.1.7                hc338f04_2    defaults
yappi                     1.0                      pypi_0    pypi
yq                        2.7.2                    pypi_0    pypi
zc-lockfile               1.4                      pypi_0    pypi
zeromq                    4.3.1                h0a44026_3    defaults
zict                      1.0.0                      py_0    defaults
zipp                      0.6.0                      py_0    defaults
zlib                      1.2.11               h1de35cc_3    defaults
zstd                      1.3.7                h5bba6e5_0    defaults

@joshlk
Copy link
Author

joshlk commented Sep 30, 2019

I have solved the issue via:

# jmespath was also blocking pip
rm -r /Users/<home>/anaconda3/lib/python3.7/site-packages/jmespath*
pip uninstall boto3
pip uninstall botocore
pip install boto3

But it is obviously touching on a much deeper issue with conda.

@Lin1007
Copy link

Lin1007 commented Nov 28, 2019

After upgrading to conda 4.7.12 I experienced the same problem and I have solved the issue as @joshlk, by removing folders related to boto3 and reinstalling it

rm -r /home/Users/anaconda3/lib/python3.6/site-packages/boto3* 
conda install boto3

@khaerulumam42
Copy link

I solved with

pip install boto3

on base environment. Still cannot figure out why its happen, any update will be post here

@jzf2101
Copy link

jzf2101 commented Jan 7, 2020

I also got this error when I updated conda and following @Lin1007 's instructions resolved the issue

@ZenoRewn
Copy link

Same problem.
I tried every methods in the internet, but ...

Finally I open Anaconda and upgrade to latest version, fixed.

@Sudutt
Copy link

Sudutt commented May 6, 2020

Solved same issue by using @joshlk 's method

Behaviour:

Had an inconsistent environment. I resolved it using

  1. conda update -n base -c defaults conda
  2. conda update --prefix /home/harne-sudutt11/anaconda3 anaconda

To verify, I tried running conda update, which failed.
I tried running conda install --revision 7 to restore and got this

Traceback (most recent call last):
  File "/home/harne-sudutt11/anaconda3/lib/python3.7/site-packages/conda/exceptions.py", line 1079, in __call__
    return func(*args, **kwargs)
  File "/home/harne-sudutt11/anaconda3/lib/python3.7/site-packages/conda/cli/main.py", line 84, in _main
    exit_code = do_call(args, p)
  File "/home/harne-sudutt11/anaconda3/lib/python3.7/site-packages/conda/cli/conda_argparse.py", line 80, in do_call
    module = import_module(relative_mod, __name__.rsplit('.', 1)[0])
  File "/home/harne-sudutt11/anaconda3/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/harne-sudutt11/anaconda3/lib/python3.7/site-packages/conda/cli/main_install.py", line 8, in <module>
    from .install import install
  File "/home/harne-sudutt11/anaconda3/lib/python3.7/site-packages/conda/cli/install.py", line 19, in <module>
    from ..core.index import calculate_channel_urls, get_index
  File "/home/harne-sudutt11/anaconda3/lib/python3.7/site-packages/conda/core/index.py", line 10, in <module>
    from .package_cache_data import PackageCacheData
  File "/home/harne-sudutt11/anaconda3/lib/python3.7/site-packages/conda/core/package_cache_data.py", line 15, in <module>
    from .path_actions import CacheUrlAction, ExtractPackageAction
  File "/home/harne-sudutt11/anaconda3/lib/python3.7/site-packages/conda/core/path_actions.py", line 30, in <module>
    from ..gateways.connection.download import download
  File "/home/harne-sudutt11/anaconda3/lib/python3.7/site-packages/conda/gateways/connection/download.py", line 18, in <module>
    from .session import CondaSession
  File "/home/harne-sudutt11/anaconda3/lib/python3.7/site-packages/conda/gateways/connection/session.py", line 13, in <module>
    from .adapters.s3 import S3Adapter
  File "/home/harne-sudutt11/anaconda3/lib/python3.7/site-packages/conda/gateways/connection/adapters/s3.py", line 14, in <module>
    boto3.client('s3')  # https://github.com/conda/conda/issues/8993
AttributeError: module 'boto3' has no attribute 'client'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/harne-sudutt11/anaconda3/bin/conda", line 13, in <module>
    sys.exit(main())
  File "/home/harne-sudutt11/anaconda3/lib/python3.7/site-packages/conda/cli/main.py", line 150, in main
    return conda_exception_handler(_main, *args, **kwargs)
  File "/home/harne-sudutt11/anaconda3/lib/python3.7/site-packages/conda/exceptions.py", line 1371, in conda_exception_handler
    return_value = exception_handler(func, *args, **kwargs)
  File "/home/harne-sudutt11/anaconda3/lib/python3.7/site-packages/conda/exceptions.py", line 1082, in __call__
    return self.handle_exception(exc_val, exc_tb)
  File "/home/harne-sudutt11/anaconda3/lib/python3.7/site-packages/conda/exceptions.py", line 1126, in handle_exception
    return self.handle_unexpected_exception(exc_val, exc_tb)
  File "/home/harne-sudutt11/anaconda3/lib/python3.7/site-packages/conda/exceptions.py", line 1137, in handle_unexpected_exception
    self.print_unexpected_error_report(error_report)
  File "/home/harne-sudutt11/anaconda3/lib/python3.7/site-packages/conda/exceptions.py", line 1207, in print_unexpected_error_report
    from .cli.main_info import get_env_vars_str, get_main_info_str
  File "/home/harne-sudutt11/anaconda3/lib/python3.7/site-packages/conda/cli/main_info.py", line 19, in <module>
    from ..core.index import _supplement_index_with_system
  File "/home/harne-sudutt11/anaconda3/lib/python3.7/site-packages/conda/core/index.py", line 10, in <module>
    from .package_cache_data import PackageCacheData
  File "/home/harne-sudutt11/anaconda3/lib/python3.7/site-packages/conda/core/package_cache_data.py", line 15, in <module>
    from .path_actions import CacheUrlAction, ExtractPackageAction
  File "/home/harne-sudutt11/anaconda3/lib/python3.7/site-packages/conda/core/path_actions.py", line 30, in <module>
    from ..gateways.connection.download import download
  File "/home/harne-sudutt11/anaconda3/lib/python3.7/site-packages/conda/gateways/connection/download.py", line 18, in <module>
    from .session import CondaSession
  File "/home/harne-sudutt11/anaconda3/lib/python3.7/site-packages/conda/gateways/connection/session.py", line 13, in <module>
    from .adapters.s3 import S3Adapter
  File "/home/harne-sudutt11/anaconda3/lib/python3.7/site-packages/conda/gateways/connection/adapters/s3.py", line 14, in <module>
    boto3.client('s3')  # https://github.com/conda/conda/issues/8993
AttributeError: module 'boto3' has no attribute 'client'

Resolution

I tried @khaerulumam42 's method and ran pip install boto3 but received this

Requirement already satisfied: boto3 in /home/harne-sudutt11/anaconda3/lib/python3.7/site-packages (1.11.9)
Requirement already satisfied: jmespath<1.0.0,>=0.7.1 in /home/harne-sudutt11/anaconda3/lib/python3.7/site-packages (from boto3) (0.9.4)
WARNING: No metadata found in /home/harne-sudutt11/anaconda3/lib/python3.7/site-packages
ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: '/home/harne-sudutt11/anaconda3/lib/python3.7/site-packages/jmespath-0.9.4.dist-info/METADATA'

And so followed @joshlk 's method to first remove jmespath, pip remove boto3 & botocore and reinstalled boto3 by pip

rm -r ~/anaconda3/lib/python3.7/site-packages/jmespath*
pip uninstall boto3
pip uninstall botocore
pip install boto3

@bviscovich
Copy link

I was getting the same boto3 error after trying to install gensim with anaconda (conda install gensim). The install seemed to work successfully, however calls to gensim's methods triggered the error, and then subsequently I could no longer run any Conda commands without getting an error.
I followed @joshlk's approach mentioned above, and that resolved the problem for me. I then used pip (not anaconda) to install gensim, and everything worked fine after that.
Remember to always install in a virtual env so that you can easily undo and play around without impacting other projects.

@anejad
Copy link

anejad commented Apr 27, 2021

I solved with

pip install boto3

on base environment. Still cannot figure out why its happen, any update will be post here

This solution worked for me. Thank you!

@zjb2016
Copy link

zjb2016 commented Oct 6, 2021

I solved with delete boto3 in sitepackages

@github-actions
Copy link

github-actions bot commented Oct 8, 2022

Hi there, thank you for your contribution!

This issue has been automatically marked as stale because it has not had recent activity. It will be closed automatically if no further activity occurs.

If you would like this issue to remain open please:

  1. Verify that you can still reproduce the issue at hand
  2. Comment that the issue is still reproducible and include:
    - What OS and version you reproduced the issue on
    - What steps you followed to reproduce the issue

NOTE: If this issue was closed prematurely, please leave a comment.

Thanks!

@github-actions github-actions bot added the stale [bot] marked as stale due to inactivity label Oct 8, 2022
@github-actions github-actions bot added the stale::closed [bot] closed after being marked as stale label Nov 7, 2022
@github-actions github-actions bot closed this as completed Nov 7, 2022
@github-actions github-actions bot added the locked [bot] locked due to inactivity label Nov 7, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked [bot] locked due to inactivity stale::closed [bot] closed after being marked as stale stale [bot] marked as stale due to inactivity
Projects
None yet
Development

No branches or pull requests

9 participants