-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
RecursionError when checking module using with pandas.merge #2843
Comments
Thanks for the report! |
Having the same problem, fixed by reverting to older version of pandas. |
Encountering the same issue.
|
This seems to have been fixed with |
Hello, I'm still encountering this error with: |
Thanks @sbardPHI I can reproduce the bug still using the versions you've mentioned. |
Not sure if this is related, but I also get a stack overflow with Pandas. In my case, the minimal example I managed to make is:
If I drop the This is with
|
Using:
I am not able to reproduce the original error using the code:
I can however reproduce the issue, if I am using the
I've done some debugging and it seems that the recursion error occurs when running Is anyone able to reproduce the reported issue without the redefined_variable_type plugin enabled on the latest version of pylint / pandas? I can look into the issue in more detail if helpful. |
This seems to have reared its ugly head again with: pandas 1.1.3 I can reproduce the errors with
Things were working fine until I upgraded my environment, and now I get these pylint errors on my code that merges pandas dataframes. |
I also ran into this again, even in a project not using pandas. But increasing the recursion limit helps in my cases. One way to do so it by having the following to the
FROM python:3.9.1
RUN pip install pip==20.3.1
RUN pip install pylint==2.6.0 pandas==1.1.5 astroid==2.4.2
RUN echo "import pandas;" > main.py
RUN echo "pandas.merge(None, None)" >> main.py
# TODO: Enable the following two lines to prevent the RecursionError from happening.
#RUN echo "[MASTER]" > pylintrc
#RUN echo "init-hook='import sys; sys.setrecursionlimit(8 * sys.getrecursionlimit())'" >> pylintrc
RUN pylint main.py |
pylint
crashes with(full output here)
on this minimal
.py
file:Here is a
Dockerfile
to reproduce the problem:The text was updated successfully, but these errors were encountered: