pickle – Python — read_pickle ImportError: No module named indexes.base
pickle – Python — read_pickle ImportError: No module named indexes.base
This error can be caused by a version mismatch between the version of pandas used to save the dataframe and the version of pandas used to load it.
Please check the Python and Pandas version in both the machines.
Also, if versions are same, can you please share the dataframe that you used with to_pickle(), so that we can look into it.
Using pd.read_pickle
can also help backwards compatibility if you are trying to read a dataframe only. See github issue.
I unfortunately have a dictionary of dataframes, so am going to try to use a virtual environment with an older version to load, re-save only the dataframes, and then use pd.read_pickle
.
pickle – Python — read_pickle ImportError: No module named indexes.base
Related posts
- centos – Python, how to handle the ValueError: unsupported pickle protocol: 4 error?
- python 3.6 socket pickle data was truncated
- rest – Preferred (or most common) file extension for a Python pickle
- python – Dump a list in a pickle file and retrieve it back later
- docker – installing cPickle with python 3.5
- ValueError: unsupported pickle protocol: 3, python2 pickle can not load the file dumped by python 3 pickle?
- pickle – Python — read_pickle ImportError: No module named indexes.base