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: __init__() got an unexpected keyword argument 'choices_method' #65

Closed
petport opened this issue Jun 27, 2022 · 1 comment
Closed

Comments

@petport
Copy link

petport commented Jun 27, 2022

Hey guys, got this error. Any insight?

(env) petros@DESKTOP-6MF9LET:~/katana$ katana
Traceback (most recent call last):
File "/home/petros/katana/env/bin/katana", line 33, in
sys.exit(load_entry_point('katana==2.0', 'console_scripts', 'katana')())
File "/home/petros/katana/env/bin/katana", line 25, in importlib_load_entry_point
return next(matches).load()
File "/home/petros/katana/env/lib/python3.7/site-packages/importlib_metadata-4.12.0-py3.7.egg/importlib_metadata/init.py", line 203, in load
module = import_module(match.group('module'))
File "/usr/lib/python3.7/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "/home/petros/katana/env/lib/python3.7/site-packages/katana-2.0-py3.7.egg/katana/main.py", line 10, in
from katana.repl import Repl, ReplMonitor
File "/home/petros/katana/env/lib/python3.7/site-packages/katana-2.0-py3.7.egg/katana/repl/init.py", line 301, in
class Repl(cmd2.Cmd):
File "/home/petros/katana/env/lib/python3.7/site-packages/katana-2.0-py3.7.egg/katana/repl/init.py", line 591, in Repl
choices_method=get_monitor_choices,
File "/home/petros/katana/env/lib/python3.7/site-packages/cmd2-2.4.1-py3.7.egg/cmd2/argparse_custom.py", line 866, in _add_argument_wrapper
new_arg = orig_actions_container_add_argument(self, *args, **kwargs)
File "/usr/lib/python3.7/argparse.py", line 1368, in add_argument
action = action_class(**kwargs)
TypeError: init() got an unexpected keyword argument 'choices_method'

@petport
Copy link
Author

petport commented Jun 27, 2022

  1. pip uninstall cmd2
  2. pip install cmd2=='1.0.1'
    This will FIX your problem.

#33 (comment)

@petport petport closed this as completed Jun 27, 2022
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