-
-
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
AttributeError: 'WriteWrapper' object has no attribute '_thread_id' in kernel #19735
Comments
Hi @XueqiC thank you for the feedback! I'm not sure what could be happening here. Seems like for some reason when the kernel is generating the info for the variables available is triggering an error. Maybe checking the option on the Variable Explorer to I tried reproducing this with Spyder 5.3.3 but seems like the code runs fine with that version: Maybe updating Spyder could help? (however since seems like you are using your base environment probably you will need to first remove Spyder and then install it specifing Also, just in case, maybe you know what could be hapenning here or have suggestions @ccordoba12 @impact27 ? |
I really don't understand what's happening in this case. It seems that Numpy is trying to print a warning, which fails because our A possible solution for this would be to avoid showing messages for the if self._thread_id != threading.get_ident(): which is kind of odd, but it'd do the job too. @impact27, other ideas about this? |
The problem is that if we don't do that, random text might appear in the console with no clue for the user as to where it comes from. |
This is strange. Looking at the traceback:
It looks like the |
If you can find a way to reproduce this error, maybe spyder-ide/spyder-kernels#420 can help. |
Thanks @impact27! I really don't know how to reproduce this but let's go with your solution and wait to see if another user reports the same problem. |
Description
What steps will reproduce the problem?
I am writing this code and occur this error. Not sure what's going on.
import networkx as nx
G = nx.DiGraph(nx.path_graph(4))
nx.pagerank(G)
Traceback
Versions
Dependencies
The text was updated successfully, but these errors were encountered: