You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tried the other applicable steps from the Troubleshooting Guide
Completed the Problem Description, Steps to Reproduce and Version sections below
Problem Description
The Windows standalone installer for version 5.2.2 comes with python 3.7 and and pandas 1.3.5. When connecting to an interpreter in an environment with pandas 1.4 the dataframe viewer in the variable explorer does not work. Doing the same with an environment with pandas 1.3.x does not produce any error. Might be the same issue with the Mac standalone installers, or any Spyder installation with pandas < 1.4 in the spyder environment.
This error message appears (apologies for doing exactly what it says not to do...but I understand this as an unwanted appearance of this error for dataframes):
Installing Spyder from conda-forge in an environment with python 3.8 and pandas 1.4 the dataframe viewer works, both with environments having pandas 1.4 and pandas 1.3.5. Note that pandas 1.4 requires python 3.8 or higher.
I've only tested this with a very simple dataframe df = pd.DataFrame([1])
A possible simple solution without patching the variable explorer could be to package the future installers with python 3.8 and pandas 1.4. However, I suppose the issue would still be present with Spyder installed for example via pip or conda together with pandas 1.3.
What steps reproduce the problem?
Launch Windows standalone installed Spyder (5.2.2)
Connect to environment with pandas 1.4 installed
Launch a new interpreter
import pandas as pd
df = pd.DataFrame([1])
Double click df to open the dataframe in the variable explorer
What is the expected output? What do you see instead?
Expected dataframe viewer to open, instead error message appears.
Edit:
The exception from the debug logs appears to be: 2022-01-27 14:36:52,932 [DEBUG] [spyder_kernels.comms.commbase] -> Exception in cloudpickle.loads : Can't get attribute '_unpickle_block' on <module 'pandas._libs.internals' from 'C:\\Users\\user\\AppData\\Local\\Programs\\Spyder\\pkgs\\pandas\\_libs\\internals.cp37-win_amd64.pyd'>
The text was updated successfully, but these errors were encountered:
ccordoba12
changed the title
Variable explorer with pandas DataFrames does not work with pandas 1.4 and Spyder standalone (py 3.7, pandas<1.4)
Variable explorer does not work with pandas 1.4 and Spyder Windows installer
Jan 27, 2022
Hey @rhkarls, thanks for reporting. The only way to solve this problem is to update our Windows installer to use Python 3.8 instead of 3.7. We'll try to do that in our next version (5.3.0), to be released in a couple of months.
Issue Report Checklist
conda update spyder
(orpip
, if not using Anaconda)jupyter qtconsole
(if console-related)spyder --reset
Problem Description
The Windows standalone installer for version 5.2.2 comes with
python 3.7
and andpandas 1.3.5
. When connecting to an interpreter in an environment withpandas 1.4
the dataframe viewer in the variable explorer does not work. Doing the same with an environment with pandas 1.3.x does not produce any error. Might be the same issue with the Mac standalone installers, or any Spyder installation with pandas < 1.4 in the spyder environment.This error message appears (apologies for doing exactly what it says not to do...but I understand this as an unwanted appearance of this error for dataframes):
Installing Spyder from
conda-forge
in an environment withpython 3.8
andpandas 1.4
the dataframe viewer works, both with environments havingpandas 1.4
andpandas 1.3.5
. Note thatpandas 1.4
requirespython 3.8
or higher.I've only tested this with a very simple dataframe
df = pd.DataFrame([1])
A possible simple solution without patching the variable explorer could be to package the future installers with
python 3.8
andpandas 1.4
. However, I suppose the issue would still be present with Spyder installed for example viapip
orconda
together withpandas 1.3
.What steps reproduce the problem?
Launch Windows standalone installed Spyder (5.2.2)
Connect to environment with pandas 1.4 installed
Launch a new interpreter
Double click
df
to open the dataframe in the variable explorerWhat is the expected output? What do you see instead?
Expected dataframe viewer to open, instead error message appears.
Edit:
The exception from the debug logs appears to be:
2022-01-27 14:36:52,932 [DEBUG] [spyder_kernels.comms.commbase] -> Exception in cloudpickle.loads : Can't get attribute '_unpickle_block' on <module 'pandas._libs.internals' from 'C:\\Users\\user\\AppData\\Local\\Programs\\Spyder\\pkgs\\pandas\\_libs\\internals.cp37-win_amd64.pyd'>
More from the debug log:
Versions
Versions and dependencies from the standalone installed Spyder
Dependencies
The text was updated successfully, but these errors were encountered: