Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 02-28-2022, 10:51 PM   #1
jloh
Junior Member
jloh began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Feb 2022
Device: none
trouble opening epub

Moderator: if this is not the correct place to post this please feel free to move this post to the appropriate forum.

Hello, I finally made it here after using Calibre for a while (5+ years). But I have a general question. There are books in epub format that I can't seem to open in Calibre, but I can in fbreader.
It is an epub file and not a zip file. I can tell you that some of the fonts are missing when I open it in fbreader. Could this be due to missing fonts?

I'm using Debian Bookworm on a i7-8550U, if that helps.

Without telling you which book it is, I can give you the output of the error:

calibre, version 5.37.0
ERROR: Loading book failed: Failed to open the book at ... Click "Show details" for more info.

Failed to convert book: ... with error:
InputFormatPlugin: EPUB Input running
on ...
EPUB appears to be invalid ZIP file, trying a more forgiving ZIP parser
Failed to run pipe worker with command: from calibre.srv.render_book import viewer_main; viewer_main()
Traceback (most recent call last):
File "calibre/ebooks/conversion/plugins/epub_input.py", line 259, in convert
File "calibre/utils/zipfile.py", line 774, in __init__
File "calibre/utils/zipfile.py", line 809, in _GetContents
File "calibre/utils/zipfile.py", line 824, in _RealGetContents
calibre.utils.zipfile.BadZipfile: File is not a zip file

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "runpy.py", line 194, in _run_module_as_main
File "runpy.py", line 87, in _run_code
File "site.py", line 45, in <module>
File "site.py", line 41, in main
File "calibre/utils/ipc/worker.py", line 196, in main
File "<string>", line 1, in <module>
File "calibre/srv/render_book.py", line 823, in viewer_main
File "calibre/srv/render_book.py", line 814, in render_for_viewer
File "calibre/srv/render_book.py", line 791, in render
File "calibre/ebooks/oeb/iterator/book.py", line 62, in extract_book
File "calibre/customize/conversion.py", line 242, in __call__
File "calibre/ebooks/conversion/plugins/epub_input.py", line 266, in convert
File "calibre/utils/localunzip.py", line 252, in extractall
File "calibre/utils/localunzip.py", line 234, in _extractall
File "calibre/utils/localunzip.py", line 177, in copy_compressed_file
ValueError: Invalid ZIP file, local header is damaged

Last edited by jloh; 02-28-2022 at 10:53 PM. Reason: incorrect debian version
jloh is offline   Reply With Quote
Old 03-01-2022, 12:53 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Those errors you posted indicate the filesyoua re trying to open are damaged/not actual epub files.
kovidgoyal is offline   Reply With Quote
Advert
Old 03-01-2022, 03:48 AM   #3
jloh
Junior Member
jloh began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Feb 2022
Device: none
ok thank you. I'll just use fbreader on them then.
jloh is offline   Reply With Quote
Old 03-01-2022, 04:24 AM   #4
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,718
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@jloh - FTR: EPUBs are rebadged ZIPS with some rules about internal contents

BR
BetterRed is online now   Reply With Quote
Old 03-01-2022, 09:12 AM   #5
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,070
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Perhaps the file is actually some other ebook format with an incorrect .epub extension and fbreader is opening it based on the content rather than the file name.

That is just a guess. I don’t know anything about fbreader.
jhowell is offline   Reply With Quote
Advert
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Having trouble with Calibre not opening DragoLord19d Devices 9 03-02-2020 08:44 AM
Trouble opening file on kindle sly_skittle Calibre 1 03-28-2012 02:52 PM
trouble opening calibre rhd1884 Calibre 3 05-07-2011 04:30 PM
Trouble opening NY Times in sony ereader ebeach Sony Reader 1 09-15-2009 04:52 AM


All times are GMT -4. The time now is 07:38 PM.


MobileRead.com is a privately owned, operated and funded community.