awesto/cookiecutter-django-shop

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

agn-7 opened this issue · 1 comments

agn-7 commented

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 commented

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
    #)