question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

unexpected keyword argument 'allow_abbrev'

See original GitHub issue

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).

Traceback (most recent call last):
  File "/usr/bin/yq", line 11, in <module>
    load_entry_point('yq==2.7.2', 'console_scripts', 'yq')()
  File "/usr/lib/python3.7/site-packages/yq/__init__.py", line 119, in main
    parser = get_parser(program_name)
  File "/usr/lib/python3.7/site-packages/yq/__init__.py", line 96, in get_parser
    parser = Parser(**parser_args)
TypeError: __init__() got an unexpected keyword argument 'allow_abbrev'

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
jonathan-neufeld-asurioncommented, Mar 1, 2021

I am running into this issue now as well, and to answer your question, they are very different.

I found the issue, an older version of argparse was installed as a standalone module and it was overriding with the built-in version.

0reactions
kislyukcommented, Jan 27, 2019

Closing due to lack of response.

Read more comments on GitHub >

github_iconTop 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 >
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 >
[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 >
Python 3.6: __init__() got an unexpected keyword argument ...
Python 3.6: __init__() got an unexpected keyword argument 'allow_abbrev' ; Describe the bug. If I invoke scalene 1.3.3 with Python 3.6 in any...
Read more >
What is allow_abbrev in Python? - Educative.io
However, an abbreviation can match more than one argument. In that case, the program throws an error. The allow_abbrev parameter supplied to the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found