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: attrib() got an unexpected keyword argument 'convert' #13

Open
tappress opened this issue Jun 15, 2024 · 2 comments
Open

TypeError: attrib() got an unexpected keyword argument 'convert' #13

tappress opened this issue Jun 15, 2024 · 2 comments

Comments

@tappress
Copy link

When creating Telegraph() instance, error is raised:

File "/site-packages/aiograph/types/page_list.py", line 21, in PageList
pages: List[Page] = ib(factory=list, convert=pages_converter)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: attrib() got an unexpected keyword argument 'convert'

Suggested workaround from https://stackoverflow.com/questions/58189683/typeerror-attrib-got-an-unexpected-keyword-argument-convert is to set attrs version to attrs==19.1.0 instead of attrs>=19.1.0.

Workaround is working, but better solution would be to update attrs version and use converter kward instead of convert as per this PR: python-attrs/attrs#307

@JrooTJunior
Copy link
Member

Feel free to contribute to aiograph. You can create pull request to fix it.
As you can see this package hasn't been updated in over 5 years, I can post an update if someone fixes it.

@tappress
Copy link
Author

@JrooTJunior there is already commit that fixes this error, but you didn't release this version. Last release on PyPi dates 10 Mar 2019 and last commit by you was in Nov 2021.

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

2 participants