-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Spyder 6.0a1 - Pandas error crashes console #21149
Comments
Here is a reproducible example.
If there was a way to fix this one for the next release, I would really appreciate it. As its killing my productivity (I still seem to have issues with 5), and I love using Spyder |
Hey @mg3146, thanks for reporting. Are you getting these errors when using Spyder 5? |
I can't even get Spyder 5 to launch anymore, so I've just been using 6. This wasn't a problem for me in Spyder 5 though when I was using it. Are you not able to reproduce? |
Not on Linux. @dalthviz, can you reproduce this problem on Windows? |
If you have Spyder 5 and 6 in the same env, I think that should be the cause. Please create a new env for Spyder 6 and report back if you're still having this problem. |
Took a look into that. Spyder 6 I used your standalone installer. For the console, I had originally been using an environment that Spyder 5 installed in it (via conda install spyder). I created a new environment without Spyder 5 installed, and I'm still getting the same crash / bug. Here is a conda list of the environment I'm using for the console.
|
No worries, I tested on Windows and I was able to reproduce this problem with the code you provided above. We'll try to fix it for alpha2. |
@impact27, this is a very serious bug and it doesn't happen on 5.x, which means it should be related to the many changes you did to the way we handle kernels. Could you take a look at it? Thanks! |
This is a tricky one. For some reason inspecting a frame while a pandas object is being created crashes python. This also means that debugging this would crash python. The problem here is that when a traceback is created in Spyder 6, the frames are inspected to provide helpful information about the crash. We could remove this but the underlying issue, which is probably a pandas issue, would still be there. |
Can you check if spyder-ide/spyder-kernels#464 fixes this issue? |
To reproduce, from a terminal:
On macOS, I get a "RecursionError", on windows, python crashes. |
Should I open a bug in pandas? It is not clear this is really an issue unless you are debugging, in which case you are interfering with the program flow. I think we should probably not get the traceback locals as this might get triggered. |
Yeah, please do.
I saw that you already did that, but I agree. |
Hi - quick bug. It seems like when you get a pandas error, like this one, it kills the Spyder iPython console:
The text was updated successfully, but these errors were encountered: