Can't run AWS-shell error below:
- Dominant language
- Python
- Stars
- 7.3k
- Forks
- 780
- PR merge metrics
- No merged PRs in 30d
Description
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)
Contributor guide
Research direction
Start by reproducing the first-run failure with aws-shell, then inspect awsshell/index/completion.py, awsshell/utils.py, and awsshell/makeindex.py alongside the awscli and botocore imports shown in the traceback. Confirm the dependency interaction and verify that a fresh invocation can create or load the completion index without the ImportError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, python
- Domain
- cli, cloud
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100