Error in the pytest TypeError: attrs() got an unexpected keyword argument 'eq'

Hello everyone!
After the installation of Percival, I tried to run the standard test, and I received the following error messages:

Traceback (most recent call last):
File “…/.local/bin/pytest”, line 5, in
from pytest import console_main
File “…/.local/lib/python3.7/site-packages/pytest/init.py”, line 5, in
from _pytest.assertion import register_assert_rewrite
File “…/.local/lib/python3.7/site-packages/_pytest/assertion/init.py”, line 9, in
from _pytest.assertion import rewrite
File “…/.local/lib/python3.7/site-packages/_pytest/assertion/rewrite.py”, line 34, in
from _pytest.assertion import util
File “…/.local/lib/python3.7/site-packages/_pytest/assertion/util.py”, line 13, in
import _pytest._code
File “…/.local/lib/python3.7/site-packages/_pytest/_code/init.py”, line 2, in
from .code import Code
File “…/.local/lib/python3.7/site-packages/_pytest/_code/code.py”, line 942, in
@attr.s(eq=False)
TypeError: attrs() got an unexpected keyword argument ‘eq’

Did anyone get the same error? Any idea on how to solve it?

Hello!

From what I see, the pytest version installed in your environment is “broken”.
I’ll need more info on your environment to be able to help.
Did you create a clean Python “venv” for Perceval?
Did you intall Perceval by cloning the sources from Github?

I see that you’re using Python 3.7, which is getting pretty old. Are you able to update it, or does your environment/other projects prevent you from doing so?

Thanks,
Eric