Solvedpylint pylint exceed maximum recursion depth

There are similar errors in bugtracker, e.g. #1410, #1285, but I'm not sure the underlying reason for this issue is same.

Steps to reproduce

  1. python3 -m venv ~/venv/pylint-test
  2. . ~/venv/pylint-test/bin/activate
  3. Follow
  4. run pylint --enable=old-raise-syntax diofant/solvers/

Current behavior

It fails with

internal error with sending report for module ['diofant/solvers/']
maximum recursion depth exceeded

Expected behavior

No internal error.

pylint --version output

pylint 2.1.0
astroid 2.0.2
Python 3.5.3 (default, Jan 19 2017, 14:11:04) 
[GCC 6.3.0 20170118]

Some debugging

Note, that same error happens if you enable different checker instead, almost any disabled. For example, exception-message-attribute. The internal error disappears if I comment out line 527.

22 Answers

✔️Accepted Answer

I'm also seeing the behavior with pylint==2.6.0 & astroid==2.4.2.

Other Answers:

I'm seeing the same issue on Python 3.7 and Windows 10 in VS Code. Any ideas how to resolve?

The issue is definitely not resolved, neither for 2.4.4, nor for 2.3.1 nor for 2.6. The only way to solve the problem is to downgrade Astroid to 2.2.5. Otherwise the problem occurs intermittently, which makes it hard to reproduce on a permanent basis.

More Issues: