Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 01-05-2020, 05:29 PM   #1
RKabel
Junior Member
RKabel began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jan 2020
Device: none
Viewer works in 3.48, fails to open book in 4.x with ConversionFailure

An epub book I created with ConTeXt displays fine in version 3 on W10/64. With version 4 (tested with 4.4, 4.5, 4.8) it fails with:\
Spoiler:
calibre, version 4.8.0
ERROR: Loading book failed: Failed to open the book at C:\Users\micro\Documents\Calibre Library\context mkiv\An Illustrated Taxonomy of Misquotat (90)\An Illustrated Taxonomy of Misq - context mkiv.epub. Click "Show details" for more info.

Traceback (most recent call last):
File "site-packages\calibre\gui2\viewer\ui.py", line 371, in _load_ebook_worker
File "site-packages\calibre\gui2\viewer\convert_book.py", line 234, in prepare_book
File "site-packages\calibre\gui2\viewer\convert_book.py", line 191, in do_convert
ConversionFailure: Failed to convert book: C:\Users\micro\Documents\Calibre Library\context mkiv\An Illustrated Taxonomy of Misquotat (90)\An Illustrated Taxonomy of Misq - context mkiv.epub with error:
InputFormatPlugin: EPUB Input running
on C:\Users\micro\Documents\Calibre Library\context mkiv\An Illustrated Taxonomy of Misquotat (90)\An Illustrated Taxonomy of Misq - context mkiv.epub
Failed to run pipe worker with command: from calibre.srv.render_book import viewer_main; viewer_main()
Python function terminated unexpectedly
Invalid input object: str (Error Code: 1)
Traceback (most recent call last):
File "site.py", line 114, in main
File "site.py", line 88, in run_entry_point
File "site-packages\calibre\utils\ipc\worker.py", line 189, in main
File "<string>", line 1, in <module>
File "site-packages\calibre\srv\render_book.py", line 848, in viewer_main
File "site-packages\calibre\srv\render_book.py", line 841, in render_for_viewer
File "site-packages\calibre\srv\render_book.py", line 820, in render
File "site-packages\calibre\srv\render_book.py", line 621, in process_exploded_book
File "site-packages\calibre\srv\render_book.py", line 305, in create_cover_page
File "site-packages\calibre\srv\render_book.py", line 258, in find_epub_cover
File "site-packages\calibre\ebooks\oeb\polish\cover.py", line 287, in find_cover_image_in_page
File "src/lxml/xpath.pxi", line 432, in lxml.etree.XPath.__call__
File "src/lxml/apihelpers.pxi", line 41, in lxml.etree._documentOrRaise
TypeError: Invalid input object: str
Debug log output:
calibre Debug log
calibre 4.8 [64bit] embedded-python: True is64bit: True
Windows-10-10.0.18362-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.18362')
Python 2.7.16+
Windows: ('10', '10.0.18362', 'SP0', u'Multiprocessor Free')
Interface language: None
calibre 4.8 [64bit] embedded-python: True is64bit: True
Windows-10-10.0.18362-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.18362')
Python 2.7.16+
Windows: ('10', '10.0.18362', 'SP0', u'Multiprocessor Free')
Interface language: None
Turning on automatic hidpi scaling
devicePixelRatio: 2.0
logicalDpi: 96.0 x 96.0
physicalDpi: 141.356521739 x 141.402061856
Using calibre Qt style: True
[0.00] Starting up...
[0.00] Showing splash screen...
[0.50] splash screen shown
[0.50] Initializing db...
[0.50] db initialized
[0.50] Constructing main UI...
[1.88] main UI initialized...
[1.88] Hiding splash screen
[12.17] splash screen hidden
[12.17] Started up in 12.17 seconds with 9 books
Worker Launch took: 0.0989999771118

Advice?

Last edited by theducks; 01-05-2020 at 06:36 PM. Reason: wrap logs in spoiler
RKabel is offline   Reply With Quote
Old 01-05-2020, 08:49 PM   #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: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Run the check book tool in the calibre boo editor and fix the errors it reports.
kovidgoyal is offline   Reply With Quote
Advert
Old 01-06-2020, 01:07 PM   #3
RKabel
Junior Member
RKabel began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jan 2020
Device: none
Thank you. That has shown a number of issues.

Is there a way to tell the checker to not complain about CSS3 constructs?
RKabel is offline   Reply With Quote
Old 01-06-2020, 03:59 PM   #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: 29,807
Karma: 54830978
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 RKabel View Post
Thank you. That has shown a number of issues.

Is there a way to tell the checker to not complain about CSS3 constructs?
(I don't do EPUB3)
If you see CSS3 complaints, then there is a possibility they are valid because your document may not be a proper EPUB3 , but you are using constructs that don't belong to the current (EPUB2 ?)
OTOH you will always get some warnings if you work on AZW3 conversions (the REM vs em thingy)
theducks is offline   Reply With Quote
Old 01-06-2020, 06:08 PM   #5
RKabel
Junior Member
RKabel began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jan 2020
Device: none
To be clear, I am complaining about error messages for css properties that are defined in EPUB3/CSS3 but not part of CSS2.1 -- such properties as hyphens, flex-flow, order, and many others. Also rem measures. Also @rules such as @counter-style.

The issue is that the messages saying that these violate CSS2.1 clutter the output of the checker function and make it difficult to see real errors. (There were some, and I am making progress fixing them.)

I understand that not all CSS3 features will be supported by some devices claiming EPUB3 support. Is there perhaps a conversion target device that allows full CSS3 specification?
RKabel is offline   Reply With Quote
Advert
Old 01-06-2020, 08:27 PM   #6
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: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by RKabel View Post
Thank you. That has shown a number of issues.

Is there a way to tell the checker to not complain about CSS3 constructs?
No sadly the underlying library does not support checking against css3, until it does...
kovidgoyal is offline   Reply With Quote
Reply

Tags
conversion issue


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ebook-viewer fails to open book: find_epub_cover codedr Library Management 7 12-11-2019 12:53 AM
macOS - open file directly in E-book Viewer 88% Calibre 3 04-30-2019 11:25 PM
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
E-book viewer: Error -could not open Sensahat Library Management 3 11-10-2014 04:09 PM


All times are GMT -4. The time now is 05:10 PM.


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