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 on import #21

Open
havedill opened this issue Dec 20, 2019 · 2 comments
Open

TypeError on import #21

havedill opened this issue Dec 20, 2019 · 2 comments

Comments

@havedill
Copy link

havedill commented Dec 20, 2019

Python 3.7.4 (tags/v3.7.4:e09359112e, Jul  8 2019, 20:34:20) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import gogs_client
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Program Files\Python37\lib\site-packages\gogs_client\__init__.py", line 1, in <module>
    from gogs_client.auth import Authentication, Token, UsernamePassword
  File "C:\Program Files\Python37\lib\site-packages\gogs_client\auth.py", line 4, in <module>
    from gogs_client.entities import json_get
  File "C:\Program Files\Python37\lib\site-packages\gogs_client\entities.py", line 84, in <module>
    class GogsRepo(GogsEntity):
  File "C:\Program Files\Python37\lib\site-packages\gogs_client\entities.py", line 105, in GogsRepo
    owner = attr.ib(convert=lambda parsed_json: GogsUser.from_json(parsed_json))
TypeError: attrib() got an unexpected keyword argument 'convert' ```
@richmahn
Copy link
Member

@havedill I believe it only works with Python v2.7

@RobH123
Copy link

RobH123 commented Mar 22, 2021

Oh, that's a problem that comes from the attrs package that first deprecated and then eventually dropped convert. Setting attrs==19.1.0 high in the requirements should fix it I think. (I don't know what package is pulling in attrs.)

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

3 participants