pylyzer
pylyzer copied to clipboard
Stack overflow with the spotipy library
Describe the bug When importing spotipy and using pylyzer, it causes a stack overflow
Reproducible Code
#main.py
import spotipy
$ pylyzer --verbose 2
Start checking: main.py
Checking [====================] 5/5: __init__.py
Checking [========== ] 27/50: _oid.py
Checking [====================] 6/6: ocsp.py
Checking [====================] 1/1: sentinel.py
Checking [============ ] 75/122: __init__.py
thread 'pylyzer' has overflowed its stack
fatal runtime error: stack overflow
Aborted (core dumped)
Expected behavior Shouldn't overflow
Environment
- OS: x86_64 GNU/Linux Ubuntu
- Version: 22.04.5 LTS
This issue is stale because it has been open for 60 days with no activity.
Same. Any module big enough causes overflow, such as torch.
$ pylyzer --version
0.0.82
$ pylyzer --verbose 2 -c "import torch"
...
recursion limit exceed: structural_supertype_of({?Path}, {"numpy/f2py"})
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'scipy/_lib/_docscrape' has overflowed its stack
...
thread 'dense' has overflowed its stack
fatal runtime error: stack overflow
Aborted (core dumped)
Can confirm: https://github.com/mtshiba/pylyzer/issues/130