awslabs / aws-shell

An integrated shell for working with the AWS CLI.
Apache License 2.0
7.15k stars 769 forks source link

Can't run AWS-shell error below: #261

Open ProcrastinatingEntrepreneur opened 3 years ago

ProcrastinatingEntrepreneur commented 3 years ago

First run, creating autocomplete index... Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/awsshell/utils.py", line 84, in file_contents with open(filename, mode) as f: FileNotFoundError: [Errno 2] No such file or directory: '/home/benjamin/.aws/shell/cache/completions-1.18.69.json'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/awsshell/index/completion.py", line 63, in load_index contents = self._fslayer.file_contents(filename) File "/usr/local/lib/python3.8/dist-packages/awsshell/utils.py", line 87, in file_contents raise FileReadError(str(e)) awsshell.utils.FileReadError: [Errno 2] No such file or directory: '/home/benjamin/.aws/shell/cache/completions-1.18.69.json'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/awsshell/init.py", line 39, in main index_str = indexer.load_index(utils.AWSCLI_VERSION) File "/usr/local/lib/python3.8/dist-packages/awsshell/index/completion.py", line 65, in load_index raise IndexLoadError(str(e)) awsshell.index.completion.IndexLoadError: [Errno 2] No such file or directory: '/home/benjamin/.aws/shell/cache/completions-1.18.69.json'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/bin/aws-shell", line 8, in sys.exit(main()) File "/usr/local/lib/python3.8/dist-packages/awsshell/init.py", line 43, in main from awsshell.makeindex import write_index File "/usr/local/lib/python3.8/dist-packages/awsshell/makeindex.py", line 8, in import awscli.clidriver File "/usr/lib/python3/dist-packages/awscli/clidriver.py", line 36, in from awscli.help import ProviderHelpCommand File "/usr/lib/python3/dist-packages/awscli/help.py", line 23, in from botocore.docs.bcdoc import docevents ImportError: cannot import name 'docevents' from 'botocore.docs.bcdoc' (/usr/local/lib/python3.8/dist-packages/botocore/docs/bcdoc/init.py)