-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
RecursionError: maximum recursion depth exceeded #3939
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@sam-s thanks for the report. Do you mind trying to reduce your snippet in order to ease the debugging process please? |
I recently also stumbled on this RecursionError. In my case, changing pd.merge(df1, df2, ...) to df1.merge(df2, ...) helped pylint to work again. A reduced example from my code is as follows: import pandas as pd
def func(df1, df2):
# return pd.merge(df1, df2) # RecursionError with pylint!
return df1.merge(df2) # Works (pylint 2.6.0/astroid 2.4.2/Python 3.8.6).
df = pd.DataFrame([[0]])
func(df, df) |
@sam-s @esba1ley @arg-123 thanks for your comments and investigations. |
It seems that issue is re-occurring with the new version 1.1.5 of pandas. I use the same script as @arg-123 : import pandas as pd
def func(df1, df2):
# return pd.merge(df1, df2) # RecursionError with pylint!
return df1.merge(df2) # Works (pylint 2.6.0/astroid 2.4.2/Python 3.8.6).
df = pd.DataFrame([[0]])
func(df, df) Here is the bash script I use to reproduce the bug: python3.8 -m venv env
source env/bin/activate
pip install pandas pylint # pandas==1.1.5 pylint==2.6
pip install wheel
pip install git+https://github.com/PyCQA/astroid.git
pylint test.py where test.py is the Python script above. With pandas 1.1.4, the bug is not present. |
@freud14 thanks for your report. I confirm the bug is present again with |
@hippo91 Done. |
Uh oh!
There was an error while loading. Please reload this page.
Steps to reproduce
save to
pylint-3939.py
run
Current behavior
Expected behavior
no diagnostics
pylint --version output
The text was updated successfully, but these errors were encountered: