-
-
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
Variable explorer doesn't work for Numpy arrays when Numpy is not installed #22784
Comments
Hi @johnh865 thank you for the report! I think this could be related with #20671 Are you by any chance using a custom interpreter? One of the reasons this message could appear is if you are using a custom interpreter and the env from where Spyder was launched have incompatible versions of the package you are using or also if you don't have the package installed over the env Spyder was launched. Let us know if the info above helps! |
The cause for this is very simple @johnh865: you don't have Numpy installed alongside Spyder, as can be seen in the list of dependencies you posted:
And Spyder needs Numpy to manipulate and display arrays in the Variable Explorer. We list it as an optional dependency to not make installing Spyder too heavy. However, the error message for this problem can be certainly improved and we'll try to do it in a later version. |
Closing as a duplicate of #20671 |
Reopening since improving numpy version detection to provide better messaging is possible:
|
Description
What steps will reproduce the problem?
When trying to open an array, or if I click a value of a numpy data type, an error pops up "Spyder was unable to retrieve the value of this variable from the console. The error message was:
An unknown error occurred. Check the console because its contents could have been printed there.
Note: please don't report this problem on Github, there's nothing to do about it.
"
Although the message claims there's nothing to do about it, I'm pretty sure for older versions of numpy, Spyder had no problem displaying those arrays.
Versions
Dependencies
The text was updated successfully, but these errors were encountered: