katana
katana copied to clipboard
TypeError: __init__() got an unexpected keyword argument 'choices_method'
➜ katana git:(master) katana
Traceback (most recent call last):
File "/usr/local/bin/katana", line 11, in
I'm getting the same issue
Me too, not sure choices_method
is a valid add_argument
. I think it should probably be choices
?
https://docs.python.org/3/library/argparse.html#argparse.ArgumentParser.add_argument
I even get this choices_method
error in Docker. I'll also note that to get docker to install, I had to replace libenchant-dev
with libenchant-2-dev
as libenchant-dev could not be found.

I am experiencing the same issue.
I am experiencing the same issue.
1. pip uninstall cmd2
2. pip install cmd2=='1.0.1'
This will FIX your problem.
Thank you very much for the reply It's working. Later i will post this solution to your github Issues because some other people are having this problem
发自我的iPhone
------------------ Original ------------------ From: Abdullah Khawaja @.> Date: Tue,Sep 14,2021 1:20 PM To: JohnHammond/katana @.> Cc: levelnoah @.>, Comment @.> Subject: Re: [JohnHammond/katana] TypeError: init() got an unexpected keyword argument 'choices_method' (#33)
- pip uninstall cmd2 2. pip install cmd2=='1.0.1'
This will FIX your problem.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.
Excellent - thanks for identifying the issue. Since we now know the cause, I created a pull request that doesn't require a cmd2 downgrade. https://github.com/JohnHammond/katana/pull/39
Note: If the PR is accepted, existing users that update Katana may need to update cmd2 or they'll get a similar error, TypeError: __init__() got an unexpected keyword argument 'choices_provider'
. pip install cmd2 --upgrade