I keep getting this error when trying to convert files to kepub. This issue started happening a few months ago, probably after an update of the plugin. It could also be caused by the DeDRM update as well. It happens with random ebooks, including ones that have had no issue converting before.
I am using the latest version of calibre and the latest version of the kepub output plugin.
This is an example of the error message --
Spoiler:
Convert book 1 of 1 (Witchmark)
DeDRM v7.2.1: Trying to decrypt hfrx0vau.epub
DeDRM v7.2.1: Verifying zip archive integrity
DeDRM v7.2.1: “hfrx0vau.epub” is neither an Adobe Adept nor a Barnes & Noble encrypted ePub
Integration status: True
Conversion options changed from defaults:
verbose: 2
cover: '/var/folders/3z/8lg296rs79l9zdlc17r6456w0000gn/C/calibre_5.36.0_tmp_qh027q9z/9f7ftept.jpeg'
output_profile: 'tablet'
read_metadata_from_opf: '/var/folders/3z/8lg296rs79l9zdlc17r6456w0000gn/C/calibre_5.36.0_tmp_qh027q9z/lup75o_k.opf'
Resolved conversion options
calibre version: 5.36.0
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'change_justification': 'original',
'chapter': "//*[((name()='h1' or name()='h2') and re:test(., "
"'\\s*((chapter|book|section|part)\\s+)|((prol og|p rologue|epilogue)(\\s+|$))', "
"'i')) or @class = 'chapter']",
'chapter_mark': 'pagebreak',
'comments': None,
'cover': '/var/folders/3z/8lg296rs79l9zdlc17r6456w0000gn/C/calibre_5.36.0_tmp_qh027q9z/9f7ftept.jpeg',
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'dont_split_on_page_breaks': False,
'duplicate_links_in_toc': False,
'embed_all_fonts': False,
'embed_font_family': None,
'enable_heuristics': False,
'epub_flatten': False,
'epub_inline_toc': False,
'epub_toc_at_end': False,
'epub_version': '3',
'expand_css': False,
'extra_css': None,
'extract_to': None,
'filter_css': '',
'fix_indents': True,
'flow_size': 260,
'font_size_mapping': None,
'format_scene_breaks': True,
'html_unwrap_factor': 0.4,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x11c1aaa30>,
'insert_blank_line': False,
'insert_blank_line_size': 0.5,
'insert_metadata': False,
'isbn': None,
'italicize_common_cases': True,
'keep_ligatures': False,
'kepub_clean_markup': True,
'kepub_disable_hyphenation': False,
'kepub_hyphenate': True,
'kepub_hyphenate_chars': 6,
'kepub_hyphenate_chars_after': 3,
'kepub_hyphenate_chars_before': 3,
'kepub_hyphenate_limit_lines': 2,
'language': None,
'level1_toc': None,
'level2_toc': None,
'level3_toc': None,
'line_height': 0.0,
'linearize_tables': False,
'margin_bottom': 5.0,
'margin_left': 5.0,
'margin_right': 5.0,
'margin_top': 5.0,
'markup_chapter_headings': True,
'max_toc_links': 50,
'minimum_line_height': 120.0,
'no_chapters_in_toc': False,
'no_default_epub_cover': False,
'no_inline_navbars': False,
'no_svg_cover': False,
'output_profile': <calibre.customize.profiles.TabletOutput object at 0x11c1aaeb0>,
'page_breaks_before': '/',
'prefer_metadata_cover': False,
'preserve_cover_aspect_ratio': False,
'pretty_print': True,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': '/var/folders/3z/8lg296rs79l9zdlc17r6456w0000gn/C/calibre_5.36.0_tmp_qh027q9z/lup75o_k.opf',
'remove_fake_margins': True,
'remove_first_image': False,
'remove_paragraph_spacing': False,
'remove_paragraph_spacing_indent_size': 1.5,
'renumber_headings': True,
'replace_scene_breaks': '',
'search_replace': '[]',
'series': None,
'series_index': None,
'smarten_punctuation': False,
'sr1_replace': None,
'sr1_search': None,
'sr2_replace': None,
'sr2_search': None,
'sr3_replace': None,
'sr3_search': None,
'start_reading_at': None,
'subset_embedded_fonts': False,
'tags': None,
'timestamp': None,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 6,
'toc_title': None,
'transform_css_rules': '[]',
'transform_html_rules': '[]',
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
Failed to initialize plugin: '/Users/roseberry/Library/Preferences/calibre/plugins/Read MP3 AudioBook metadata.zip'
Failed to initialize plugin: '/Users/roseberry/Library/Preferences/calibre/plugins/Wikidata.zip'
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File "calibre/customize/ui.py", line 175, in _run_filetype_plugins
File "calibre_plugins.dedrm.__init__", line 644, in run
decrypted_ebook = self.ePubDecrypt(path_to_ebook)
File "calibre_plugins.dedrm.__init__", line 420, in ePubDecrypt
raise DeDRMError("{0} v{1}: Couldn't decrypt after {2:.1f} seconds. DRM free perhaps?".format(PLUGIN_NAME, PLUGIN_VERSION,time.time()-self.starttime))
calibre_plugins.dedrm.DeDRMError: DeDRM v7.2.1: Couldn't decrypt after 0.5 seconds. DRM free perhaps?
DeDRM v7.2.1: Trying to decrypt hfrx0vau.epub
DeDRM v7.2.1: Verifying zip archive integrity
DeDRM v7.2.1: “hfrx0vau.epub” is neither an Adobe Adept nor a Barnes & Noble encrypted ePub
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File "calibre/customize/ui.py", line 175, in _run_filetype_plugins
File "calibre_plugins.dedrm.__init__", line 644, in run
decrypted_ebook = self.ePubDecrypt(path_to_ebook)
File "calibre_plugins.dedrm.__init__", line 420, in ePubDecrypt
raise DeDRMError("{0} v{1}: Couldn't decrypt after {2:.1f} seconds. DRM free perhaps?".format(PLUGIN_NAME, PLUGIN_VERSION,time.time()-self.starttime))
calibre_plugins.dedrm.DeDRMError: DeDRM v7.2.1: Couldn't decrypt after 0.5 seconds. DRM free perhaps?
InputFormatPlugin: EPUB Input running
on /var/folders/3z/8lg296rs79l9zdlc17r6456w0000gn/C/calibre_5.36.0_tmp_qh027q9z/hfrx0vau.epub
Failed to parse as XML, parsing as tag soup
Traceback (most recent call last):
File "calibre/ebooks/oeb/polish/parsing.py", line 81, in parse
ValueError: Root tag is not <html> in the XHTML namespace
Parsing all content...
Parsing chapter1.xhtml ...
Parsing chapter4.xhtml ...
Parsing title.xhtml ...
Parsing chapter11.xhtml ...
Parsing chapter14.xhtml ...
Parsing chapter15.xhtml ...
Parsing chapter22.xhtml ...
Parsing chapter7.xhtml ...
Parsing torad.xhtml ...
Parsing abouttheauthor.xhtml ...
Parsing chapter2.xhtml ...
Parsing chapter20.xhtml ...
Parsing chapter25.xhtml ...
Parsing contents.xhtml ...
Parsing newsletter.xhtml ...
Parsing chapter10.xhtml ...
Parsing chapter5.xhtml ...
Parsing mini_toc.xhtml ...
Parsing toc.xhtml ...
Parsing chapter19.xhtml ...
Parsing chapter23.xhtml ...
Parsing chapter8.xhtml ...
Parsing copyright.xhtml ...
Parsing acknowledgments.xhtml ...
Parsing chapter13.xhtml ...
Parsing chapter3.xhtml ...
Parsing copyrightnotice.xhtml ...
Parsing dedication.xhtml ...
Parsing styles/stylesheet.css ...
Parsing chapter21.xhtml ...
Parsing chapter6.xhtml ...
Parsing cover.xhtml ...
Parsing chapter24.xhtml ...
Parsing chapter12.xhtml ...
Parsing chapter16.xhtml ...
Parsing chapter17.xhtml ...
Parsing chapter18.xhtml ...
Parsing chapter9.xhtml ...
The item toc.xhtml is not a XML document. Removing it from spine.
Reading TOC from HTML...
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Merging user specified metadata...
Detecting structure...
Flattening CSS and remapping font sizes...
Source base font size is 11.60400pt
Removing fake margins...
Found 34 items of level: div_1
Found 4323 items of level: p_2
div_1 left margin stats: Counter({'0': 30})
div_1 right margin stats: Counter({'0': 30})
p_2 left margin stats: Counter({'0': 4323})
p_2 right margin stats: Counter({'0': 4323})
Cleaning up manifest...
Trimming unused files from manifest...
Trimming 'images/author-photo.jpg' from manifest
Trimming 'torad.xhtml' from manifest
Trimming 'images/backad.jpg' from manifest
Trimming 'mini_toc.xhtml' from manifest
Trimming 'images/Title-Page.jpg' from manifest
Trimming 'images/twitter_logo.png' from manifest
Trimming 'images/NewsletterSignup.jpg' from manifest
Creating KePub Output...
2022-02-14 11:03:09 [DEBUG] Running ePub conversion
Splitting markup on page breaks and flow limits, if any...
Looking for large trees in chapter1.xhtml...
No large trees found
Looking for large trees in chapter4.xhtml...
No large trees found
Looking for large trees in title.xhtml...
No large trees found
Looking for large trees in chapter11.xhtml...
No large trees found
Looking for large trees in chapter14.xhtml...
No large trees found
Looking for large trees in chapter15.xhtml...
No large trees found
Looking for large trees in chapter22.xhtml...
No large trees found
Looking for large trees in chapter7.xhtml...
No large trees found
Looking for large trees in abouttheauthor.xhtml...
No large trees found
Looking for large trees in chapter2.xhtml...
No large trees found
Looking for large trees in chapter20.xhtml...
No large trees found
Looking for large trees in chapter25.xhtml...
No large trees found
Looking for large trees in contents.xhtml...
No large trees found
Looking for large trees in newsletter.xhtml...
No large trees found
Looking for large trees in chapter10.xhtml...
No large trees found
Looking for large trees in chapter5.xhtml...
No large trees found
Looking for large trees in chapter19.xhtml...
No large trees found
Looking for large trees in chapter23.xhtml...
No large trees found
Looking for large trees in chapter8.xhtml...
No large trees found
Looking for large trees in copyright.xhtml...
No large trees found
Looking for large trees in acknowledgments.xhtml...
No large trees found
Looking for large trees in chapter13.xhtml...
No large trees found
Looking for large trees in chapter3.xhtml...
No large trees found
Looking for large trees in copyrightnotice.xhtml...
No large trees found
Looking for large trees in dedication.xhtml...
No large trees found
Looking for large trees in chapter21.xhtml...
No large trees found
Looking for large trees in chapter6.xhtml...
No large trees found
Looking for large trees in cover.xhtml...
No large trees found
Looking for large trees in chapter24.xhtml...
No large trees found
Looking for large trees in chapter12.xhtml...
No large trees found
Looking for large trees in chapter16.xhtml...
No large trees found
Looking for large trees in chapter17.xhtml...
No large trees found
Looking for large trees in chapter18.xhtml...
No large trees found
Looking for large trees in chapter9.xhtml...
No large trees found
2022-02-14 11:03:09 [WARN] This EPUB file has no Table of Contents. Creating a default TOC
2022-02-14 11:03:10 [INFO] Upgrading to EPUB 3...
2022-02-14 11:03:10 [DEBUG] Done ePub conversion
2022-02-14 11:03:10 [DEBUG] Creating KePub Container for ePub at /var/folders/3z/8lg296rs79l9zdlc17r6456w0000gn/C/calibre_5.36.0_tmp_qh027q9z/swlbf3w4.kepub
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file titlepage.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file title.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file copyrightnotice.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file dedication.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file chapter1.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file cover.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file chapter3.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file chapter2.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file chapter4.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file chapter6.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file chapter5.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file chapter7.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file chapter8.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file chapter9.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file chapter10.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file chapter11.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file chapter13.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file chapter12.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file chapter15.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file chapter14.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file chapter16.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file chapter17.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file chapter18.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file chapter19.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file chapter20.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file chapter21.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file chapter22.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file chapter23.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file chapter24.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file chapter25.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file acknowledgments.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file abouttheauthor.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file newsletter.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file contents.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file copyright.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file toc.xhtml
2022-02-14 11:03:10 [DEBUG] Forcing cleanup for file nav.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file cover.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file titlepage.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file title.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file copyrightnotice.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file chapter1.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file chapter2.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file dedication.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file chapter3.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file chapter5.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file chapter7.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file chapter8.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file chapter9.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file chapter6.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file chapter4.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file chapter10.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file chapter12.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file chapter11.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file chapter13.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file chapter14.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file chapter15.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file chapter16.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file chapter17.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file chapter18.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file chapter19.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file chapter20.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file chapter21.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file chapter22.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file chapter23.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file chapter24.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file chapter25.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file acknowledgments.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file newsletter.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file abouttheauthor.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file contents.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file copyright.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file toc.xhtml
2022-02-14 11:03:10 [DEBUG] Cleaning markup for file nav.xhtml
2022-02-14 11:03:10 [INFO] Copying file '/var/folders/3z/8lg296rs79l9zdlc17r6456w0000gn/C/calibre_5.36.0_tmp_qh027q9z/_zp5jv02_KePubOutputPluginInfo' to '/private/var/folders/3z/8lg296rs79l9zdlc17r6456w0000gn/C/calibre_5.36.0_tmp_qh027q9z/_8xv636n_epub_container' as 'plugininfo.kte'
2022-02-14 11:03:10 [DEBUG] Found meta node with name=cover
2022-02-14 11:03:10 [INFO] Found cover image ID 'cover'
2022-02-14 11:03:10 [DEBUG] Found an item node with cover ID
2022-02-14 11:03:10 [WARN] Item node is already set as cover-image
2022-02-14 11:03:10 [INFO] Copying file '/var/folders/3z/8lg296rs79l9zdlc17r6456w0000gn/C/calibre_5.36.0_tmp_qh027q9z/kepub_9c23r10q_hyphenate' to '/private/var/folders/3z/8lg296rs79l9zdlc17r6456w0000gn/C/calibre_5.36.0_tmp_qh027q9z/_8xv636n_epub_container' as 'kte-css/hyphenation.css'
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file titlepage.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file cover.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file title.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file copyrightnotice.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file dedication.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter2.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter4.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter3.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter6.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter7.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter5.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter10.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter8.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter13.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter9.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter1.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter15.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter17.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter18.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter20.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter12.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter22.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter16.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter24.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter25.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file acknowledgments.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter21.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter23.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file contents.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter19.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter14.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file abouttheauthor.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter11.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file toc.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file newsletter.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file nav.xhtml
2022-02-14 11:03:10 [DEBUG] Adding reference to kte-css/hyphenation.css to file copyright.xhtml
2022-02-14 11:03:10 [ERROR] Failed converting!
Traceback (most recent call last):
File "calibre_plugins.kepubout.conversion.kepub_out put" , line 188, in convert
common.modify_epub(
File "calibre_plugins.kepubout.common", line 220, in modify_epub
container.add_content_file_reference("kte-css/{0}".format(css_path))
File "calibre_plugins.kepubout.container", line 222, in add_content_file_reference
self.__run_async_over_content(self.__add_content_f ile_reference_impl, (name,))
File "calibre_plugins.kepubout.container", line 375, in __run_async_over_content
self.__run_async(func, names)
File "calibre_plugins.kepubout.container", line 368, in __run_async
future.result(timeout=10)
File "concurrent/futures/_base.py", line 432, in result
File "concurrent/futures/_base.py", line 388, in __get_result
File "concurrent/futures/thread.py", line 57, in run
File "calibre_plugins.kepubout.container", line 234, in __add_content_file_reference_impl
head = head[0]
IndexError: list index out of range
Traceback (most recent call last):
File "runpy.py", line 194, in _run_module_as_main
File "runpy.py", line 87, in _run_code
File "site.py", line 39, in <module>
File "site.py", line 35, in main
File "calibre/utils/ipc/worker.py", line 215, in main
File "calibre/gui2/convert/gui_conversion.py", line 38, in gui_convert_override
File "calibre/gui2/convert/gui_conversion.py", line 25, in gui_convert
File "calibre/ebooks/conversion/plumber.py", line 1281, in run
File "calibre_plugins.kepubout.conversion.kepub_out put" , line 188, in convert
File "calibre_plugins.kepubout.common", line 220, in modify_epub
File "calibre_plugins.kepubout.container", line 222, in add_content_file_reference
File "calibre_plugins.kepubout.container", line 375, in __run_async_over_content
File "calibre_plugins.kepubout.container", line 368, in __run_async
File "concurrent/futures/_base.py", line 432, in result
File "concurrent/futures/_base.py", line 388, in __get_result
File "concurrent/futures/thread.py", line 57, in run
File "calibre_plugins.kepubout.container", line 234, in __add_content_file_reference_impl
IndexError: list index out of range
and here is another example --
Spoiler:
Convert book 1045 of 1089 (All Spell Breaks Loose)
DeDRM v7.2.1: Trying to decrypt 6c85xs1t.epub
DeDRM v7.2.1: Verifying zip archive integrity
DeDRM v7.2.1: “6c85xs1t.epub” is neither an Adobe Adept nor a Barnes & Noble encrypted ePub
Integration status: True
Conversion options changed from defaults:
read_metadata_from_opf: '/var/folders/3z/8lg296rs79l9zdlc17r6456w0000gn/C/calibre_5.36.0_tmp_qh027q9z/99qitzok.opf'
cover: '/var/folders/3z/8lg296rs79l9zdlc17r6456w0000gn/C/calibre_5.36.0_tmp_qh027q9z/1hihyakz.jpeg'
output_profile: 'tablet'
verbose: 2
Resolved conversion options
calibre version: 5.36.0
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'change_justification': 'original',
'chapter': "//*[((name()='h1' or name()='h2') and re:test(., "
"'\\s*((chapter|book|section|part)\\s+)|((prolog|p rologue|epilogue)(\\s+|$))', "
"'i')) or @class = 'chapter']",
'chapter_mark': 'pagebreak',
'comments': None,
'cover': '/var/folders/3z/8lg296rs79l9zdlc17r6456w0000gn/C/calibre_5.36.0_tmp_qh027q9z/1hihyakz.jpeg',
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'dont_split_on_page_breaks': False,
'duplicate_links_in_toc': False,
'embed_all_fonts': False,
'embed_font_family': None,
'enable_heuristics': False,
'epub_flatten': False,
'epub_inline_toc': False,
'epub_toc_at_end': False,
'epub_version': '3',
'expand_css': False,
'extra_css': None,
'extract_to': None,
'filter_css': '',
'fix_indents': True,
'flow_size': 260,
'font_size_mapping': None,
'format_scene_breaks': True,
'html_unwrap_factor': 0.4,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x11af43370>,
'insert_blank_line': False,
'insert_blank_line_size': 0.5,
'insert_metadata': False,
'isbn': None,
'italicize_common_cases': True,
'keep_ligatures': False,
'kepub_clean_markup': True,
'kepub_disable_hyphenation': False,
'kepub_hyphenate': True,
'kepub_hyphenate_chars': 6,
'kepub_hyphenate_chars_after': 3,
'kepub_hyphenate_chars_before': 3,
'kepub_hyphenate_limit_lines': 2,
'language': None,
'level1_toc': None,
'level2_toc': None,
'level3_toc': None,
'line_height': 0.0,
'linearize_tables': False,
'margin_bottom': 5.0,
'margin_left': 5.0,
'margin_right': 5.0,
'margin_top': 5.0,
'markup_chapter_headings': True,
'max_toc_links': 50,
'minimum_line_height': 120.0,
'no_chapters_in_toc': False,
'no_default_epub_cover': False,
'no_inline_navbars': False,
'no_svg_cover': False,
'output_profile': <calibre.customize.profiles.TabletOutput object at 0x11af43940>,
'page_breaks_before': '/',
'prefer_metadata_cover': False,
'preserve_cover_aspect_ratio': False,
'pretty_print': True,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': '/var/folders/3z/8lg296rs79l9zdlc17r6456w0000gn/C/calibre_5.36.0_tmp_qh027q9z/99qitzok.opf',
'remove_fake_margins': True,
'remove_first_image': False,
'remove_paragraph_spacing': False,
'remove_paragraph_spacing_indent_size': 1.5,
'renumber_headings': True,
'replace_scene_breaks': '',
'search_replace': '[]',
'series': None,
'series_index': None,
'smarten_punctuation': False,
'sr1_replace': None,
'sr1_search': None,
'sr2_replace': None,
'sr2_search': None,
'sr3_replace': None,
'sr3_search': None,
'start_reading_at': None,
'subset_embedded_fonts': False,
'tags': None,
'timestamp': None,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 6,
'toc_title': None,
'transform_css_rules': '[]',
'transform_html_rules': '[]',
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
Failed to initialize plugin: '/Users/roseberry/Library/Preferences/calibre/plugins/Read MP3 AudioBook metadata.zip'
Failed to initialize plugin: '/Users/roseberry/Library/Preferences/calibre/plugins/Wikidata.zip'
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File "calibre/customize/ui.py", line 175, in _run_filetype_plugins
File "calibre_plugins.dedrm.__init__", line 644, in run
decrypted_ebook = self.ePubDecrypt(path_to_ebook)
File "calibre_plugins.dedrm.__init__", line 420, in ePubDecrypt
raise DeDRMError("{0} v{1}: Couldn't decrypt after {2:.1f} seconds. DRM free perhaps?".format(PLUGIN_NAME, PLUGIN_VERSION,time.time()-self.starttime))
calibre_plugins.dedrm.DeDRMError: DeDRM v7.2.1: Couldn't decrypt after 0.1 seconds. DRM free perhaps?
DeDRM v7.2.1: Trying to decrypt 6c85xs1t.epub
DeDRM v7.2.1: Verifying zip archive integrity
DeDRM v7.2.1: “6c85xs1t.epub” is neither an Adobe Adept nor a Barnes & Noble encrypted ePub
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File "calibre/customize/ui.py", line 175, in _run_filetype_plugins
File "calibre_plugins.dedrm.__init__", line 644, in run
decrypted_ebook = self.ePubDecrypt(path_to_ebook)
File "calibre_plugins.dedrm.__init__", line 420, in ePubDecrypt
raise DeDRMError("{0} v{1}: Couldn't decrypt after {2:.1f} seconds. DRM free perhaps?".format(PLUGIN_NAME, PLUGIN_VERSION,time.time()-self.starttime))
calibre_plugins.dedrm.DeDRMError: DeDRM v7.2.1: Couldn't decrypt after 0.0 seconds. DRM free perhaps?
InputFormatPlugin: EPUB Input running
on /var/folders/3z/8lg296rs79l9zdlc17r6456w0000gn/C/calibre_5.36.0_tmp_qh027q9z/6c85xs1t.epub
Found HTML cover titlepage.xhtml
Parsing all content...
Parsing text/part0021.html ...
Parsing titlepage.xhtml ...
Parsing text/part0006.html ...
Parsing stylesheet.css ...
Parsing text/part0002.html ...
Parsing text/part0008.html ...
Parsing text/part0012.html ...
Parsing text/part0016.html ...
Parsing text/part0020.html ...
Parsing text/part0024.html ...
Parsing text/part0005.html ...
Parsing text/part0007.html ...
Parsing text/part0011.html ...
Parsing page_styles.css ...
Parsing text/part0001.html ...
Parsing text/part0015.html ...
Parsing text/part0019.html ...
Parsing text/part0023.html ...
Parsing text/part0000_split_001.html ...
Parsing text/part0004.html ...
Parsing text/part0010.html ...
Parsing text/part0014.html ...
Parsing text/part0018.html ...
Parsing text/part0022.html ...
Parsing text/part0000_split_000.html ...
Parsing text/part0003.html ...
Parsing text/part0009.html ...
Parsing text/part0013.html ...
Parsing text/part0017.html ...
Reading TOC from NCX...
Merging user specified metadata...
Detecting structure...
Detected chapter: Chapter 1
Detected chapter: Chapter 2
Detected chapter: Chapter 3
Detected chapter: Chapter 4
Detected chapter: Chapter 5
Detected chapter: Chapter 6
Detected chapter: Chapter 7
Detected chapter: Chapter 8
Detected chapter: Chapter 9
Detected chapter: Chapter 10
Detected chapter: Chapter 11
Detected chapter: Chapter 12
Detected chapter: Chapter 13
Detected chapter: Chapter 14
Detected chapter: Chapter 15
Detected chapter: Chapter 16
Detected chapter: Chapter 17
Detected chapter: Chapter 18
Detected chapter: Chapter 19
Detected chapter: Chapter 20
Flattening CSS and remapping font sizes...
Source base font size is 12.00000pt
Removing fake margins...
Found 26 items of level: div_1
Found 50 items of level: div_2
Found 27 items of level: div_3
Found 2695 items of level: p_3
Found 42 items of level: div_4
Found 21 items of level: p_5
Found 42 items of level: div_5
Ignoring level p_5
div_1 left margin stats: Counter({'': 23})
div_1 right margin stats: Counter({'': 23})
div_2 left margin stats: Counter({'': 23})
div_2 right margin stats: Counter({'': 23})
div_3 left margin stats: Counter({'': 27})
div_3 right margin stats: Counter({'': 27})
p_3 left margin stats: Counter({'0': 2695})
p_3 right margin stats: Counter({'0': 2695})
div_4 left margin stats: Counter({'': 42})
div_4 right margin stats: Counter({'': 42})
div_5 left margin stats: Counter({'': 42})
div_5 right margin stats: Counter({'': 42})
Cleaning up manifest...
Trimming unused files from manifest...
Trimming 'titlepage.xhtml' from manifest
Creating KePub Output...
2022-02-14 10:40:14 [DEBUG] Running ePub conversion
Splitting markup on page breaks and flow limits, if any...
Looking for large trees in text/part0021.html...
No large trees found
Looking for large trees in text/part0006.html...
No large trees found
Looking for large trees in text/part0002.html...
No large trees found
Looking for large trees in text/part0008.html...
No large trees found
Looking for large trees in text/part0012.html...
No large trees found
Looking for large trees in text/part0016.html...
No large trees found
Looking for large trees in text/part0020.html...
No large trees found
Looking for large trees in text/part0024.html...
No large trees found
Looking for large trees in text/part0005.html...
No large trees found
Looking for large trees in text/part0007.html...
No large trees found
Looking for large trees in text/part0011.html...
No large trees found
Looking for large trees in text/part0001.html...
No large trees found
Looking for large trees in text/part0015.html...
No large trees found
Looking for large trees in text/part0019.html...
No large trees found
Looking for large trees in text/part0023.html...
No large trees found
Looking for large trees in text/part0000_split_001.html...
No large trees found
Looking for large trees in text/part0004.html...
No large trees found
Looking for large trees in text/part0010.html...
No large trees found
Looking for large trees in text/part0014.html...
No large trees found
Looking for large trees in text/part0018.html...
No large trees found
Looking for large trees in text/part0022.html...
No large trees found
Looking for large trees in text/part0000_split_000.html...
No large trees found
Looking for large trees in text/part0003.html...
No large trees found
Looking for large trees in text/part0009.html...
No large trees found
Looking for large trees in text/part0013.html...
No large trees found
Looking for large trees in text/part0017.html...
No large trees found
2022-02-14 10:40:14 [WARN] The cover image has an id != "cover". Renaming to work around bug in Nook Color
2022-02-14 10:40:14 [INFO] Upgrading to EPUB 3...
2022-02-14 10:40:14 [DEBUG] Encrypting font: 2022-02-14 10:40:14 [DEBUG] fonts/00001.ttf
2022-02-14 10:40:14 [DEBUG] Done ePub conversion
Traceback (most recent call last):
File "runpy.py", line 194, in _run_module_as_main
File "runpy.py", line 87, in _run_code
File "site.py", line 39, in <module>
File "site.py", line 35, in main
File "calibre/utils/ipc/worker.py", line 215, in main
File "calibre/gui2/convert/gui_conversion.py", line 38, in gui_convert_override
File "calibre/gui2/convert/gui_conversion.py", line 25, in gui_convert
File "calibre/ebooks/conversion/plumber.py", line 1281, in run
File "calibre_plugins.kepubout.conversion.kepub_output" , line 150, in convert
File "calibre_plugins.kepubout.container", line 115, in __init__
File "calibre/ebooks/oeb/polish/container.py", line 1229, in __init__
File "calibre/ebooks/oeb/polish/container.py", line 1346, in process_encryption
calibre.ebooks.oeb.polish.container.ObfuscationKey Missing: Failed to find obfuscation key
Where was the book obtained from? How did you download it to your computer? ADE 2? ADE 4? calibre's DeACSM plugin?
I suspect the key lines are:
Code:
calibre_plugins.dedrm.DeDRMError: DeDRM v7.2.1: Couldn't decrypt after 0.5 seconds. DRM free perhaps?
DeDRM v7.2.1: Trying to decrypt hfrx0vau.epub
DeDRM v7.2.1: Verifying zip archive integrity
DeDRM v7.2.1: “hfrx0vau.epub” is neither an Adobe Adept nor a Barnes & Noble encrypted ePub
If the epub is indeed DRM free, I would suggest opening it in calibre's editor and running, preferably, epubcheck (you will need to install the plugin) or the builtin error checker.
If the epub is not DRM free, it may encrypted with Adobe's hardened DRM.
Just to check, you might want to install NoDRM's updated version of the DeDRM plugin. See the New version of DRM removal tools ("DeDRM") thread in the News forum. The download link should be in the first message in the thread.
Where was the book obtained from? How did you download it to your computer? ADE 2? ADE 4? calibre's DeACSM plugin?
I suspect the key lines are:
Code:
calibre_plugins.dedrm.DeDRMError: DeDRM v7.2.1: Couldn't decrypt after 0.5 seconds. DRM free perhaps?
DeDRM v7.2.1: Trying to decrypt hfrx0vau.epub
DeDRM v7.2.1: Verifying zip archive integrity
DeDRM v7.2.1: “hfrx0vau.epub” is neither an Adobe Adept nor a Barnes & Noble encrypted ePub
If the epub is indeed DRM free, I would suggest opening it in calibre's editor and running, preferably, epubcheck (you will need to install the plugin) or the builtin error checker.
If the epub is not DRM free, it may encrypted with Adobe's hardened DRM.
Just to check, you might want to install NoDRM's updated version of the DeDRM plugin. See the New version of DRM removal tools ("DeDRM") thread in the News forum. The download link should be in the first message in the thread.
Hmm.. weird. Some of them are Kobo books, others are Amazon, none of them had DRM, or if they did, were already removed. The weird thing is that this is happening to books I never had an issue with before. One book I tested earlier, it had been added to my Kobo last year after converting to kepub. Then today I went to put it on another Kobo, and it failed to convert to kepub and wouldn't convert to anything else. The error said it was a read only file. I have over 5000 files in my Calibre, and it seems like this issue is spreading through them.
Also, I installed that version of DeDRM and the issue is still happening.
Hmm.. weird. Some of them are Kobo books, others are Amazon, none of them had DRM, or if they did, were already removed. The weird thing is that this is happening to books I never had an issue with before. One book I tested earlier, it had been added to my Kobo last year after converting to kepub. Then today I went to put it on another Kobo, and it failed to convert to kepub and wouldn't convert to anything else. The error said it was a read only file. I have over 5000 files in my Calibre, and it seems like this issue is spreading through them.
Where are the books stored? On a local hard drive/USB driver or on a network/cloud storage? Do you see any issues when you run Library maintenance => Check library?
Quote:
Originally Posted by narcessaxx
Also, I installed that version of DeDRM and the issue is still happening.
DRM removal is only done during the import process. You would have to delete the books from calibre and re-import them if DRM was the issue.
Where are the books stored? On a local hard drive/USB driver or on a network/cloud storage? Do you see any issues when you run Library maintenance => Check library?
DRM removal is only done during the import process. You would have to delete the books from calibre and re-import them if DRM was the issue.
The books were stored in iCloud but always downloaded. I have just moved them to the local drive, though, just in case that was the issue.
I tried deleting one of the books and re-importing it. I got another error message after trying to convert to kepub.
Parsing all content...
Parsing chapter19.xhtml ...
Parsing chapter20.xhtml ...
Parsing chapter22.xhtml ...
Parsing acknowledgments.xhtml ...
Parsing chapter15.xhtml ...
Parsing chapter18.xhtml ...
Parsing chapter25.xhtml ...
Parsing chapter7.xhtml ...
Parsing dedication.xhtml ...
Parsing styles/stylesheet.css ...
Parsing chapter2.xhtml ...
Parsing copyright.xhtml ...
Parsing chapter12.xhtml ...
Parsing chapter14.xhtml ...
Parsing chapter21.xhtml ...
Parsing contents.xhtml ...
Parsing newsletter.xhtml ...
Parsing torad.xhtml ...
Parsing chapter1.xhtml ...
Parsing chapter13.xhtml ...
Parsing chapter9.xhtml ...
Parsing cover.xhtml ...
Parsing mini_toc.xhtml ...
Parsing title.xhtml ...
Parsing toc.xhtml ...
Parsing abouttheauthor.xhtml ...
Parsing chapter23.xhtml ...
Parsing chapter4.xhtml ...
Parsing chapter5.xhtml ...
Parsing chapter6.xhtml ...
Parsing chapter10.xhtml ...
Parsing chapter16.xhtml ...
Parsing chapter24.xhtml ...
Parsing chapter3.xhtml ...
Parsing chapter11.xhtml ...
Parsing chapter17.xhtml ...
Parsing chapter8.xhtml ...
Parsing copyrightnotice.xhtml ...
The item toc.xhtml is not a XML document. Removing it from spine.
Reading TOC from HTML...
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Merging user specified metadata...
Detecting structure...
Flattening CSS and remapping font sizes...
Source base font size is 11.60400pt
Removing fake margins...
Found 34 items of level: div_1
Found 4323 items of level: p_2
div_1 left margin stats: Counter({'0': 30})
div_1 right margin stats: Counter({'0': 30})
p_2 left margin stats: Counter({'0': 4323})
p_2 right margin stats: Counter({'0': 4323})
Cleaning up manifest...
Trimming unused files from manifest...
Trimming 'images/Title-Page.jpg' from manifest
Trimming 'torad.xhtml' from manifest
Trimming 'mini_toc.xhtml' from manifest
Trimming 'images/twitter_logo.png' from manifest
Trimming 'images/backad.jpg' from manifest
Trimming 'images/NewsletterSignup.jpg' from manifest
Trimming 'images/author-photo.jpg' from manifest
Creating KePub Output...
2022-02-16 13:11:29 [DEBUG] Running ePub conversion
Splitting markup on page breaks and flow limits, if any...
Looking for large trees in chapter19.xhtml...
No large trees found
Looking for large trees in chapter20.xhtml...
No large trees found
Looking for large trees in chapter22.xhtml...
No large trees found
Looking for large trees in acknowledgments.xhtml...
No large trees found
Looking for large trees in chapter15.xhtml...
No large trees found
Looking for large trees in chapter18.xhtml...
No large trees found
Looking for large trees in chapter25.xhtml...
No large trees found
Looking for large trees in chapter7.xhtml...
No large trees found
Looking for large trees in dedication.xhtml...
No large trees found
Looking for large trees in chapter2.xhtml...
No large trees found
Looking for large trees in copyright.xhtml...
No large trees found
Looking for large trees in chapter12.xhtml...
No large trees found
Looking for large trees in chapter14.xhtml...
No large trees found
Looking for large trees in chapter21.xhtml...
No large trees found
Looking for large trees in contents.xhtml...
No large trees found
Looking for large trees in newsletter.xhtml...
No large trees found
Looking for large trees in chapter1.xhtml...
No large trees found
Looking for large trees in chapter13.xhtml...
No large trees found
Looking for large trees in chapter9.xhtml...
No large trees found
Looking for large trees in cover.xhtml...
No large trees found
Looking for large trees in title.xhtml...
No large trees found
Looking for large trees in abouttheauthor.xhtml...
No large trees found
Looking for large trees in chapter23.xhtml...
No large trees found
Looking for large trees in chapter4.xhtml...
No large trees found
Looking for large trees in chapter5.xhtml...
No large trees found
Looking for large trees in chapter6.xhtml...
No large trees found
Looking for large trees in chapter10.xhtml...
No large trees found
Looking for large trees in chapter16.xhtml...
No large trees found
Looking for large trees in chapter24.xhtml...
No large trees found
Looking for large trees in chapter3.xhtml...
No large trees found
Looking for large trees in chapter11.xhtml...
No large trees found
Looking for large trees in chapter17.xhtml...
No large trees found
Looking for large trees in chapter8.xhtml...
No large trees found
Looking for large trees in copyrightnotice.xhtml...
No large trees found
2022-02-16 13:11:29 [WARN] This EPUB file has no Table of Contents. Creating a default TOC
2022-02-16 13:11:29 [INFO] Upgrading to EPUB 3...
2022-02-16 13:11:29 [DEBUG] Done ePub conversion
2022-02-16 13:11:29 [DEBUG] Creating KePub Container for ePub at /var/folders/3z/8lg296rs79l9zdlc17r6456w0000gn/C/calibre_5.36.0_tmp_7lirq5sr/ftohtvkw.kepub
2022-02-16 13:11:29 [DEBUG] Forcing cleanup for file titlepage.xhtml
2022-02-16 13:11:29 [DEBUG] Forcing cleanup for file cover.xhtml
2022-02-16 13:11:29 [DEBUG] Forcing cleanup for file title.xhtml
2022-02-16 13:11:29 [DEBUG] Forcing cleanup for file copyrightnotice.xhtml
2022-02-16 13:11:29 [DEBUG] Forcing cleanup for file dedication.xhtml
2022-02-16 13:11:29 [DEBUG] Forcing cleanup for file chapter1.xhtml
2022-02-16 13:11:29 [DEBUG] Forcing cleanup for file chapter2.xhtml
2022-02-16 13:11:29 [DEBUG] Forcing cleanup for file chapter3.xhtml
2022-02-16 13:11:29 [DEBUG] Forcing cleanup for file chapter4.xhtml
2022-02-16 13:11:29 [DEBUG] Forcing cleanup for file chapter5.xhtml
2022-02-16 13:11:29 [DEBUG] Forcing cleanup for file chapter6.xhtml
2022-02-16 13:11:29 [DEBUG] Forcing cleanup for file chapter7.xhtml
2022-02-16 13:11:29 [DEBUG] Forcing cleanup for file chapter8.xhtml
2022-02-16 13:11:29 [DEBUG] Forcing cleanup for file chapter9.xhtml
2022-02-16 13:11:29 [DEBUG] Forcing cleanup for file chapter10.xhtml
2022-02-16 13:11:29 [DEBUG] Forcing cleanup for file chapter11.xhtml
2022-02-16 13:11:29 [DEBUG] Forcing cleanup for file chapter12.xhtml
2022-02-16 13:11:29 [DEBUG] Forcing cleanup for file chapter13.xhtml
2022-02-16 13:11:29 [DEBUG] Forcing cleanup for file chapter14.xhtml
2022-02-16 13:11:29 [DEBUG] Forcing cleanup for file chapter15.xhtml
2022-02-16 13:11:29 [DEBUG] Forcing cleanup for file chapter16.xhtml
2022-02-16 13:11:29 [DEBUG] Forcing cleanup for file chapter17.xhtml
2022-02-16 13:11:29 [DEBUG] Forcing cleanup for file chapter18.xhtml
2022-02-16 13:11:29 [DEBUG] Forcing cleanup for file chapter19.xhtml
2022-02-16 13:11:29 [DEBUG] Forcing cleanup for file chapter20.xhtml
2022-02-16 13:11:29 [DEBUG] Forcing cleanup for file chapter21.xhtml
2022-02-16 13:11:29 [DEBUG] Forcing cleanup for file chapter22.xhtml
2022-02-16 13:11:29 [DEBUG] Forcing cleanup for file chapter23.xhtml
2022-02-16 13:11:29 [DEBUG] Forcing cleanup for file chapter24.xhtml
2022-02-16 13:11:29 [DEBUG] Forcing cleanup for file chapter25.xhtml
2022-02-16 13:11:29 [DEBUG] Forcing cleanup for file acknowledgments.xhtml
2022-02-16 13:11:29 [DEBUG] Forcing cleanup for file abouttheauthor.xhtml
2022-02-16 13:11:29 [DEBUG] Forcing cleanup for file newsletter.xhtml
2022-02-16 13:11:29 [DEBUG] Forcing cleanup for file contents.xhtml
2022-02-16 13:11:29 [DEBUG] Forcing cleanup for file copyright.xhtml
2022-02-16 13:11:29 [DEBUG] Forcing cleanup for file toc.xhtml
2022-02-16 13:11:29 [DEBUG] Forcing cleanup for file nav.xhtml
2022-02-16 13:11:29 [DEBUG] Cleaning markup for file titlepage.xhtml
2022-02-16 13:11:29 [DEBUG] Cleaning markup for file cover.xhtml
2022-02-16 13:11:29 [DEBUG] Cleaning markup for file title.xhtml
2022-02-16 13:11:29 [DEBUG] Cleaning markup for file copyrightnotice.xhtml
2022-02-16 13:11:29 [DEBUG] Cleaning markup for file dedication.xhtml
2022-02-16 13:11:29 [DEBUG] Cleaning markup for file chapter1.xhtml
2022-02-16 13:11:29 [DEBUG] Cleaning markup for file chapter2.xhtml
2022-02-16 13:11:29 [DEBUG] Cleaning markup for file chapter3.xhtml
2022-02-16 13:11:29 [DEBUG] Cleaning markup for file chapter4.xhtml
2022-02-16 13:11:29 [DEBUG] Cleaning markup for file chapter6.xhtml
2022-02-16 13:11:29 [DEBUG] Cleaning markup for file chapter5.xhtml
2022-02-16 13:11:29 [DEBUG] Cleaning markup for file chapter8.xhtml
2022-02-16 13:11:29 [DEBUG] Cleaning markup for file chapter10.xhtml
2022-02-16 13:11:29 [DEBUG] Cleaning markup for file chapter7.xhtml
2022-02-16 13:11:29 [DEBUG] Cleaning markup for file chapter11.xhtml
2022-02-16 13:11:29 [DEBUG] Cleaning markup for file chapter12.xhtml
2022-02-16 13:11:29 [DEBUG] Cleaning markup for file chapter13.xhtml
2022-02-16 13:11:29 [DEBUG] Cleaning markup for file chapter9.xhtml
2022-02-16 13:11:29 [DEBUG] Cleaning markup for file chapter14.xhtml
2022-02-16 13:11:30 [DEBUG] Cleaning markup for file chapter15.xhtml
2022-02-16 13:11:30 [DEBUG] Cleaning markup for file chapter16.xhtml
2022-02-16 13:11:30 [DEBUG] Cleaning markup for file chapter18.xhtml
2022-02-16 13:11:30 [DEBUG] Cleaning markup for file chapter17.xhtml
2022-02-16 13:11:30 [DEBUG] Cleaning markup for file chapter19.xhtml
2022-02-16 13:11:30 [DEBUG] Cleaning markup for file chapter20.xhtml
2022-02-16 13:11:30 [DEBUG] Cleaning markup for file chapter21.xhtml
2022-02-16 13:11:30 [DEBUG] Cleaning markup for file chapter22.xhtml
2022-02-16 13:11:30 [DEBUG] Cleaning markup for file chapter23.xhtml
2022-02-16 13:11:30 [DEBUG] Cleaning markup for file chapter24.xhtml
2022-02-16 13:11:30 [DEBUG] Cleaning markup for file chapter25.xhtml
2022-02-16 13:11:30 [DEBUG] Cleaning markup for file acknowledgments.xhtml
2022-02-16 13:11:30 [DEBUG] Cleaning markup for file abouttheauthor.xhtml
2022-02-16 13:11:30 [DEBUG] Cleaning markup for file newsletter.xhtml
2022-02-16 13:11:30 [DEBUG] Cleaning markup for file contents.xhtml
2022-02-16 13:11:30 [DEBUG] Cleaning markup for file copyright.xhtml
2022-02-16 13:11:30 [DEBUG] Cleaning markup for file toc.xhtml
2022-02-16 13:11:30 [DEBUG] Cleaning markup for file nav.xhtml
2022-02-16 13:11:30 [INFO] Copying file '/var/folders/3z/8lg296rs79l9zdlc17r6456w0000gn/C/calibre_5.36.0_tmp_7lirq5sr/r3ycbvpp_KePubOutputPluginInfo' to '/private/var/folders/3z/8lg296rs79l9zdlc17r6456w0000gn/C/calibre_5.36.0_tmp_7lirq5sr/5veaqfbg_epub_container' as 'plugininfo.kte'
2022-02-16 13:11:30 [DEBUG] Found meta node with name=cover
2022-02-16 13:11:30 [INFO] Found cover image ID 'cover'
2022-02-16 13:11:30 [DEBUG] Found an item node with cover ID
2022-02-16 13:11:30 [WARN] Item node is already set as cover-image
2022-02-16 13:11:30 [INFO] Copying file '/var/folders/3z/8lg296rs79l9zdlc17r6456w0000gn/C/calibre_5.36.0_tmp_7lirq5sr/kepub_ye69r9ke_hyphenate' to '/private/var/folders/3z/8lg296rs79l9zdlc17r6456w0000gn/C/calibre_5.36.0_tmp_7lirq5sr/5veaqfbg_epub_container' as 'kte-css/hyphenation.css'
2022-02-16 13:11:30 [DEBUG] Adding reference to kte-css/hyphenation.css to file titlepage.xhtml
2022-02-16 13:11:30 [DEBUG] Adding reference to kte-css/hyphenation.css to file title.xhtml
2022-02-16 13:11:30 [DEBUG] Adding reference to kte-css/hyphenation.css to file cover.xhtml
2022-02-16 13:11:30 [DEBUG] Adding reference to kte-css/hyphenation.css to file copyrightnotice.xhtml
2022-02-16 13:11:30 [DEBUG] Adding reference to kte-css/hyphenation.css to file dedication.xhtml
2022-02-16 13:11:30 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter1.xhtml
2022-02-16 13:11:30 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter2.xhtml
2022-02-16 13:11:30 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter3.xhtml
2022-02-16 13:11:30 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter5.xhtml
2022-02-16 13:11:30 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter7.xhtml
2022-02-16 13:11:30 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter8.xhtml
2022-02-16 13:11:30 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter9.xhtml
2022-02-16 13:11:30 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter11.xhtml
2022-02-16 13:11:30 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter6.xhtml
2022-02-16 13:11:30 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter13.xhtml
2022-02-16 13:11:30 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter14.xhtml
2022-02-16 13:11:30 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter4.xhtml
2022-02-16 13:11:30 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter17.xhtml
2022-02-16 13:11:30 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter19.xhtml
2022-02-16 13:11:30 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter20.xhtml
2022-02-16 13:11:30 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter10.xhtml
2022-02-16 13:11:30 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter23.xhtml
2022-02-16 13:11:30 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter24.xhtml
2022-02-16 13:11:30 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter18.xhtml
2022-02-16 13:11:30 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter25.xhtml
2022-02-16 13:11:30 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter22.xhtml
2022-02-16 13:11:30 [DEBUG] Adding reference to kte-css/hyphenation.css to file abouttheauthor.xhtml
2022-02-16 13:11:30 [DEBUG] Adding reference to kte-css/hyphenation.css to file newsletter.xhtml
2022-02-16 13:11:30 [DEBUG] Adding reference to kte-css/hyphenation.css to file contents.xhtml
2022-02-16 13:11:30 [DEBUG] Adding reference to kte-css/hyphenation.css to file toc.xhtml
2022-02-16 13:11:30 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter21.xhtml
2022-02-16 13:11:30 [DEBUG] Adding reference to kte-css/hyphenation.css to file nav.xhtml
2022-02-16 13:11:30 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter16.xhtml
2022-02-16 13:11:30 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter12.xhtml
2022-02-16 13:11:30 [DEBUG] Adding reference to kte-css/hyphenation.css to file chapter15.xhtml
2022-02-16 13:11:30 [DEBUG] Adding reference to kte-css/hyphenation.css to file acknowledgments.xhtml
2022-02-16 13:11:30 [DEBUG] Adding reference to kte-css/hyphenation.css to file copyright.xhtml
2022-02-16 13:11:30 [ERROR] Failed converting!
Traceback (most recent call last):
File "calibre_plugins.kepubout.conversion.kepub_output" , line 188, in convert
common.modify_epub(
File "calibre_plugins.kepubout.common", line 220, in modify_epub
container.add_content_file_reference("kte-css/{0}".format(css_path))
File "calibre_plugins.kepubout.container", line 222, in add_content_file_reference
self.__run_async_over_content(self.__add_content_f ile_reference_impl, (name,))
File "calibre_plugins.kepubout.container", line 375, in __run_async_over_content
self.__run_async(func, names)
File "calibre_plugins.kepubout.container", line 368, in __run_async
future.result(timeout=10)
File "concurrent/futures/_base.py", line 432, in result
File "concurrent/futures/_base.py", line 388, in __get_result
File "concurrent/futures/thread.py", line 57, in run
File "calibre_plugins.kepubout.container", line 234, in __add_content_file_reference_impl
head = head[0]
IndexError: list index out of range
Traceback (most recent call last):
File "runpy.py", line 194, in _run_module_as_main
File "runpy.py", line 87, in _run_code
File "site.py", line 39, in <module>
File "site.py", line 35, in main
File "calibre/utils/ipc/worker.py", line 215, in main
File "calibre/gui2/convert/gui_conversion.py", line 38, in gui_convert_override
File "calibre/gui2/convert/gui_conversion.py", line 25, in gui_convert
File "calibre/ebooks/conversion/plumber.py", line 1281, in run
File "calibre_plugins.kepubout.conversion.kepub_output" , line 188, in convert
File "calibre_plugins.kepubout.common", line 220, in modify_epub
File "calibre_plugins.kepubout.container", line 222, in add_content_file_reference
File "calibre_plugins.kepubout.container", line 375, in __run_async_over_content
File "calibre_plugins.kepubout.container", line 368, in __run_async
File "concurrent/futures/_base.py", line 432, in result
File "concurrent/futures/_base.py", line 388, in __get_result
File "concurrent/futures/thread.py", line 57, in run
File "calibre_plugins.kepubout.container", line 234, in __add_content_file_reference_impl
IndexError: list index out of range
Am I missing something? Are the epubs themselves broken? Something could be corrupting them, but I'm not sure what.
Where are the books stored? On a local hard drive/USB driver or on a network/cloud storage? Do you see any issues when you run Library maintenance => Check library?
What version of the Kepub Output plugin are you using? There have been a few changes over the last year that could explain the difference between converting a book a year ago and now. The last error is in code looking for the namespace in the html tag. If that is missing, it is book has errors that the calibre editor would show and can fix.
The other error looks to be related to obfuscated font in the book. That probably means someone has removed the key but not the font. Again, it would be an error, but, I'm not sure if it is one that the editor shows. But, in this case, the error is one that would occur with a epub-to-epub conversion as well.