corruption

How can I recover a corrupted, partially pickled file?

How can I recover a corrupted, partially pickled file? Question: My program was killed while serializing data (a dict) to disk with dill. I cannot open the partially-written file now. Is it possible to partially or fully recover the data? If so, how? Here’s what I’ve tried: >>> dill.load(open(filename, ‘rb’)) Traceback (most recent call last): …

Total answers: 2