Unable to Run Aws Cli: "Importerror: Cannot Import Name 'Docevents' from 'Botocore. Docs. Bcdoc'"

New to linux, I just installed AWS CLI alongside Python3 and boto3 but I get this error when I tried running AWS CLI.

fdostuni@PG022:~$ sudo ./aws/install
You can now run: /usr/local/bin/aws --version
fdostuni@PG022:~$ aws --version
Traceback (most recent call last):
  File "/usr/bin/aws", line 19, in <module>
    import awscli.clidriver
  File "/usr/lib/python3/dist-packages/awscli/clidriver.py", line 36, in <module>
    from awscli.help import ProviderHelpCommand
  File "/usr/lib/python3/dist-packages/awscli/help.py", line 23, in <module>
    from botocore.docs.bcdoc import docevents
ImportError: cannot import name 'docevents' from 'botocore.docs.bcdoc' (/home/fdostuni/.local/lib/python3.8/site-packages/botocore/docs/bcdoc/__init__.py)
1

1 Answer

try running

pip3 install --upgrade awscli

or

pip install --upgrade awscli
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Chloe Bennett

Chloe Bennett

Culture, Media & Entertainment Columnist

Chloe Bennett explores the intersection of pop culture, streaming entertainment, digital trends, and contemporary lifestyle. Her weekly commentary reaches thousands of culture enthusiasts.

Share this article
Twitter Facebook Pinterest