recover pickled data: pickle data was truncated

Marco Sulla Marco.Sulla.Python at gmail.com
Sun Dec 26 08:44:26 EST 2021


Use a semaphore.

On Sun, 26 Dec 2021 at 03:30, iMath <redstone-cold at 163.com> wrote:
>
> Normally, the shelve data should be read and write by only one process at a time, but unfortunately it was simultaneously read and write by two processes, thus corrupted it. Is there any way to recover all data in it ? Currently I just get "pickle data was truncated" exception after reading a portion of the data?
>
> Data and code here :https://drive.google.com/file/d/137nJFc1TvOge88EjzhnFX9bXg6vd0RYQ/view?usp=sharing
> --
> https://mail.python.org/mailman/listinfo/python-list


More information about the Python-list mailing list