astroid icon indicating copy to clipboard operation
astroid copied to clipboard

RecursionError when using "ray"

Open lovettchris opened this issue 2 years ago • 5 comments

Steps to reproduce

  1. pyreverse --output dot --only-classnames --filter-mode PUB_ONLY ray.py
  2. pyreverse --output dot --only-classnames --filter-mode PUB_ONLY discrete_search.py

repro.zip

Current behavior

Fatal Python error: Cannot recover from stack overflow.

Expected behavior

No error.

python -c "from astroid import __pkginfo__; print(__pkginfo__.version)" output

2.12.14

lovettchris avatar Jan 06 '23 23:01 lovettchris

Could you maybe post the stack trace? I'm not a big fan of downloading random zip archives when debugging issues. So direct links to files might be better.

DanielNoord avatar Jan 07 '23 11:01 DanielNoord

the zip only contains python text files that could not possibly harm your computer so long as you don't run them. But if you don't trust your unzip tool then the files also live here: https://github.com/microsoft/archai/tree/main/archai/discrete_search/objectives

lovettchris avatar Jan 09 '23 22:01 lovettchris

A helpful repro at https://github.com/pylint-dev/pylint/issues/8565

jacobtylerwalls avatar Apr 12 '23 11:04 jacobtylerwalls

@jacobtylerwalls Should we just increase the recursion limit? Other tools seem to do so as well.

DanielNoord avatar Apr 12 '23 20:04 DanielNoord

This is going to silentely hide genuine inference issues. (There's another discussion about this so I think I know what Jacob will answer :D)

Pierre-Sassoulas avatar Apr 12 '23 21:04 Pierre-Sassoulas