[prev in list] [next in list] [prev in thread] [next in thread]
List: python-list
Subject: Re: recover pickled data: pickle data was truncated
From: iMath <redstone-cold () 163 ! com>
Date: 2021-12-31 10:55:05
Message-ID: 1549b721-f6b6-4754-a5ff-ead72eb78d3an () googlegroups ! com
[Download RAW message or body]
在 2021年12月30日星期四 UTC+8 03:13:21,<Marco Sulla> 写道:
> On Wed, 29 Dec 2021 at 18:33, iMath <redsto...@163.com> wrote:
> > But I found the size of the file of the shelve data didn't change much, so I \
> > guess the data are still in it , I just wonder any way to recover my data.
> I agree with Barry, Chris and Avi. IMHO your data is lost. Unpickling
> it by hand is a harsh work and maybe unreliable.
>
> Is there any reason you can't simply add a semaphore to avoid writing
> at the same time and re-run the code and regenerate the data?
Thanks for your replies! I didn't have a sense of adding a semaphore on writing to \
pickle data before, so corrupted the data. Since my data was colleted in the daily \
usage, so cannot re-run the code and regenerate the data. In order to avoid \
corrupting my data again and the complicity of using a semaphore, now I am using \
json text to store my data.
--
https://mail.python.org/mailman/listinfo/python-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic