Prompt() got an unexpected keyword argument 'show_choices'

Hello everyone,
I am a django developer recently startted to learn openedx.so for installing it,I download the latest stable tutor and place the tutor excutable in my path.And then I installed from pypi.After that When I run tutor local quickstart in my terminal ,it asks for several question like production platform ,domain name for students ,teachers etc etc.But every time I tried several answering or ignoring just pressing enter I got the same error,

TypeError: prompt() got an unexpected keyword argument ‘show_choices’

I am very new to tutor,please help me to find the solution.I am stuck with this issue.

Hi! Thanks for your repor. Can you please paste here the complete error log?

Thank you sir,for your response,the complete error log is given below

Traceback (most recent call last):
  File "/home/muntasir/.local/bin/tutor", line 8, in <module>
    sys.exit(main())
  File "/home/muntasir/.local/lib/python3.8/site-packages/tutor/commands/cli.py", line 30, in main
    cli()  # pylint: disable=no-value-for-parameter
  File "/home/muntasir/.local/lib/python3.8/site-packages/click/core.py", line 610, in __call__
    return self.main(*args, **kwargs)
  File "/home/muntasir/.local/lib/python3.8/site-packages/click/core.py", line 590, in main
    rv = self.invoke(ctx)
  File "/home/muntasir/.local/lib/python3.8/site-packages/click/core.py", line 936, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/muntasir/.local/lib/python3.8/site-packages/click/core.py", line 936, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/muntasir/.local/lib/python3.8/site-packages/click/core.py", line 782, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/muntasir/.local/lib/python3.8/site-packages/click/core.py", line 416, in invoke
    return callback(*args, **kwargs)
  File "/home/muntasir/.local/lib/python3.8/site-packages/tutor/commands/local.py", line 55, in quickstart
    context.invoke(
  File "/home/muntasir/.local/lib/python3.8/site-packages/click/core.py", line 416, in invoke
    return callback(*args, **kwargs)
  File "/home/muntasir/.local/lib/python3.8/site-packages/click/decorators.py", line 26, in new_func
    return ctx.invoke(f, ctx.obj, *args[1:], **kwargs)
  File "/home/muntasir/.local/lib/python3.8/site-packages/click/core.py", line 416, in invoke
    return callback(*args, **kwargs)
  File "/home/muntasir/.local/lib/python3.8/site-packages/tutor/commands/config.py", line 53, in save
    config, defaults = interactive_config.load_all(
  File "/home/muntasir/.local/lib/python3.8/site-packages/tutor/interactive.py", line 27, in load_all
    ask_questions(config, defaults)
  File "/home/muntasir/.local/lib/python3.8/site-packages/tutor/interactive.py", line 64, in ask_questions
    ask_choice(
  File "/home/muntasir/.local/lib/python3.8/site-packages/tutor/interactive.py", line 186, in ask_choice
    answer = click.prompt(
TypeError: prompt() got an unexpected keyword argument 'show_choices'

It looks like you are using a deprecated version of click. What’s the output of pip freeze | grep click?

Output for pip freeze | grep click ? is,

click==3.3

Please run: pip install --upgrade click. This should resolve your issue.

Thank you sir,it helped me a lot

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.