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

typeerror: attrs() got an unexpected keyword argument 'eq' scrapy
typeerror deprecated got an unexpected keyword argument addendum
typeerror get_configs_from_pipeline_file got an unexpected keyword argument config_override
typeerror: _variable_v2_call() got an unexpected keyword argument collections
python-attrs
pytest version
twisted attrs() got an unexpected keyword argument 'eq'
how to upgrade pytest

This error occurred during automated testing of a python project on the CI server using pytest. I'm using pytest==4.0.2. This error only just started to occur, previous pipelines seem to work fine.

The full error:

File "/usr/local/lib/python3.7/site-packages/_pytest/tmpdir.py", line 35, in TempPathFactory
    lambda p: Path(os.path.abspath(six.text_type(p)))
TypeError: attrib() got an unexpected keyword argument 'convert'

pytest seems to have the package attrs as a dependency. attrs==19.2.0 was released around 2019-10-01 17:00 UTC. This seems to cause the problem above.

Switching back to attrs==19.1.0 fixes the problem. Just do the following:

pip install attrs==19.1.0

NOTE: I expect that the issue will be resolved either by attrs or pytest soon by releasing a new version. So this fix should only be temporary.

UPDATE: Moving the comment into the answer. This error does not occur on the newer versions of pytest i.e. pytest==5.2.0

TypeError: attrib() got an unexpected keyword argument 'converter , In a Travis CI linux build on Python 3.6, I am getting an odd error: E TypeError: attrib() got an unexpected keyword argument 'converter' The  In a Travis CI linux build on Python 3.6, I am getting an odd error: E TypeError: attrib() got an unexpected keyword argument 'converter' The errors occurs in the following line of jsonschema: jsonschema/jsonschema/_types.py Line 64 in b

pytest fixed using deprecated keyword convert at 3.6.3 (https://docs.pytest.org/en/latest/changelog.html#pytest-3-6-3-2018-07-04). At 4.0.1, pytest merged code using convert (https://github.com/pytest-dev/pytest/pull/4427). This code was fixed on 5.2.0 (https://github.com/pytest-dev/pytest/pull/4795).

TypeError: attrib() got an unexpected keyword argument 'convert' on , TypeError: attrib() got an unexpected keyword argument 'convert' on import #186. Closed. robobeaver6 opened this issue on Oct 23, 2019 · 3 comments. Closed  What you expected to happen? import grafanalib fails with attrs 19.3 downgrading attrs to 19.1 and it imports fine. What happened? >>>from grafanalib.core import * Traceback (most recent call last): File "<input>", line 1, in <module> Fi

pytest version 5.3.1 with attrs Version 19.3.0 works fine for me. [To check the pytest Version and attrs Version issue the following command:]

pip show pytest attrs

I solved the same problem by upgrading pytest module via pip command:

pip install -U pytest

pytest<4.3 + latest attrs => TypeError: attrib() got an unexpected , pytest<4.3 + latest attrs => TypeError: attrib() got an unexpected keyword argument 'convert' #5903. Closed. asottile opened this issue on Oct 1,  Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community

TypeError: attrib() got an unexpected keyword argument , TypeError: attrib() got an unexpected keyword argument 'convert' running hello world #2151. Closed. juanrh opened this issue on Oct 25, 2019 · 3 comments. Spyder(python 3.7) I am facing following errors here. I have already update all library from anaconda prompt. But can't findout the solution of the problem. from sklearn.preprocessing import

pytest uses deprecated `convert` argument in attr's `attrib` · Issue , pytest uses deprecated `convert` argument in attr's `attrib` #3280. Closed TypeError: attrib() got an unexpected keyword argument 'converter'  Using this function to preprocess data works fine on local jupyter notebook but on Colab, I got TypeError: clean() got an unexpected keyword argument How can I fix this problem? Thank you python google-colaboratory spacy

`TypeError: attrib() got an unexpected keyword argument , Tests fail with `TypeError: attrib() got an unexpected keyword argument 'eq'` #549​. Closed. gdhameeja opened this issue on Nov 23, 2019 · 1 comment. Closed  Dismiss Join GitHub today. GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.

Comments
  • Add your code please or prepare minimum example.
  • I confirm, best action is to update pytest to a more recent version.
  • I think there is a missing = sign in the version pinning. It should be pip install --upgrade attrs==19.1.0