-
-
Notifications
You must be signed in to change notification settings - Fork 183
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: __init__() got an unexpected keyword argument 'choices_method' #33
Comments
I'm getting the same issue |
Me too, not sure |
I am experiencing the same issue. |
1 similar comment
I am experiencing the same issue. |
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)
1. 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.
|
Update Katana for changes in cmd2 >= 2.0 (June 2021)
Excellent - thanks for identifying the issue. Since we now know the cause, I created a pull request that doesn't require a cmd2 downgrade. #39 Note: If the PR is accepted, existing users that update Katana may need to update cmd2 or they'll get a similar error, |
Update Katana for changes in cmd2 >= 2.0 (June 2021)
➜ katana git:(master) katana
Traceback (most recent call last):
File "/usr/local/bin/katana", line 11, in
load_entry_point('katana==2.0', 'console_scripts', 'katana')()
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 490, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2854, in load_entry_point
return ep.load()
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2445, in load
return self.resolve()
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2451, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "/usr/local/lib/python3.8/dist-packages/katana-2.0-py3.8.egg/katana/main.py", line 10, in
from katana.repl import Repl, ReplMonitor
File "/usr/local/lib/python3.8/dist-packages/katana-2.0-py3.8.egg/katana/repl/init.py", line 301, in
class Repl(cmd2.Cmd):
File "/usr/local/lib/python3.8/dist-packages/katana-2.0-py3.8.egg/katana/repl/init.py", line 587, in Repl
monitor_remove_parser.add_argument(
File "/usr/local/lib/python3.8/dist-packages/cmd2-2.1.1-py3.8.egg/cmd2/argparse_custom.py", line 562, in _add_argument_wrapper
new_arg = orig_actions_container_add_argument(self, *args, **kwargs)
File "/usr/lib/python3.8/argparse.py", line 1380, in add_argument
action = action_class(**kwargs)
TypeError: init() got an unexpected keyword argument 'choices_method'
The text was updated successfully, but these errors were encountered: