View Single Post
  #8  
Old 07-04-2011, 03:05 AM
bhoyt bhoyt is offline
Junior Member
 
Join Date: Jul 2011
Posts: 2
bhoyt is on a distinguished road
Default

Re: The simplest option for removing DRM: Calibre Plugins


I deDRMed a Kindle book in Calibre. Loaded the book and got no errors. Using the viewer I could only see the cover, nothing else. Then when I tried to convert the book to HTMLZ I get the following error:

Code:
calibre, version 0.8.8
ERROR: Conversion Error: <b>Failed</b>: Convert book 1 of 1 (The Holy Bible, English Standard Version)

Convert book 1 of 1 (The Holy Bible, English Standard Version)
Resolved conversion options
calibre version: 0.8.8
{'asciiize': False,
 'author_sort': None,
 'authors': None,
 'base_font_size': 12.0,
 'book_producer': None,
 'change_justification': u'original',
 'chapter': u"//*[((name()='h1' or name()='h2') and re:test(., 'chapter|book|section|part|prologue|epilogue\\s+', 'i')) or @class = 'chapter']",
 'chapter_mark': u'pagebreak',
 'comments': None,
 'cover': u'c:\\docume~1\\bruce\\locals~1\\temp\\calibre_0.8.8_tmp_qhzsb2\\calibre_0.8.8_fq04fu.jpeg',
 'debug_pipeline': None,
 'dehyphenate': True,
 'delete_blank_paragraphs': True,
 'disable_font_rescaling': False,
 'enable_heuristics': False,
 'extra_css': u'body {text-align:left; }\nh1 { text-align:left; margin-bottom:0em; }\nh2 { text-align:left; margin-bottom:0em; }\nh3 { text-align:left; margin-bottom:0em; }\nh4 { text-align:left; margin-bottom:0em; }\nol { text-align:left; margin-top:0em; margin-bottom:0em; }',
 'fix_indents': True,
 'font_size_mapping': u'8, 9, 10, 11, 12, 14, 16,18',
 'format_scene_breaks': True,
 'html_unwrap_factor': 0.4,
 'htmlz_class_style': u'external',
 'htmlz_css_type': u'class',
 'input_encoding': None,
 'input_profile': <calibre.customize.profiles.InputProfile object at 0x03FDC6B0>,
 'insert_blank_line': False,
 'insert_metadata': False,
 'isbn': None,
 'italicize_common_cases': True,
 'keep_ligatures': False,
 'language': None,
 'level1_toc': u'//h:h2',
 'level2_toc': u'//h:h3',
 'level3_toc': None,
 'line_height': 0.0,
 'linearize_tables': False,
 'margin_bottom': 0.0,
 'margin_left': 1.0,
 'margin_right': 1.0,
 'margin_top': 0.0,
 'markup_chapter_headings': True,
 'max_toc_links': 999,
 'minimum_line_height': 120.0,
 'no_chapters_in_toc': False,
 'no_inline_navbars': False,
 'output_profile': <calibre.customize.profiles.KindleOutput object at 0x03FDC9D0>,
 'page_breaks_before': u"//*[name()='h1' or name()='h2']",
 'prefer_metadata_cover': False,
 'pretty_print': False,
 'pubdate': None,
 'publisher': None,
 'rating': None,
 'read_metadata_from_opf': u'c:\\docume~1\\bruce\\locals~1\\temp\\calibre_0.8.8_tmp_qhzsb2\\calibre_0.8.8_hmpamd.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': u'',
 '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,
 'tags': None,
 'timestamp': None,
 'title': None,
 'title_sort': None,
 'toc_filter': None,
 'toc_threshold': 6,
 'unwrap_lines': True,
 'use_auto_toc': False,
 'verbose': 2}
InputFormatPlugin: MOBI Input running
on c:\docume~1\bruce\locals~1\temp\calibre_0.8.8_tmp_qhzsb2\calibre_0.8.8_yt_k59.mobi
Extracting text...
Adding anchors...
Extracting images...
Cleaning up HTML...
Parsing HTML...
Malformed markup, parsing using BeautifulSoup
MOBI markup appears to contain random bytes. Stripping.
Extracting text...
Adding anchors...
Extracting images...
Cleaning up HTML...
Parsing HTML...
Malformed markup, parsing using BeautifulSoup
MOBI markup appears to contain random bytes. Stripping.
Python function terminated unexpectedly
  All strings must be XML compatible: Unicode or ASCII, no NULL bytes or control characters (Error Code: 1)
Traceback (most recent call last):
  File "site.py", line 132, in main
  File "site.py", line 109, in run_entry_point
  File "site-packages\calibre\utils\ipc\worker.py", line 181, in main
  File "site-packages\calibre\gui2\convert\gui_conversion.py", line 31, in gui_convert_override
  File "site-packages\calibre\gui2\convert\gui_conversion.py", line 25, in gui_convert
  File "site-packages\calibre\ebooks\conversion\plumber.py", line 922, in run
  File "site-packages\calibre\customize\conversion.py", line 204, in __call__
  File "site-packages\calibre\ebooks\mobi\input.py", line 27, in convert
  File "site-packages\calibre\ebooks\mobi\reader.py", line 349, in extract_content
  File "site-packages\lxml\html\soupparser.py", line 23, in fromstring
  File "site-packages\lxml\html\soupparser.py", line 67, in _parse
  File "site-packages\lxml\html\soupparser.py", line 77, in _convert_tree
  File "site-packages\lxml\html\soupparser.py", line 87, in _convert_children
  File "site-packages\lxml\html\soupparser.py", line 87, in _convert_children
  File "site-packages\lxml\html\soupparser.py", line 87, in _convert_children
  File "site-packages\lxml\html\soupparser.py", line 87, in _convert_children
  File "site-packages\lxml\html\soupparser.py", line 87, in _convert_children
  File "site-packages\lxml\html\soupparser.py", line 87, in _convert_children
  File "site-packages\lxml\html\soupparser.py", line 87, in _convert_children
  File "site-packages\lxml\html\soupparser.py", line 87, in _convert_children
  File "site-packages\lxml\html\soupparser.py", line 87, in _convert_children
  File "site-packages\lxml\html\soupparser.py", line 89, in _convert_children
  File "site-packages\lxml\html\soupparser.py", line 103, in _append_text
  File "lxml.etree.pyx", line 933, in lxml.etree._Element.tail.__set__ (src/lxml/lxml.etree.c:36229)
  File "apihelpers.pxi", line 743, in lxml.etree._setTailText (src/lxml/lxml.etree.c:17329)
  File "apihelpers.pxi", line 1366, in lxml.etree._utf8 (src/lxml/lxml.etree.c:22211)
ValueError: All strings must be XML compatible: Unicode or ASCII, no NULL bytes or control characters
Reply With Quote