Open johnh865 opened 3 weeks ago
Hi @johnh865 thank you for the report! I think this could be related with https://github.com/spyder-ide/spyder/issues/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:
numpy >=1.7 : None (NOK)
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.
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