avast / pytest-docker

Docker-based integration tests
MIT License
427 stars 71 forks source link

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

Closed pcrespov closed 4 years ago

pcrespov commented 4 years ago

Since version 17.4 attrs does not include convert as argument and your setup requirements does not add this constraint

How to reproduce

$ pip install attrs
$ pip install pytest
$ pip install pytest-docker
$ pip list
Package            Version
------------------ -------
attrs              19.3.0 
importlib-metadata 1.4.0  
more-itertools     8.1.0  
packaging          20.0   
pip                19.3.1 
pkg-resources      0.0.0  
pluggy             0.13.1 
py                 1.8.1  
pyparsing          2.4.6  
pytest             5.3.2  
pytest-docker      0.6.1  
setuptools         45.0.0 
six                1.13.0 
wcwidth            0.1.8  
wheel              0.33.6 
zipp               1.0.0  

$ pytest -- help 
...
  File ".venv/lib/python3.6/site-packages/pytest_docker/__init__.py", line 113, in DockerComposeExecutor
    _compose_files = attr.ib(convert=str_to_list)
TypeError: attrib() got an unexpected keyword argument 'convert'
Luminaar commented 4 years ago

Hello, this is a long standing problem and the reason I took over this project from previous maintainer. I'm in the process of releasing a new version of this package.

Luminaar commented 4 years ago

A temporary workaround is to set attrs version to <19 in your project.

pcrespov commented 4 years ago

A temporary workaround is to set attrs version to <19 in your project.

Thx. Yes, that is what I did :-)