Library showing "File is not a zip file."
Hello There,
A few revisions of calibre ago I noticed that when I open most of my books, I get the error "File is not a zip file." I've copied the error message to the end of this post. One way I'm able to tell if the file is corrupt is the size shows as "<0.1". By that measure, ~1300 of my 1500 books are corrupt.
If I go to the directory the files are in, I can double click the epub file (most started life as epubs), and it will import into Calibre without any issue.
I'd rather not go through all my books and re-import them, as I will end up with two copies, under different directories, not knowing which is the good one and which is the bad one. Lastly, I'll lose all the metadata which I've tweaked.
Does anybody have a suggestion on a way to fix this issue?
Regards,
Greg Cain
calibre, version 0.8.21
ERROR: Could not open ebook: File is not a zip file
Traceback (most recent call last):
File "site-packages/calibre/gui2/viewer/main.py", line 64, in run
File "lib/python2.7/threading.py", line 483, in run
File "site-packages/calibre/ebooks/oeb/iterator.py", line 195, in __enter__
File "site-packages/calibre/customize/conversion.py", line 204, in __call__
File "site-packages/calibre/ebooks/epub/input.py", line 138, in convert
File "site-packages/calibre/utils/zipfile.py", line 751, in __init__
File "site-packages/calibre/utils/zipfile.py", line 786, in _GetContents
File "site-packages/calibre/utils/zipfile.py", line 801, in _RealGetContents
BadZipfile: File is not a zip file
|