![]() |
#1 |
Junior Member
![]() 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 |
![]() |
![]() |
![]() |
#2 | |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,888
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
If neither option works you've probably just got a hopeless Lit file - it happens. |
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,146
Karma: 27110894
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. |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |