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

TypeError: prompt() got an unexpected keyword argument 'show_choices' #46

Open
agn-7 opened this issue Mar 18, 2021 · 1 comment
Open

Comments

@agn-7
Copy link

agn-7 commented Mar 18, 2021

After cookiecutter https://github.com/awesto/cookiecutter-django-shop command and filling the app information I'm dealing with the following error:

  File "/home/agn/.local/bin/cookiecutter", line 8, in <module>
    sys.exit(main())
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/click/core.py", line 716, in __call__
    return self.main(*args, **kwargs)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/click/core.py", line 696, in main
    rv = self.invoke(ctx)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/click/core.py", line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/click/core.py", line 534, in invoke
    return callback(*args, **kwargs)
  File "/home/agn/.local/lib/python3.7/site-packages/cookiecutter/cli.py", line 152, in main
    skip_if_file_exists=skip_if_file_exists,
  File "/home/agn/.local/lib/python3.7/site-packages/cookiecutter/main.py", line 93, in cookiecutter
    context['cookiecutter'] = prompt_for_config(context, no_input)
  File "/home/agn/.local/lib/python3.7/site-packages/cookiecutter/prompt.py", line 197, in prompt_for_config
    cookiecutter_dict, env, key, raw, no_input
  File "/home/agn/.local/lib/python3.7/site-packages/cookiecutter/prompt.py", line 173, in prompt_choice_for_config
    return read_user_choice(key, rendered_options)
  File "/home/agn/.local/lib/python3.7/site-packages/cookiecutter/prompt.py", line 81, in read_user_choice
    prompt, type=click.Choice(choices), default=default, show_choices=False
TypeError: prompt() got an unexpected keyword argument 'show_choices'
@agn-7
Copy link
Author

agn-7 commented Mar 18, 2021

So I had to comment out a piece of /usr/local/lib/python3.6/dist-packages/cookiecutter/prompt.py code as follows:

line 81:

    user_choice = click.prompt(
        prompt, type=click.Choice(choices), default=default)#, show_choices=False
    #)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant