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

Error on first run - TypeError: generate_shorthand_example() takes exactly 4 arguments (3 given) #118

Closed
Garvice opened this issue May 19, 2016 · 5 comments · Fixed by NixOS/nixpkgs#17117
Labels

Comments

@Garvice
Copy link

Garvice commented May 19, 2016

$ aws-shell
First run, creating autocomplete index...
Traceback (most recent call last):
File "/usr/local/bin/aws-shell", line 11, in
sys.exit(main())
File "/Library/Python/2.7/site-packages/awsshell/init.py", line 47, in main
write_index(index_file)
File "/Library/Python/2.7/site-packages/awsshell/makeindex.py", line 63, in write_index
index_command(current, help_command)
File "/Library/Python/2.7/site-packages/awsshell/makeindex.py", line 55, in index_command
index_command(child, sub_help_command)
File "/Library/Python/2.7/site-packages/awsshell/makeindex.py", line 55, in index_command
index_command(child, sub_help_command)
File "/Library/Python/2.7/site-packages/awsshell/makeindex.py", line 43, in index_command
arg, arg_obj.argument_model)
TypeError: generate_shorthand_example() takes exactly 4 arguments (3 given)

@chrisolido
Copy link

sudo aws-shell
First run, creating autocomplete index...
Traceback (most recent call last):
File "/usr/local/bin/aws-shell", line 9, in
load_entry_point('aws-shell==0.1.0', 'console_scripts', 'aws-shell')()
File "/Library/Python/2.7/site-packages/awsshell/init.py", line 47, in main
write_index(index_file)
File "/Library/Python/2.7/site-packages/awsshell/makeindex.py", line 63, in write_index
index_command(current, help_command)
File "/Library/Python/2.7/site-packages/awsshell/makeindex.py", line 55, in index_command
index_command(child, sub_help_command)
File "/Library/Python/2.7/site-packages/awsshell/makeindex.py", line 55, in index_command
index_command(child, sub_help_command)
File "/Library/Python/2.7/site-packages/awsshell/makeindex.py", line 43, in index_command
arg, arg_obj.argument_model)
TypeError: generate_shorthand_example() takes exactly 4 arguments (3 given)

@jordanfarrer
Copy link

Just upgraded to latest version and now I'm getting the following:

$ aws-shell
First run, creating autocomplete index...
Traceback (most recent call last):
File "/usr/local/bin/aws-shell", line 11, in
sys.exit(main())
File "/usr/local/lib/python2.7/site-packages/awsshell/init.py", line 47, in main
write_index(index_file)
File "/usr/local/lib/python2.7/site-packages/awsshell/makeindex.py", line 63, in write_index
index_command(current, help_command)
File "/usr/local/lib/python2.7/site-packages/awsshell/makeindex.py", line 55, in index_command
index_command(child, sub_help_command)
File "/usr/local/lib/python2.7/site-packages/awsshell/makeindex.py", line 55, in index_command
index_command(child, sub_help_command)
File "/usr/local/lib/python2.7/site-packages/awsshell/makeindex.py", line 43, in index_command
arg, arg_obj.argument_model)
TypeError: generate_shorthand_example() takes exactly 4 arguments (3 given)

@donnemartin
Copy link
Collaborator

@jamesls this seems to be caused by aws/aws-cli@4c2c2a7 with generate_shorthand_example now requiring operation_name?

Traceback (most recent call last):
  File "/Users/donnemartin/.virtualenvs/aws-shell-test/bin/aws-shell", line 11, in <module>
    sys.exit(main())
  File "/Users/donnemartin/.virtualenvs/aws-shell-test/lib/python3.5/site-packages/awsshell/__init__.py", line 47, in main
    write_index(index_file)
  File "/Users/donnemartin/.virtualenvs/aws-shell-test/lib/python3.5/site-packages/awsshell/makeindex.py", line 63, in write_index
    index_command(current, help_command)
  File "/Users/donnemartin/.virtualenvs/aws-shell-test/lib/python3.5/site-packages/awsshell/makeindex.py", line 55, in index_command
    index_command(child, sub_help_command)
  File "/Users/donnemartin/.virtualenvs/aws-shell-test/lib/python3.5/site-packages/awsshell/makeindex.py", line 55, in index_command
    index_command(child, sub_help_command)
  File "/Users/donnemartin/.virtualenvs/aws-shell-test/lib/python3.5/site-packages/awsshell/makeindex.py", line 43, in index_command
    arg, arg_obj.argument_model)
TypeError: generate_shorthand_example() missing 1 required positional argument: 'operation_name'

@jamesls
Copy link
Member

jamesls commented May 19, 2016

Ah ok, let me follow up and get that fixed. Thanks for looking into this.

@jamesls
Copy link
Member

jamesls commented May 19, 2016

Fixed via #119

@jamesls jamesls closed this as completed May 19, 2016
cransom pushed a commit to cransom/nixpkgs that referenced this issue Jul 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants