Massive problems reading pickled files saved under python 3.6 env. This is how we saved the files in python 3.6.
with open('sonde_adam_final.pkl', 'wb') as f:
pickle.dump(sonde_data, f,protocol=2)
1st we tried with default protocol which defaults to version 3, then we tried protocol=2 - still no good.
This is how we try to open in python 3.6 env
sonde_data = pickle.load(open('sonde_adam_final.pkl', 'rb'), fix_imports=True, encoding='bytes')
Error: ModuleNotFoundError: No module named 'pandas.core.indexes'
sonde_data = pickle.loads(open('sonde_adam_final.pkl', 'rb'), fix_imports=True, encoding='bytes')
Error: TypeError: a bytes-like object is required, not '_io.BufferedReader'
sonde_data = pd.read_pickle(open('sonde_adam_final.pkl', 'rb''))
Error: TypeError: expected str, bytes or os.PathLike object, not _io.BufferedReader
sonde_data = pd.read_pickle('/home/vinorda/storm_predict/data/sonde_adam_final.pkl')
Error: ModuleNotFoundError: No module named 'pandas.core.indexes'
with open('/home/vinorda/storm_predict/data/sonde_adam_final.pkl', 'rb') as savefile:
sonde_data = pd.read_pickle(savefile)
Error: TypeError: expected str, bytes or os.PathLike object, not _io.BufferedReader
with open('/home/vinorda/storm_predict/data/sonde_adam_final.pkl', 'rb') as savefile:
sonde_data = pickle.load(savefile)
Error: ModuleNotFoundError: No module named 'pandas.core.indexes'
appreciate any help...
[edited by admin: formatting]