View Single Post
Old 09-02-2018, 05:01 AM   #1
gianni_fed
Enthusiast
gianni_fed began at the beginning.
 
Posts: 28
Karma: 10
Join Date: Oct 2015
Device: none
ValueError: Not a ZIP file

I made a backup of my library and, to my amazement, Caliber has not copied a large number of books giving me this error: ValueError: Not a ZIP file.
In my experience, the ZIP format is not absolutely reliable, over the years I lost many files because I had zipped them, what I know is that if you do not put the "recovery record" when you compress a file and a "corrupt header" occurs in the zipped file, the latter is unrecoverable.
From the analysis of the corrupt epubs, as can be seen in the enclosed images, the recovery record is absent, why?
What do you know, is there a way to recover them?
Thanks and bye,
Gianni
PS. sorry, I found also another error:
File "site-packages\calibre\ebooks\metadata\epub.py", line 165, in get_zip_reader
File "site-packages\calibre\ebooks\metadata\epub.py", line 148, in __init__
File "site-packages\calibre\ebooks\metadata\epub.py", line 98, in __init__
File "site-packages\calibre\ebooks\metadata\epub.py", line 153, in open
File "site-packages\calibre\utils\zipfile.py", line 995, in read
File "site-packages\calibre\utils\zipfile.py", line 1030, in open
BadZipfile: Bad magic number for file header
Attached Thumbnails
Click image for larger version

Name:	Winrar error.jpg
Views:	540
Size:	126.4 KB
ID:	165998   Click image for larger version

Name:	Unzip error.jpg
Views:	435
Size:	104.5 KB
ID:	165999  
Attached Files
File Type: txt Nuovo documento di testo (2).txt (2.3 KB, 316 views)

Last edited by gianni_fed; 09-02-2018 at 05:28 AM.
gianni_fed is offline   Reply With Quote