Hi,
I have a problem with a book I purchased on Amazon.
I was able to import it to Calibre (kfx), so my understanding is it was DeDRMed without issues.
But now when i try to view it after import, or convert it to any other format, I'm getting:
calibre, version 9.3.1
ERROR: Loading book failed: Failed to open the book at \Calibre Library\Angelo Bobak\Connecting the Data_ Data Integrati (1280)\Connecting the Data_ Data Integ - Angelo Bobak.kfx. Click "Show details" for more info.
Failed to convert book: \Calibre Library\Angelo Bobak\Connecting the Data_ Data Integrati (1280)\Connecting the Data_ Data Integ - Angelo Bobak.kfx with error:
KFX metadata reader (from KFX Input) activated for \Calibre Library\Angelo Bobak\Connecting the Data_ Data Integrati (1280)\Connecting the Data_ Data Integ - Angelo Bobak.kfx
DeDRM v10.0.9: Trying to decrypt Connecting the Data_ Data Integ - Angelo Bobak.kfx
Unknown booktype kfx. Passing back to calibre unchanged
InputFormatPlugin: KFX Input running
on \Calibre Library\Angelo Bobak\Connecting the Data_ Data Integrati (1280)\Connecting the Data_ Data Integ - Angelo Bobak.kfx
Software versions: KFX Input 2.29.0, calibre 9.3.1, Windows-11-10.0.26100-SP0
KFX Input plugin help is available at
https://www.mobileread.com/forums/sh...d.php?t=291290
Converting \Calibre Library\Angelo Bobak\Connecting the Data_ Data Integrati (1280)\Connecting the Data_ Data Integ - Angelo Bobak.kfx
Processing container: \Calibre Library\Angelo Bobak\Connecting the Data_ Data Integrati (1280)\Connecting the Data_ Data Integ - Angelo Bobak.kfx
Features: CanonicalFormat-2, kfxgen.pidMapWithOffset-1, kfxgen.positionMaps-2, kfxgen.textBlock-1, reflow-style-3, yj_jpegxr_sd-1, yj_table-6, yj_table_viewer-1
Metadata: ASIN=B00NES7TMM, asset_id=CR!SNCK7807SH0T5511QNJ0ERDW4KBK, author="Bobak, Angelo", book_id=i9Z9z5j-TUmBZryJLT4MeQ0, cde_content_type=EBOK, content_id=B00NES7TMM, cover_image=1166x1458, creator_version=2.15.0, description=..., file_creator=YJConversionTools, is_sample=False, issue_date=2014-09-07, kfxgen=20.12.238.0, language=en, max_id=786, min_kindle_version=5.9.4, override_kindle_font=True, pages=251, publisher="Technics Publications", reading_orders=1, selection=enabled, title="Connecting the Data: Data Integration Techniques for Building an Operational Data Store (ODS)"
Converting book to EPUB 3
first: b'<span>INDE</span>'
last: b'<span>A</span>'
ERROR: section cDU7, $269 15273, story lDUB, $269 15276 style event first and last have different parents: offset 0 len 6: b'<div><span style="-kfx-style-name: sE18; font-family: Arial; font-weight: bold"><img src="image_rsrcE7J.jpg" alt="" id="page_243" style="-kfx-render: inline; -kfx-style-name: sDUG; box-sizing: content-box; height: 3.25875em; width: 3.35491em"/><span>INDE</span></span><span style="-kfx-style-name: sE19; font-family: Arial; font-weight: bold; letter-spacing: -15em">X</span><span>A</span><span>I. See Artificial Intelligence</span></div>'
Failed to run pipe worker with command: from calibre.srv.render_book import viewer_main; viewer_main()
Traceback (most recent call last):
File "calibre_plugins.kfx_input.__init__", line 113, in convert
Exception: section cDU7, $269 15273, story lDUB, $269 15276 style event first and last have different parents: offset 0 len 6: b'<div><span style="-kfx-style-name: sE18; font-family: Arial; font-weight: bold"><img src="image_rsrcE7J.jpg" alt="" id="page_243" style="-kfx-render: inline; -kfx-style-name: sDUG; box-sizing: content-box; height: 3.25875em; width: 3.35491em"/><span>INDE</span></span><span style="-kfx-style-name: sE19; font-family: Arial; font-weight: bold; letter-spacing: -15em">X</span><span>A</span><span>I. See Artificial Intelligence</span></div>'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "runpy.py", line 198, in _run_module_as_main
File "runpy.py", line 88, in _run_code
File "site.py", line 83, in <module>
File "site.py", line 78, in main
File "site.py", line 50, in run_entry_point
File "calibre\utils\ipc\worker.py", line 194, in main
File "<string>", line 1, in <module>
File "calibre\srv\render_book.py", line 828, in viewer_main
File "calibre\srv\render_book.py", line 819, in render_for_viewer
File "calibre\srv\render_book.py", line 796, in render
File "calibre\ebooks\oeb\iterator\book.py", line 64, in extract_book
File "calibre\customize\conversion.py", line 241, in __call__
File "calibre_plugins.kfx_input.__init__", line 119, in convert
calibre.ebooks.conversion.ConversionUserFeedBack: {"msg": "<b>Cannot convert ?</b><br/><br/>Exception('section cDU7, $269 15273, story lDUB, $269 15276 style event first and last have different parents: offset 0 len 6: b\\'<div><span style=\"-kfx-style-name: sE18; font-family: Arial; font-weight: bold\"><img src=\"image_rsrcE7J.jpg\" alt=\"\" id=\"page_243\" style=\"-kfx-render: inline; -kfx-style-name: sDUG; box-sizing: content-box; height: 3.25875em; width: 3.35491em\"/><span>INDE</span></span><span style=\"-kfx-style-name: sE19; font-family: Arial; font-weight: bold; letter-spacing: -15em\">X</span><span>A</span><span>I. See Artificial Intelligence</span></div>\\'')", "level": "error", "det_msg": "", "title": "KFX conversion failed"}
I am able though to force conversion by checking "Allow conversion to proceed even if errors are detected" in KFX Input - thank you for this option. So it's not end of the world for me, but it would be nice for this plugin to be able to convert this book 'cleanly'.