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

Getting KeyError after running any command #47

Open
vivekaltruist opened this issue Dec 21, 2020 · 4 comments
Open

Getting KeyError after running any command #47

vivekaltruist opened this issue Dec 21, 2020 · 4 comments

Comments

@vivekaltruist
Copy link

vivekaltruist commented Dec 21, 2020

I tried running the commands using python 3.8 but getting
$ licenseheaders --help Traceback (most recent call last): File "/usr/local/bin/licenseheaders", line 8, in <module> sys.exit(main()) File "/usr/local/lib/python3.8/site-packages/licenseheaders.py", line 612, in main arguments = parse_command_line(sys.argv) File "/usr/local/lib/python3.8/site-packages/licenseheaders.py", line 304, in parse_command_line known_extensions = [ftype+":"+",".join(conf["extensions"]) for ftype, conf in typeSettings.items()] File "/usr/local/lib/python3.8/site-packages/licenseheaders.py", line 304, in <listcomp> known_extensions = [ftype+":"+",".join(conf["extensions"]) for ftype, conf in typeSettings.items()] KeyError: 'extensions'

@hakonanes
Copy link

Same here, both on Python 3.7.9 and 3.8.4.

@hakonanes
Copy link

So the fixes made in PR #48 apparently solved the problem.

@phcerdan
Copy link

Hitting this error in the pypi version licenseheaders-0.8.6-py3-none-any.whl

@2BitSalute
Copy link

So the fixes made in PR #48 apparently solved the problem.

Specifically, adding under cmake (line ~145):
"extensions": [],

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

4 participants