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

"unexpected keyword argument 'kw_only'" #357

Closed
juanjo75es opened this issue Dec 22, 2019 · 2 comments · Fixed by #358
Closed

"unexpected keyword argument 'kw_only'" #357

juanjo75es opened this issue Dec 22, 2019 · 2 comments · Fixed by #358
Milestone

Comments

@juanjo75es
Copy link

When I try to run any example I always get that error. For example if I run
stdpopsim HomSap -c chr22 -o foo.ts 2
I get:

Traceback (most recent call last):
File "/home/juanjo/.local/bin/stdpopsim", line 6, in
from stdpopsim.cli import stdpopsim_main
File "/home/juanjo/.local/lib/python3.6/site-packages/stdpopsim/init.py", line 12, in
from . models import * # NOQA
File "/home/juanjo/.local/lib/python3.6/site-packages/stdpopsim/models.py", line 144, in
@attr.s(kw_only=True)
TypeError: attrs() got an unexpected keyword argument 'kw_only'

@andrewkern
Copy link
Member

strange. can you post a bit of info about your python install? did you use the pip install?

@gtsambos
Copy link
Member

gtsambos commented Dec 22, 2019

Thanks @juanjo75es! Can you see if you still have this problem after manually upgrading the attrs package?
Eg. if you use pip,

pip install attrs --upgrade

@andrewkern , @jeromekelleher: I think this is to do with this issue, but later versions of attrs have fixed this.

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

Successfully merging a pull request may close this issue.

4 participants