Skip to content

pytest<4.3 + latest attrs => TypeError: attrib() got an unexpected keyword argument 'convert' #5903

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

Closed
asottile opened this issue Oct 1, 2019 · 2 comments
Labels

Comments

@asottile
Copy link
Member

asottile commented Oct 1, 2019

Seems attrs 19.2 contains a breaking change:

$ pytest --help
Traceback (most recent call last):
  File "/tmp/x/venv/bin/pytest", line 6, in <module>
    from pytest import main
  File "/tmp/x/venv/lib/python3.6/site-packages/pytest.py", line 13, in <module>
    from _pytest.fixtures import fixture, yield_fixture
  File "/tmp/x/venv/lib/python3.6/site-packages/_pytest/fixtures.py", line 832, in <module>
    class FixtureFunctionMarker(object):
  File "/tmp/x/venv/lib/python3.6/site-packages/_pytest/fixtures.py", line 834, in FixtureFunctionMarker
    params = attr.ib(convert=attr.converters.optional(tuple))
TypeError: attrib() got an unexpected keyword argument 'convert'

The fix is to either upgrade pytest or to downgrade attrs

@asottile
Copy link
Member Author

asottile commented Oct 1, 2019

just creating this so there's visibility -- CC @hynek in case anyone hits this from the attrs side ;)

@asottile asottile closed this as completed Oct 1, 2019
prkumar added a commit to prkumar/uplink that referenced this issue Oct 10, 2019
Our CI build failures are related to pytest-dev/pytest#5903. We initially restricted pytest up to v4.1 in 64952e3 because pytest_twisted wasn't behaving well with the latest version of pytest at the time.
massover pushed a commit to massover/json-rpc that referenced this issue Nov 15, 2019
marcserrat added a commit to cloudblue/connect-python-sdk that referenced this issue Dec 30, 2019
LinuxMercedes added a commit to redkyn/grader that referenced this issue Jan 10, 2020
leezu added a commit to leezu/mxnet that referenced this issue Jan 24, 2020
haojin2 pushed a commit to apache/mxnet that referenced this issue Jan 24, 2020
* Fix numpy decorator

* Workaround pytest-dev/pytest#5903

* Disable pylint warnings

* Fix Edge build

* Fix numpy decorator on Centos
stvsmth added a commit to stvsmth/kenpom that referenced this issue Jan 29, 2020
There's a conflict w/ attrs as defined elsewhere.
See pytest-dev/pytest#5903.
leezu added a commit to leezu/mxnet that referenced this issue Feb 15, 2020
* Fix numpy decorator

* Workaround pytest-dev/pytest#5903

* Disable pylint warnings

* Fix Edge build

* Fix numpy decorator on Centos
leezu added a commit to apache/mxnet that referenced this issue Feb 17, 2020
* Fix transformer.cu interleaved matmul for cuda arch < 5  (#17596)

cublasGemmBatchedEx is only supported for GPU with architecture capabilities equal or greater than 5.0.

Fixes a bug in #16408

* pin Markdown version to 3.1 in Julia doc build (#17549)

* pin Sphinx due to autodocsumm issue with v4.2.0 (#17561)

* pin python dependencies (#17556)

* [CI] Fix static build pipeline (#17474)

* 1.5.x CI fixes (#17426)

* Fix numpy decorator

* Workaround pytest-dev/pytest#5903

* Disable pylint warnings

* Fix Edge build

* Fix numpy decorator on Centos

* Follow redirects when downloading apache-maven-3.3.9-bin.tar.gz

Co-authored-by: Hao Jin <[email protected]>
Co-authored-by: Aaron Markham <[email protected]>
@jaraco
Copy link
Contributor

jaraco commented May 2, 2020

To be clear, downgrade means attrs<19.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants