File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
spyder/plugins/ipythonconsole/widgets Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,12 @@ def get_value(self, name):
76
76
"please upgrade <tt>numpy</tt> in the environment that you use to "
77
77
"run Spyder to version 1.26.1 or higher."
78
78
)
79
+ reason_mismatched_pandas = _ (
80
+ "There is a mismatch between the Pandas versions used by Spyder "
81
+ "and the kernel of your current console. To fix this problem, "
82
+ "please upgrade <tt>pandas</tt> in the console environment "
83
+ "to version 2.0 or higher."
84
+ )
79
85
reason_mismatched_python = _ (
80
86
"There is a mismatch between the Python versions used by Spyder "
81
87
"({}) and the kernel of your current console ({}).<br><br>"
@@ -150,6 +156,8 @@ def get_value(self, name):
150
156
reason = reason_missing_package_installer .format (e .name )
151
157
elif e .name .startswith ('numpy._core' ):
152
158
reason = reason_mismatched_numpy
159
+ elif e .name == 'pandas.core.indexes.numeric' :
160
+ reason = reason_mismatched_pandas
153
161
else :
154
162
reason = reason_missing_package .format (e .name )
155
163
raise ValueError (msg % reason )
You can’t perform that action at this time.
0 commit comments