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

aws help error #7900

Closed
nnsay opened this issue May 17, 2023 · 1 comment
Closed

aws help error #7900

nnsay opened this issue May 17, 2023 · 1 comment
Assignees
Labels
closed-for-staleness duplicate This issue is a duplicate. pager issues related to AWS_PAGER, cli_pager, or other client-side paging (not API pagination)

Comments

@nnsay
Copy link

nnsay commented May 17, 2023

Describe the bug

Got a error when run aws help

Expected Behavior

get some help information

Current Behavior

ouput: list index out of range

Reproduction Steps

aws --debug help

Possible Solution

No response

Additional Information/Context

➜ ~ aws --debug help
2023-05-17 17:22:41,125 - MainThread - awscli.clidriver - DEBUG - CLI version: aws-cli/2.11.20 Python/3.11.3 Darwin/22.4.0 source/arm64
2023-05-17 17:22:41,125 - MainThread - awscli.clidriver - DEBUG - Arguments entered to CLI: ['--debug', 'help']
2023-05-17 17:22:41,137 - MainThread - botocore.hooks - DEBUG - Event building-command-table.main: calling handler
......
2023-05-17 17:22:41,180 - MainThread - awscli.help - DEBUG - Running command: ['mandoc', '-T', 'ascii']
2023-05-17 17:22:41,188 - MainThread - awscli.clidriver - DEBUG - Exception caught in main()
Traceback (most recent call last):
File "/opt/homebrew/Cellar/awscli/2.11.20/libexec/lib/python3.11/site-packages/awscli/clidriver.py", line 460, in main
return command_table[parsed_args.command](remaining, parsed_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/awscli/2.11.20/libexec/lib/python3.11/site-packages/awscli/help.py", line 278, in call
self.renderer.render(self.doc.getvalue())
File "/opt/homebrew/Cellar/awscli/2.11.20/libexec/lib/python3.11/site-packages/awscli/help.py", line 84, in render
self._send_output_to_pager(converted_content)
File "/opt/homebrew/Cellar/awscli/2.11.20/libexec/lib/python3.11/site-packages/awscli/help.py", line 125, in _send_output_to_pager
if not self._exists_on_path(cmdline[0]):
~~~~~~~^^^
IndexError: list index out of range

list index out of range

CLI version used

aws-cli/2.11.20

Environment details (OS name and version, etc.)

macOS Ventura 13.3.1

@nnsay nnsay added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels May 17, 2023
@tim-finnigan tim-finnigan self-assigned this May 17, 2023
@tim-finnigan
Copy link
Contributor

Hi @nnsay thanks for reaching out. This issue appears to be a duplicate of #4972. I recommend installing v2 via a documented method, and then you can refer to the pagination documentation for more info on configuring a client-side pager. Please let us know if you have any follow up questions.

@tim-finnigan tim-finnigan added duplicate This issue is a duplicate. closing-soon This issue will automatically close in 4 days unless further comments are made. pager issues related to AWS_PAGER, cli_pager, or other client-side paging (not API pagination) and removed bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels May 17, 2023
@github-actions github-actions bot added closed-for-staleness and removed closing-soon This issue will automatically close in 4 days unless further comments are made. labels May 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-for-staleness duplicate This issue is a duplicate. pager issues related to AWS_PAGER, cli_pager, or other client-side paging (not API pagination)
Projects
None yet
Development

No branches or pull requests

2 participants