09-03-2010, 07:39 AM | #1 |
Addict
Posts: 281
Karma: 2125576
Join Date: Sep 2010
Device: Kobo Forma
|
New user, conversion problem...
I have tried as much as my limited brain will allow on a conversion from .lit to epub, with no luck. Here's the error info, with hopes you smarter folks can help me solve the issue:
ERROR: Conversion Error: <b>Failed</b>: Convert book 1 of 1 (The All White Elf) Convert book 1 of 1 (The All White Elf) Resolved conversion options calibre version: 0.7.16 {'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\\s+', 'i')) or @class = 'chapter']", 'chapter_mark': u'pagebreak', 'comments': None, 'cover': None, 'debug_pipeline': u'D:/Calibre Debug', 'disable_font_rescaling': False, 'dont_split_on_page_breaks': False, 'extra_css': None, 'extract_to': None, 'flow_size': 260, 'font_size_mapping': None, '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.MSReaderInput object at 0x04FB3A10>, '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.NookOutput object at 0x04FB3CB0>, 'page_breaks_before': u"//*[name()='h1' or name()='h2']", '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': 'c:\\users\\artmoo~1\\appdata\\local\\temp\\calibr e_0.7.16_tmp_8onqsw\\calibre_0.7.16_sso12q.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} InputFormatPlugin: LIT Input running on D:\Calibre Library\Lester Dent\The All White Elf (1)\The All White Elf - Lester Dent.lit Parsing all content... Parsing 097%20-%20The%20All%20White%20Elf.htm ... Initial parse failed: Traceback (most recent call last): File "site-packages\calibre\ebooks\oeb\base.py", line 816, in first_pass File "lxml.etree.pyx", line 2532, in lxml.etree.fromstring (src/lxml/lxml.etree.c:48270) File "parser.pxi", line 1545, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:71812) File "parser.pxi", line 1417, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:70608) File "parser.pxi", line 898, in lxml.etree._BaseParser._parseUnicodeDoc (src/lxml/lxml.etree.c:67148) File "parser.pxi", line 539, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:63824) File "parser.pxi", line 625, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:64745) File "parser.pxi", line 565, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:64088) XMLSyntaxError: PCDATA invalid Char value 1, line 1, column 18 Parsing file '097%20-%20The%20All%20White%20Elf.htm' as HTML Forcing 097%20-%20The%20All%20White%20Elf.htm into XHTML namespace File '097%20-%20The%20All%20White%20Elf.htm' missing <head/> element Parsing ~cov0141.htm ... Forcing ~cov0141.htm into XHTML namespace Generating default TOC from spine... Input debug saved to: D:\Calibre Debug\input Python function terminated unexpectedly 'NoneType' object has no attribute 'splitlines' (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 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 825, in run File "site-packages\calibre\ebooks\lit\input.py", line 46, in postprocess_book File "site-packages\calibre\ebooks\txt\processor.py", line 24, in convert_basic AttributeError: 'NoneType' object has no attribute 'splitlines' |
09-03-2010, 09:24 AM | #2 |
Wizard
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
You should open a bug and post your file. Something about it's formatting is preventing the text processing function from working as designed.
Immediate fix would be to use Convertlit to extract the html from the file and convert from html instead of Lit. |
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PRS-600 new user problem authorising device | chrisgoss | Sony Reader | 5 | 08-02-2010 01:41 PM |
conversion problem? | mountainman80 | ePub | 8 | 01-29-2010 11:54 PM |
Problem launching Calibre in OS X - depends on which USER | Nigel Brooks | Calibre | 10 | 11-13-2009 02:37 AM |
Conversion Problem | tonyt | Calibre | 5 | 06-13-2009 05:04 PM |
New Hanlin user, and a little problem | javimm | HanLin eBook | 12 | 11-23-2008 08:39 AM |