![]() |
#1 |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Feb 2022
Device: Kobo
|
Kindle Mobi format will not open in Calibre
Apologies if this is the wrong place for this post.
I have a Windows 10 PC with Kindle for PC 1.17.0(44170) on. Previously I have downloaded my books, imported them into Calibre and been able to use them without issue. Today I have tried the same with a 40Mb file and it is being seen as a mobi file by Calibre that will not open. I have tried converting to epub, fails to convert, azw3 and mobi. In the last two I can see the cover but the remainder of the book is complete gibberish. I suspect it's a new DRM measure? If I click on the imported mobi file 'as is' it will open the cover after a lengthy wait and then refuses to open the remainder of the book. The errors are: calibre, version 5.36.0 ERROR: Conversion failed: <p><b>Failed to convert: The Art of Electronics<p> Many older e-book reader devices are incapable of displaying EPUB files that have internal components over a certain size. Therefore, when converting to EPUB, calibre automatically tries to split up the EPUB into smaller sized pieces. For some files that are large undifferentiated blocks of text, this splitting fails. <p>You can <b>work around the problem</b> by either increasing the maximum split size under <i>EPUB output</i> in the conversion dialog, or by turning on Heuristic processing, also in the conversion dialog. Note that if you make the maximum split size too large, your e-book reader may have trouble with the EPUB. Convert book 1 of 1 (The Art of Electronics) DeDRM v7.2.1: Trying to decrypt tdje423r.mobi Using Library AlfCrypto DLL/DYLIB/SO Using Library AlfCrypto DLL/DYLIB/SO MobiDeDrm v1.0. Copyright © 2008-2020 The Dark Reverser, Apprentice Harper et al. Decrypting Mobipocket 4 ebook: The Art of Electronics Got DSN key from database default_key Found 4 keys to try after 0.2 seconds Crypto Type is: 0 This book is not encrypted. Decryption succeeded after 0.2 seconds DeDRM v7.2.1: Finished after 0.2 seconds Conversion options changed from defaults: cover: 'C:\\Users\\SteveH\\AppData\\Local\\Temp\\calibre_ 6a502eqb\\okh31e_j.jpeg' output_profile: 'kobo' verbose: 2 read_metadata_from_opf: 'C:\\Users\\SteveH\\AppData\\Local\\Temp\\calibre_ 6a502eqb\\n85hqe1g.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+)|((prolog|p rologue|epilogue)(\\s+|$))', " "'i')) or @class = 'chapter']", 'chapter_mark': 'pagebreak', 'comments': None, 'cover': 'C:\\Users\\SteveH\\AppData\\Local\\Temp\\calibre_ 6a502eqb\\okh31e_j.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': '2', '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 0x07920BF8>, 'insert_blank_line': False, 'insert_blank_line_size': 0.5, 'insert_metadata': False, 'isbn': None, 'italicize_common_cases': True, 'keep_ligatures': False, '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.KoboReaderOutput object at 0x07920F28>, 'page_breaks_before': "//*[name()='h1' or name()='h2']", 'prefer_metadata_cover': False, 'preserve_cover_aspect_ratio': False, 'pretty_print': True, 'pubdate': None, 'publisher': None, 'rating': None, 'read_metadata_from_opf': 'C:\\Users\\SteveH\\AppData\\Local\\Temp\\calibre_ 6a502eqb\\n85hqe1g.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} DeDRM v7.2.1: Trying to decrypt 4vogq_8g.mobi MobiDeDrm v1.0. Copyright © 2008-2020 The Dark Reverser, Apprentice Harper et al. Decrypting Mobipocket 4 ebook: The Art of Electronics Got DSN key from database default_key Found 4 keys to try after 0.1 seconds Crypto Type is: 0 This book is not encrypted. Decryption succeeded after 0.1 seconds DeDRM v7.2.1: Finished after 0.1 seconds InputFormatPlugin: MOBI Input running on C:\Users\SteveH\AppData\Local\Temp\calibre_6a502eq b\un7mbl69.mobi Extracting text... Adding anchors... Extracting images... Cleaning up HTML... Parsing HTML... Malformed markup, parsing using html5-parser Converting style information to CSS... Creating OPF... Parsing all content... Parsing index.html ... Initial parse failed, using more forgiving parsers Parsing index.html as HTML HTML 5 parsing failed, falling back to older parsers Traceback (most recent call last): File "calibre\ebooks\oeb\parse_utils.py", line 211, in parse_html File "calibre\utils\xml_parse.py", line 26, in safe_xml_fromstring File "src/lxml/etree.pyx", line 3237, in lxml.etree.fromstring File "src/lxml/parser.pxi", line 1896, in lxml.etree._parseMemoryDocument File "src/lxml/parser.pxi", line 1777, in lxml.etree._parseDoc File "src/lxml/parser.pxi", line 1082, in lxml.etree._BaseParser._parseUnicodeDoc File "src/lxml/parser.pxi", line 615, in lxml.etree._ParserContext._handleParseResultDoc File "src/lxml/parser.pxi", line 725, in lxml.etree._handleParseResult File "src/lxml/parser.pxi", line 654, in lxml.etree._raiseParseError File "<string>", line 5 lxml.etree.XMLSyntaxError: Attribute __ redefined, line 5, column 1193 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "calibre\ebooks\oeb\parse_utils.py", line 218, in parse_html File "calibre\utils\xml_parse.py", line 26, in safe_xml_fromstring File "src/lxml/etree.pyx", line 3237, in lxml.etree.fromstring File "src/lxml/parser.pxi", line 1896, in lxml.etree._parseMemoryDocument File "src/lxml/parser.pxi", line 1777, in lxml.etree._parseDoc File "src/lxml/parser.pxi", line 1082, in lxml.etree._BaseParser._parseUnicodeDoc File "src/lxml/parser.pxi", line 615, in lxml.etree._ParserContext._handleParseResultDoc File "src/lxml/parser.pxi", line 725, in lxml.etree._handleParseResult File "src/lxml/parser.pxi", line 654, in lxml.etree._raiseParseError File "<string>", line 5 lxml.etree.XMLSyntaxError: Attribute __ redefined, line 5, column 1193 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "calibre\ebooks\oeb\parse_utils.py", line 224, in parse_html File "calibre\ebooks\oeb\parse_utils.py", line 105, in html5_parse ValueError: HTML 5 parsing resulted in a tree with nesting depth > 100 Forcing index.html into XHTML namespace Parsing styles.css ... Generating default TOC from spine... Merging user specified metadata... Detecting structure... Auto generated TOC with 0 entries. Flattening CSS and remapping font sizes... Source base font size is 12.00000pt Removing fake margins... Cleaning up manifest... Trimming unused files from manifest... Trimming 'images/00001.jpg' from manifest Trimming 'images/00002.jpg' from manifest Creating EPUB Output... Rescaling image from 920x1196 to 512x666 cover.jpeg Splitting markup on page breaks and flow limits, if any... Looking for large trees in index.html... Found large tree #0 Splitting... Split point: {http://www.w3.org/1999/xhtml}gf________________pp_______4_____c__0_______ _r__9_______m_______g___h1c___j______l__._________ _____ /*/*[2]/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/* Committed sub-tree #1 (221 KB) Split tree still too large: 365 KB Splitting... Split point: {http://www.w3.org/1999/xhtml}d______q__2fl___b8____xx____j__k______h4_ /*/*[2]/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*[2]/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/* Committed sub-tree #2 (159 KB) Split tree still too large: 278 KB Splitting... Split point: {http://www.w3.org/1999/xhtml}vw________________eic________________h2__w__ cf_______________________9____f__v____________k___ _____ /*/*[2]/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/* Adjusted split point to ancestor Split tree too small Splitting... 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 82, in <module> File "site.py", line 77, in main File "site.py", line 49, in run_entry_point 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\ebooks\conversion\plugins\epub_output.py" , line 206, in convert File "calibre\ebooks\oeb\transforms\split.py", line 65, in __call__ File "calibre\ebooks\oeb\transforms\split.py", line 74, in split_item File "calibre\ebooks\oeb\transforms\split.py", line 223, in __init__ File "calibre\ebooks\oeb\transforms\split.py", line 371, in split_to_size File "calibre\ebooks\oeb\transforms\split.py", line 371, in split_to_size File "calibre\ebooks\oeb\transforms\split.py", line 356, in split_to_size File "calibre\ebooks\oeb\transforms\split.py", line 349, in split_to_size calibre.ebooks.oeb.transforms.split.SplitError: Could not find reasonable point at which to split: index.html Sub-tree size: 278 KB Can someone please point me in the right direction to rectify this mess please? ![]() |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,031
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
That problem is caused by a bug in the DRM removal plugin. It fails to detect when a MOBI file contains PDF content (AZW4 format).
You can work around the problem by installing the KindleUnpack plugin for calibre. Select the book entry in calibre and use the "Extract PDF" function of KindleUnpack to obtain the embedded PDF. |
![]() |
![]() |
Advert | |
|
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
I can't open mobi format with Kindle previewer | juangra | Devices | 1 | 12-11-2016 02:27 PM |
Can't open mobi ebooks created with calibre on kindle pw | Mantinholding | Amazon Kindle | 7 | 02-25-2015 06:06 AM |
How to open MOBI formats in Calibre in the Kindle reading app? | bookw0rm | Calibre | 4 | 11-06-2014 09:56 PM |
Kindle cannot open calibre-received mobi books | pgfiore | Devices | 3 | 04-02-2013 03:20 AM |
Calibre MOBI format not seen in PC Kindle Library | jamesewood | Devices | 5 | 01-16-2012 10:13 AM |