I dumped a Jupyter Notebook session using dill.dump_session(filename)
, and at one point it told me that the disk storage was full. However, I made some space on the disk and tried again. Now, I am unable to load back the session using, dill.load_session(filename)
.
I get the following error:
~/.local/lib/python3.6/site-packages/dill/_dill.py in load_session(filename, main) 408 unpickler._main = main 409 unpickler._session = True --> 410 module = unpickler.load() 411 unpickler._session = False 412 main.__dict__.update(module.__dict__) EOFError: Ran out of input
And the file (i.e. filename) is about 30 gigs in size of data.
How can I retrieve my data from the file?
BTW, I’m running all this on Google Cloud, and it’s costing me a fortune to keep the instance up and running.
I have tried using undill
, and other unpickle
methods.
For example I tried this:
open(file, 'a').close()
try:
with open(file, "rb") as Score_file:
unpickler = pickle.Unpickler(Score_file)
scores = unpickler.load()
return scores
But got this error:
`6 with open(file, "rb") as Score_file: 7 unpickler = pickle.Unpickler(Score_file); ----> 8 scores = unpickler.load(); 9 10 return scores ModuleNotFoundError: No module named '__builtin__'`