1

i'm kind of stuck here, i tried to look for an existing solution but couldn't find anything.

So the issue i have is this :

having a python script gathering data. At some point the disk of the server is full (my bad ...) so when the script tried to pickle.dump the last data gathered it crash and gave :

OSError: [Errno 28] No space left on device

Now i can't pickle.load the data, when i try to do so it gave me

_pickle.UnpicklingError: pickle data was truncated or EOFError: Ran out of input

so i'd like to know if there is a way to open it anyways to backup the good data in there. Or is my previous data is gone :(

btw the pickle file is ~700kB

tripleee
  • 175,061
  • 34
  • 275
  • 318
Sorii
  • 11
  • 1
  • i tried to do so, but getting IndexError, or when i try to catch also the IndexError exception the unpickler.stack give me `[, ('./pathtopickle', 'wb', 0, False, , False, 0, '')] ` – Sorii Nov 21 '18 at 11:39
  • If your disk is still full, of course you can't write anything. – tripleee Nov 21 '18 at 11:41
  • But it's not, and i also tried on my osx laptop – Sorii Nov 21 '18 at 11:47
  • The `wb` looks like you are opening a file for writing. I can't really guess how you produced that error message. – tripleee Nov 21 '18 at 11:54
  • sorry i post the wrong output, but it gives me the same result with 'rb' `[, ('./pathtopickle', 'rb', 0, False, , False, 0, '')]` – Sorii Nov 21 '18 at 13:04

0 Answers0