Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 12-10-2019, 08:42 AM   #1
codedr
Junior Member
codedr began at the beginning.
 
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]
codedr is offline   Reply With Quote
Old 12-10-2019, 08:44 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,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.
kovidgoyal is offline   Reply With Quote
Advert
Old 12-10-2019, 08:45 AM   #3
codedr
Junior Member
codedr began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Nov 2019
Device: calibre
calibre version 4.5.0
codedr is offline   Reply With Quote
Old 12-10-2019, 10:00 AM   #4
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
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
Quote:
Originally Posted by codedr View Post
calibre version 4.5.0
If you are thinking that , current version, and Official Version are the same thing.
Don't Some of the Distro folk 'fix' the Calibre code (or dependencies) their way .
The only Official version, comes from Kovid controlled sites
theducks is offline   Reply With Quote
Old 12-10-2019, 10:05 AM   #5
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
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.
JSWolf is offline   Reply With Quote
Advert
Old 12-10-2019, 02:33 PM   #6
codedr
Junior Member
codedr began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Nov 2019
Device: calibre
Quote:
Originally Posted by codedr View Post
calibre version 4.5.0
call next() on container.spine_names is failing:
<generator object spine_names at 0x7fe23544ddc0>
codedr is offline   Reply With Quote
Old 12-10-2019, 11:40 PM   #7
codedr
Junior Member
codedr began at the beginning.
 
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.
codedr is offline   Reply With Quote
Old 12-11-2019, 12:53 AM   #8
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,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.
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 11:09 PM.


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