r/Calibre • u/Silent_Tiger718 • 29m ago
Plugin Obok DeDRM does not seem to handle all-images epubs, is there a workaround?
I've got a few books that looks to be all images (jpegs/pngs under Text), and it doesn't seem to import properly via DeDRM.
When I try to open the book, it gives me this:
calibre, version 9.15.0
ERROR: Loading book failed: Failed to open the book at C:\Users\user\Calibre Library\Kishimoto Sei Shi\NARUTO-- narutoo STARTER BOOK 1 (659)\NARUTO-- narutoo STARTER BOOK - Kishimoto Sei Shi.epub. Click "Show details" for more info.
Failed to convert book: C:\Users\user\Calibre Library\Kishimoto Sei Shi\NARUTO-- narutoo STARTER BOOK 1 (659)\NARUTO-- narutoo STARTER BOOK - Kishimoto Sei Shi.epub with error:
DeDRM v10.0.3: Trying to decrypt NARUTO-- narutoo STARTER BOOK - Kishimoto Sei Shi.epub
DeDRM v10.0.3: Verifying zip archive integrity
DeDRM v10.0.3: Post-processing took 0.0 seconds
DeDRM v10.0.3: Finished after 0.6 seconds
InputFormatPlugin: EPUB Input running
on C:\Users\user\AppData\Local\Temp\calibre-str9li5x\o629ndws.epub
Failed to run pipe worker with command: from calibre.srv.render_book import viewer_main; viewer_main()
Traceback (most recent call last):
File "runpy.py", line 203, 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 167, in main
File "<string>", line 1, in <module>
File "calibre\srv\render_book.py", line 864, in viewer_main
File "calibre\srv\render_book.py", line 851, in render_for_viewer
File "calibre\srv\render_book.py", line 822, in render
File "calibre\srv\render_book.py", line 602, in process_exploded_book
File "calibre\srv\render_book.py", line 225, in create_cover_page
File "calibre\srv\render_book.py", line 177, in find_epub_cover
File "calibre\ebooks\oeb\polish\cover.py", line 292, in find_cover_image_in_page
File "src/lxml/xpath.pxi", line 415, in lxml.etree.XPath.__call__
File "src/lxml/apihelpers.pxi", line 48, in lxml.etree._documentOrRaise
TypeError: Invalid input object: bytesI can extract the epub file and see all the images, but I'm not sure what to do with it to make the book recognise them.
I'm using Calibre 9.15, and Obok DeDRM 10.0.3. Anyone else running into this? Is there a way to bypass it?