View Single Post
Old 06-28-2010, 07:00 PM   #1
Metal Mick
Addict
Metal Mick ought to be getting tired of karma fortunes by now.Metal Mick ought to be getting tired of karma fortunes by now.Metal Mick ought to be getting tired of karma fortunes by now.Metal Mick ought to be getting tired of karma fortunes by now.Metal Mick ought to be getting tired of karma fortunes by now.Metal Mick ought to be getting tired of karma fortunes by now.Metal Mick ought to be getting tired of karma fortunes by now.Metal Mick ought to be getting tired of karma fortunes by now.Metal Mick ought to be getting tired of karma fortunes by now.Metal Mick ought to be getting tired of karma fortunes by now.Metal Mick ought to be getting tired of karma fortunes by now.
 
Posts: 253
Karma: 2383254
Join Date: Jun 2010
Location: Melbourne, Australia
Device: The Book, PB 302, IQ
Calibre "Failed: Convert book..."

Hi all,

I'm new to the forum, and thought I'd take a look at Calibre, and try to convert some books to ePub format. These are titles I have on my bookshelf at home, and I just want to experiment at this stage with them on my phone. Later, I want to raid the Guttenberg Project for some classics.

The books are in .lit and .lrf format. However, when I try to convert, I usually get an error message and the following data in the log file:
Code:
ERROR: Conversion Error: <b>Failed</b>: Convert book 1 of 1 (Child, Lee - Reacher 3 - Tripwire e-txt.txt)

Convert book 1 of 1 (Child, Lee - Reacher 3 - Tripwire e-txt.txt)
Resolved conversion options
calibre version: 0.7.6
{'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': 'c:\\docume~1\\michael\\locals~1\\temp\\calibre_0.7.6_piiola.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': 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.InputProfile object at 0x038F6B30>,
 '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 0x038F6D10>,
 '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:\\docume~1\\michael\\locals~1\\temp\\calibre_0.7.6_ddqysg.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:\Calibre2\Books\Tripwire\Child, Lee - Reacher 3 - Tripwire e-txt_ (4)\Child, Lee - Reacher 3 - Tripwire e-txt_ - Tripwire.lit
Parsing all content...
Parsing Child%2c%20Lee%20-%20Reacher%203%20-%20Tripwire%20e-txt.htm ...
Forcing Child%2c%20Lee%20-%20Reacher%203%20-%20Tripwire%20e-txt.htm into XHTML namespace
File 'Child%2c%20Lee%20-%20Reacher%203%20-%20Tripwire%20e-txt.htm' missing <head/> element
Parsing ~cov0270.htm ...
Forcing ~cov0270.htm into XHTML namespace
Generating default TOC from spine...
Choosing other.ms-coverimage-standard:~cov0266.jpg as the cover
Merging user specified metadata...
Detecting structure...
Auto generated TOC with 0 entries.
Flattening CSS and remapping font sizes...
Source base font size is 12.00000pt
Cleaning up manifest...
Trimming unused files from manifest...
Parsing stylesheet.css ...
Trimming '~cov0268.jpg' from manifest
Trimming '~cov0267.jpg' from manifest
Trimming '~cov0269.jpg' from manifest
Trimming '~cov0265.jpg' from manifest
Creating EPUB Output...
	Looking for large trees in Child%2c%20Lee%20-%20Reacher%203%20-%20Tripwire%20e-txt.htm...
	Found large tree #0
		Splitting...
			Split point: {http://www.w3.org/1999/xhtml}div /*/*[2]/*
			Split tree too small
		Splitting...
			Split point: {http://www.w3.org/1999/xhtml}p /*/*[2]/*/*/*[4]
			Split tree still too large: 512 KB
		Splitting...
			Split point: {http://www.w3.org/1999/xhtml}p /*/*[2]/*/*/*[2]
			Split tree too small
		Splitting...
			Split point: {http://www.w3.org/1999/xhtml}p /*/*[2]/*/*/*[3]
			Split tree still too large: 506 KB
		Splitting...
			Split point: {http://www.w3.org/1999/xhtml}p /*/*[2]/*/*/*[1]
			Split tree too small
		Splitting...
Python function terminated unexpectedly
  Could not find reasonable point at which to split: Child
I'm unsure if it is an issue with the files - I have a couple of them already converted, though it is a struggle and usually takes me several goes.

I looked through postings on this forum, and some have indicated issues can stem from cssutils. I have the latest release of Calibre, on a Win XP SP2 machine with plenty of memory and power. I have also downloaded the latest cssutils, but don't know what to do with the package next - it is in a .egg format and my unzipper doesn't recognize the extension.

Any help = even if it is a link, will be gratefully received.

Cheers,

Michael P
Metal Mick is offline   Reply With Quote