Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 06-05-2010, 09:41 AM   #1
daveldhu
Junior Member
daveldhu began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jun 2010
Device: Kobo
Error when converting from mobi to epub

Hi, sorry if this question has already been asked but here's my problem.

I'm trying to convert a Kindle ebook to an epub. I used mobidedrm to convert the .azw to a .mobi, and then I try to use Calibre to convert from mobi to epub. This process worked fine for all but 2 books, which give me an error, the output is:

Code:
ERROR: Conversion Error: <b>Failed</b>: Convert book 1 of 1 (Eclipse)

Convert book 1 of 1 (Eclipse)
Resolved conversion options
calibre version: 0.7.0
{'asciiize': True,
 'author_sort': None,
 'authors': None,
 'base_font_size': 22.0,
 'book_producer': None,
 'change_justification': u'original',
 'chapter': u"//*[((name()='h1' or name()='h2') and re:test(., 'chapter|book|section|part\\s+', 'i')) or @class = 'chapter']",
 'chapter_mark': u'pagebreak',
 'comments': None,
 'cover': '/var/folders/1I/1Iyz2N0kGoKCVJFMKBB38E+++TI/-Tmp-/calibre_0.7.0_KfIu_l.jpeg',
 'debug_pipeline': None,
 'disable_font_rescaling': False,
 'dont_split_on_page_breaks': False,
 'extra_css': None,
 'extract_to': None,
 'flow_size': 260,
 'font_size_mapping': u'12.0, 13.5, 17.0, 20.0, 22.0, 24.0, 26.0, 28.0, 30.0',
 'footer_regex': u'(?i)(?<=<hr>)((\\s*<a name=\\d+></a>((<img.+?>)*<br>\\s*)?\\d+<br>\\s*.*?\\s*)|(\\s*<a name=\\d+></a>((<img.+?>)*<br>\\s*)?.*?<br>\\s*\\d+))(?=<br>)',
 'header_regex': u'(?i)(?<=<hr>)((\\s*<a name=\\d+></a>((<img.+?>)*<br>\\s*)?\\d+<br>\\s*.*?\\s*)|(\\s*<a name=\\d+></a>((<img.+?>)*<br>\\s*)?.*?<br>\\s*\\d+))(?=<br>)',
 'input_encoding': None,
 'input_profile': <calibre.customize.profiles.InputProfile object at 0x6494190>,
 'insert_blank_line': False,
 'insert_metadata': False,
 'isbn': None,
 '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,
 'max_toc_links': 50,
 'no_chapters_in_toc': False,
 'no_default_epub_cover': False,
 'no_inline_navbars': False,
 'no_svg_cover': False,
 'output_profile': <calibre.customize.profiles.OutputProfile object at 0x6494370>,
 'page_breaks_before': u'/',
 'prefer_metadata_cover': False,
 'preprocess_html': False,
 'preserve_cover_aspect_ratio': False,
 'pretty_print': True,
 'pubdate': None,
 'publisher': None,
 'rating': None,
 'read_metadata_from_opf': '/var/folders/1I/1Iyz2N0kGoKCVJFMKBB38E+++TI/-Tmp-/calibre_0.7.0_3z_QUK.opf',
 'remove_first_image': False,
 'remove_footer': False,
 'remove_header': False,
 'remove_paragraph_spacing': False,
 'remove_paragraph_spacing_indent_size': 1.5,
 'series': None,
 'series_index': None,
 'tags': None,
 'timestamp': None,
 'title': None,
 'title_sort': None,
 'toc_filter': None,
 'toc_threshold': 6,
 'use_auto_toc': False,
 'verbose': 2}
Python function terminated unexpectedly: All strings must be XML compatible: Unicode or ASCII, no NULL bytes
InputFormatPlugin: MOBI Input running
on /Users/daveldhu/Calibre Library/Meyer_ Stephenie/Eclipse (4)/Eclipse - Meyer_ Stephenie.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.
Traceback (most recent call last):
  File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.6/site.py", line 147, in main
    return run_entry_point()
  File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.6/site.py", line 116, in run_entry_point
    return getattr(pmod, func)()
  File "site-packages/calibre/utils/ipc/worker.py", line 99, in main
  File "site-packages/calibre/gui2/convert/gui_conversion.py", line 24, in gui_convert
  File "site-packages/calibre/ebooks/conversion/plumber.py", line 808, in run
  File "site-packages/calibre/customize/conversion.py", line 211, in __call__
  File "site-packages/calibre/ebooks/mobi/input.py", line 27, in convert
  File "site-packages/calibre/ebooks/mobi/reader.py", line 332, 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 86, in _convert_children
  File "lxml.etree.pyx", line 2437, in lxml.etree.SubElement (src/lxml/lxml.etree.c:47345)
  File "apihelpers.pxi", line 210, in lxml.etree._makeSubElement (src/lxml/lxml.etree.c:11391)
  File "apihelpers.pxi", line 205, in lxml.etree._makeSubElement (src/lxml/lxml.etree.c:11327)
  File "apihelpers.pxi", line 283, in lxml.etree._initNodeAttributes (src/lxml/lxml.etree.c:12162)
  File "apihelpers.pxi", line 1242, in lxml.etree._utf8 (src/lxml/lxml.etree.c:19848)
ValueError: All strings must be XML compatible: Unicode or ASCII, no NULL bytes
I'm new to this so it may be something obvious, but any help would be appreciated.

Thanks!
daveldhu is offline   Reply With Quote
Old 06-05-2010, 11:38 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,826
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That error typically means the files have been damaged, usually during dedrming (basically the error sayas there are inapprpriate bits of data in the file that are preventing ti from being parsed).
kovidgoyal is offline   Reply With Quote
Advert
Reply

Tags
calibre, epub, error, mobi

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
error converting mobi to epub babyd Calibre 2 10-06-2010 01:32 PM
Error converting from epub to mobi kornhill Calibre 5 06-28-2010 09:27 PM
Error converting EPUB to MOBI picardo Calibre 8 04-22-2010 09:45 AM
ERROR when converting mobi to epub? help! (new at this) dalpod Calibre 2 04-14-2010 12:52 PM
Error when converting to Mobi and Epub Amalthia Calibre 3 05-11-2009 04:18 AM


All times are GMT -4. The time now is 02:12 PM.


MobileRead.com is a privately owned, operated and funded community.