Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 01-29-2011, 05:28 AM   #1
pox
Junior Member
pox began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jan 2011
Device: KIndle
Error when converting

Kindle worked fine for me but now it just wont convert. Keep getting the following message:

calibre, version 0.7.43
ERROR: Conversion Error: <b>Failed</b>: Convert book 1 of 1 (The Unadulterated Cat)

Convert book 1 of 1 (The Unadulterated Cat)
Resolved conversion options
calibre version: 0.7.43
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.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': 'c:\\docume~1\\compaq~1\\locals~1\\temp\\calibre_0 .7.43_tmp_qyfcmk\\calibre_0.7.43_mpjzwl.jpeg',
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'dont_compress': False,
'enable_heuristics': False,
'extra_css': None,
'fix_indents': True,
'font_size_mapping': None,
'format_scene_breaks': True,
'html_unwrap_factor': 0.4,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x044B5750>,
'insert_blank_line': False,
'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,
'mobi_ignore_margins': False,
'no_chapters_in_toc': False,
'no_inline_navbars': True,
'no_inline_toc': False,
'output_profile': <calibre.customize.profiles.KindleOutput object at 0x044B5A70>,
'page_breaks_before': u"//*[name()='h1' or name()='h2']",
'personal_doc': u'[PDOC]',
'prefer_author_sort': False,
'prefer_metadata_cover': False,
'pretty_print': False,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': 'c:\\docume~1\\compaq~1\\locals~1\\temp\\calibre_0 .7.43_tmp_qyfcmk\\calibre_0.7.43_9bqniz.opf',
'remove_first_image': False,
'remove_paragraph_spacing': False,
'remove_paragraph_spacing_indent_size': 1.5,
'renumber_headings': True,
'rescale_images': False,
'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,
'toc_title': None,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: LIT Input running
on O:\KINDLE LIBRARY\Terry Pratchett\The Unadulterated Cat (95)\The Unadulterated Cat - Terry Pratchett.lit
Parsing all content...
Parsing ~cov0006.htm ...
Forcing ~cov0006.htm into XHTML namespace
Parsing Terry%20Pratchett%20-%20The%20Unadulterated%20Cat%5b1%5d.htm ...
Forcing Terry%20Pratchett%20-%20The%20Unadulterated%20Cat%5b1%5d.htm into XHTML namespace
File 'Terry%20Pratchett%20-%20The%20Unadulterated%20Cat%5b1%5d.htm' missing <head/> element
Generating default TOC from spine...
Python function terminated unexpectedly
Entity 'nbsp' not defined, line 3, column 10 (Error Code: 1)
Traceback (most recent call last):
File "site.py", line 103, in main
File "site.py", line 85, in run_entry_point
File "site-packages\calibre\utils\ipc\worker.py", line 110, 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 909, in run
File "site-packages\calibre\ebooks\lit\input.py", line 48, in postprocess_book
File "lxml.etree.pyx", line 2532, in lxml.etree.fromstring (src/lxml/lxml.etree.c:48634)
File "parser.pxi", line 1545, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:72245)
File "parser.pxi", line 1417, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:71041)
File "parser.pxi", line 898, in lxml.etree._BaseParser._parseUnicodeDoc (src/lxml/lxml.etree.c:67581)
File "parser.pxi", line 539, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:64257)
File "parser.pxi", line 625, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:65178)
File "parser.pxi", line 565, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:64521)
lxml.etree.XMLSyntaxError: Entity 'nbsp' not defined, line 3, column 10
pox is offline   Reply With Quote
Old 01-29-2011, 06:01 AM   #2
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by pox View Post
Kindle worked fine for me but now it just wont convert. Keep getting the following message:

calibre, version 0.7.43
ERROR: Conversion Error: <b>Failed</b>: Convert book 1 of 1 (The Unadulterated Cat)

lxml.etree.XMLSyntaxError: Entity 'nbsp' not defined, line 3, column 10
Does this happen on every book?
DoctorOhh is offline   Reply With Quote
Advert
Old 01-29-2011, 07:02 AM   #3
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
Sounds like the Lit file is corrupted in some way - probably some incorrectly encoded non-breaking-space based on that entity error, but the earlier complaint about the missing <head/> element indicates there are probably other problems.

I would say there are two options:
  1. Use Calibre's debug output (under the conversion options) to see if you can get the initially extracted html, repair it by hand, and add back to Calibre
  2. Use ConvertLit to extract the html, again repair what's wrong, and add the corrected html back to Calibre

If neither option works you've probably just got a hopeless Lit file - it happens.
ldolse is offline   Reply With Quote
Old 01-29-2011, 12:14 PM   #4
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,857
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
This is a lit file with all text in a single <pre> tag that actually uses entities. That's not a case handled by the LIT input plugin. I've fixed it, but without the LIT file to test on, I have no way to verify my fix.

EDIT: Actually this is caused by a change to the TXT Input plugin that makes it insert the entities

Last edited by kovidgoyal; 01-29-2011 at 12:18 PM.
kovidgoyal is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error when converting RTF to EPUB doreenjoy Calibre 3 05-19-2012 03:32 AM
Error converting RTF files organicveggie Calibre 4 08-09-2010 03:20 AM
Not converting, Fontconfig error edgley Calibre 5 06-27-2010 10:57 PM
Error when converting from mobi to epub daveldhu Calibre 1 06-05-2010 11:38 AM
Error converting EPUB to MOBI picardo Calibre 8 04-22-2010 09:45 AM


All times are GMT -4. The time now is 12:47 AM.


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