![]() |
#1 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Nov 2019
Device: calibre
|
ebook-viewer fails to open book: find_epub_cover
I tried to open a book in my library. I got 'Failed to open the book...' with the following trace back.
I was able to successfully open the book with okular. I believe I opened this book before with an older version of calibre. Code:
Traceback (most recent call last): File "/usr/bin/calibre-parallel", line 20, in <module> sys.exit(main()) File "/usr/lib64/calibre/calibre/utils/ipc/worker.py", line 188, in main exec(sys.argv[-1]) File "<string>", line 1, in <module> File "/usr/lib64/calibre/calibre/srv/render_book.py", line 829, in viewer_main render_for_viewer(*args) File "/usr/lib64/calibre/calibre/srv/render_book.py", line 822, in render_for_viewer extract_annotations=True, virtualize_resources=False, max_workers=0 File "/usr/lib64/calibre/calibre/srv/render_book.py", line 801, in render book_metadata=mi, virtualize_resources=virtualize_resources File "/usr/lib64/calibre/calibre/srv/render_book.py", line 602, in process_exploded_book raster_cover_name, titlepage_name = create_cover_page(container, input_fmt.lower(), is_comic, book_metadata) File "/usr/lib64/calibre/calibre/srv/render_book.py", line 304, in create_cover_page titlepage_name, raster_cover_name = find_epub_cover(container) File "/usr/lib64/calibre/calibre/srv/render_book.py", line 255, in find_epub_cover first_page_name = next(container.spine_names)[0] |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,251
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You appear to be using a distro calibre package these are not supported. uninstall it and install the official binary from https://calibre-ebook.com/download_linuxand you should be fine. If not then opena bug report and attachthe problem file and I will take a look at it.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Nov 2019
Device: calibre
|
calibre version 4.5.0
|
![]() |
![]() |
![]() |
#4 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,939
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
![]() |
![]() |
![]() |
#5 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,408
Karma: 145491800
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
A lot of distro version of Calibre are broken.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Nov 2019
Device: calibre
|
|
![]() |
![]() |
![]() |
#7 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Nov 2019
Device: calibre
|
There's something wrong with the parsing of the epub content
so that the container.spine is incorrect. I downgraded to calibre-3.48 where the ebook-viewer works. There appears some method to enable logging of the epub container, but I was not able to determine how it works, or find any notes in google how to enable it. |
![]() |
![]() |
![]() |
#8 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,251
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Just opena ticket and attach the file in question. Or if you dont want to do that open it in the editor and run the check book tool or do an EPUB to EPUB conversion, all ofthose will likely fix whatever the issue in the epub is.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to Open Viewer With Current Book | AlanLloyd | Library Management | 4 | 05-22-2016 06:45 PM |
ebook viewer: open book @ last pos - without calibre | Stepe | Calibre | 2 | 03-21-2016 10:37 AM |
Not sure if right place. On win8 the ebook viewer fails | LadyKate | Devices | 4 | 01-18-2014 02:46 AM |
[old-topic]ebook-viewer: Open source, crossplatform viewer for EPUB, LIT, MOBI, etc | kovidgoyal | Calibre | 68 | 05-30-2011 08:46 PM |
Error when trying to open Ebook Viewer, won't show stories | cloudyvisions | Calibre | 1 | 03-28-2009 04:13 AM |