[Solution] TypeError: attrib() got an unexpected keyword argument 'convert'

Hi Everyone,

Hope you are enjoying the course! If by any chance, you are receiving the following error while running pytest:

      params = attr.ib(convert=attr.converters.optional(tuple))
      TypeError: attrib() got an unexpected keyword argument 'convert'

The above issue can be resolved by installing attrs module. You need to run the below command and it will fix the issue:

   pip install attrs==19.1.0

If you are still facing any issue, do not hesitate to post a new topic in the forums. :slight_smile:

Happy Learning,
Kanika

8 Likes