TypeError: __init__() got an unexpected keyword argument 'allow_abbrev'
See original GitHub issueI get the following error when trying to use cmd2
Traceback (most recent call last):
File "/usr/local/bin/fcreplay", line 33, in <module>
sys.exit(load_entry_point('fcreplay==0.9', 'console_scripts', 'fcreplay')())
File "/usr/local/bin/fcreplay", line 25, in importlib_load_entry_point
return next(matches).load()
File "/usr/local/lib/python3.8/importlib/metadata.py", line 77, in load
module = import_module(match.group('module'))
File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/usr/local/lib/python3.8/site-packages/fcreplay-0.9-py3.8.egg/fcreplay/__main__.py", line 26, in <module>
from fcreplay.cli import Cli
File "/usr/local/lib/python3.8/site-packages/fcreplay-0.9-py3.8.egg/fcreplay/cli.py", line 3, in <module>
import cmd2
File "/usr/local/lib/python3.8/site-packages/cmd2-1.5.0-py3.8.egg/cmd2/__init__.py", line 30, in <module>
from .cmd2 import Cmd
File "/usr/local/lib/python3.8/site-packages/cmd2-1.5.0-py3.8.egg/cmd2/cmd2.py", line 182, in <module>
class Cmd(cmd.Cmd):
File "/usr/local/lib/python3.8/site-packages/cmd2-1.5.0-py3.8.egg/cmd2/cmd2.py", line 2785, in Cmd
alias_parser = DEFAULT_ARGUMENT_PARSER(description=alias_description, epilog=alias_epilog)
File "/usr/local/lib/python3.8/site-packages/cmd2-1.5.0-py3.8.egg/cmd2/argparse_custom.py", line 823, in __init__
super(Cmd2ArgumentParser, self).__init__(
TypeError: __init__() got an unexpected keyword argument 'allow_abbrev'
https://github.com/glisignoli/fcreplay/blob/master/fcreplay/cli.py
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (5 by maintainers)
Top Results From Across the Web
python - Django-admin TypeError: __init__() got an ...
After performing the uninstall I no longer get the unexpected keyword argument 'allow_abbrev' error, and any packages that rely on argparse ...
Read more >unexpected keyword argument 'allow_abbrev' #47 - kislyuk/yq
Hello. I get this error everytime I try to launch yq with or without arguments (also the examples in in README.md don't work)....
Read more >[Solved]-Django-admin TypeError: __init__() got an ...
Coding example for the question Django-admin TypeError: __init__() got an unexpected keyword argument 'allow_abbrev'-django.
Read more >argparse : allow_abbrev behavior between 3.7 and 3.8
msg375276 ‑ (view) Author: (r1kk3r) Date: 2020‑08‑12 18:10
msg375292 ‑ (view) Author: Karthikeyan Singaravelan (xtreak) * Date: 2020‑08‑13 06:27
msg375848 ‑ (view) Author: (r1kk3r) Date:...
Read more >typeerror __init__() got an unexpected keyword argument 'status ...
Indeed, when we try to use requests with SSL in a monkey patched environment we faced the following issue: ``` TypeError: wrap_socket() got...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Use
completer_methodon cmd2 1.5.@glisignoli Thanks for the update. That certainly explains it since
allow_abbrevwasn’t introduced until the Python 3.5 version ofargparse.