View Single Post
Old 01-20-2020, 03:14 PM   #6
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,844
Karma: 146918083
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Sheeba View Post
When I convert AZW files to EPUB, Calibre throws an error when I try to open them:

-------------------------------------------------------------------
Spoiler:

calibre, version 4.8.0
ERROR: Loading book failed: Failed to open the book at C:\eBdata\Test.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:\eBdata\Test.epub with error:
Traceback (most recent call last):
File "site-packages\calibre\customize\ui.py", line 428, in get_file_type_metadata
File "site-packages\calibre\customize\builtins.py", line 194, in get_metadata
File "site-packages\calibre\ebooks\metadata\epub.py", line 238, in get_quick_metadata
File "site-packages\calibre\ebooks\metadata\epub.py", line 219, in get_metadata
File "site-packages\calibre\ebooks\metadata\opf.py", line 43, in get_metadata
File "site-packages\calibre\ebooks\metadata\utils.py", line 46, in parse_opf
File "site-packages\calibre\utils\xml_parse.py", line 31, in safe_xml_fromstring
File "src/lxml/etree.pyx", line 3222, in lxml.etree.fromstring
File "src/lxml/parser.pxi", line 1877, in lxml.etree._parseMemoryDocument
File "src/lxml/parser.pxi", line 1758, in lxml.etree._parseDoc
File "src/lxml/parser.pxi", line 1068, in lxml.etree._BaseParser._parseUnicodeDoc
File "src/lxml/parser.pxi", line 601, in lxml.etree._ParserContext._handleParseResultDoc
File "src/lxml/parser.pxi", line 711, in lxml.etree._handleParseResult
File "src/lxml/parser.pxi", line 640, in lxml.etree._raiseParseError
XMLSyntaxError: Char 0x0 out of allowed range, line 21, column 50 (line 21)
InputFormatPlugin: EPUB Input running
on C:\eBdata\Test.epub
Failed to run pipe worker with command: from calibre.srv.render_book import viewer_main; viewer_main()
Python function terminated unexpectedly
Char 0x0 out of allowed range, line 21, column 50 (line 21) (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 816, in render
File "site-packages\calibre\ebooks\oeb\iterator\book.py", line 64, in extract_book
File "site-packages\calibre\customize\conversion.py", line 246, in __call__
File "site-packages\calibre\ebooks\conversion\plugins\epub_in put.py", line 285, in convert
File "site-packages\calibre\ebooks\metadata\opf2.py", line 589, in __init__
File "site-packages\calibre\ebooks\metadata\utils.py", line 46, in parse_opf
File "site-packages\calibre\utils\xml_parse.py", line 31, in safe_xml_fromstring
File "src/lxml/etree.pyx", line 3222, in lxml.etree.fromstring
File "src/lxml/parser.pxi", line 1877, in lxml.etree._parseMemoryDocument
File "src/lxml/parser.pxi", line 1758, in lxml.etree._parseDoc
File "src/lxml/parser.pxi", line 1068, in lxml.etree._BaseParser._parseUnicodeDoc
File "src/lxml/parser.pxi", line 601, in lxml.etree._ParserContext._handleParseResultDoc
File "src/lxml/parser.pxi", line 711, in lxml.etree._handleParseResult
File "src/lxml/parser.pxi", line 640, in lxml.etree._raiseParseError
File "<string>", line 21
lxml.etree.XMLSyntaxError: Char 0x0 out of allowed range, line 21, column 50

-------------------------------------------------------------------


I also can't open those EPUB files in Microsoft Edge either - *however*, I can open them just fine on Android.

So what is Calibre doing that's not standard, and how can I make these EPUB files universally openable?
Where did these eBooks come from and can you give us some of the titles? Thanks.
JSWolf is offline   Reply With Quote