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-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
Old 06-28-2010, 08:21 PM   #2
ragamuffingirl
Junior Member
ragamuffingirl began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jun 2010
Device: Nook
I'm new here too and having the same problem. I wanted to change an e-book from Kindle's format to Nook's format, and it didn't work. :-(
ragamuffingirl is offline   Reply With Quote
 
Enthusiast
Old 06-28-2010, 09:54 PM   #3
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
Solution?

Hi all,

I tried this again, and this time I altered the title on the right-hand side of the dialog, and it worked. Not entirely certain this was coincidence, though.

Cheers,

Michael P
Metal Mick is offline   Reply With Quote
Old 06-28-2010, 10:16 PM   #4
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: 8,838
Karma: 12535517
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
Quote:
Originally Posted by Metal Mick View Post
Code:
            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.

Any help = even if it is a link, will be gratefully received.
This is a problem with finding a place in the html to split the html into bite size chunks so that when converted to ePub the internal html chunks won't choke the reader. Typically the chunks have to be less than 300k. By default calibre shoots for less than 260k.

You can run the conversion with a directory in the debug area. This will produce, in the directory indicated, the html at various points in the process.

Open up the first html in Sigil then insert chapter breaks to split up the html. Then save the file as a Epub. I then take and run this epub through a epub to epub conversion to add in the cover, book jacket and get the font size, indents and spacing the way I like it.

If you try this you can further inquire in the Sigil forum.
DoctorOhh is offline   Reply With Quote
Old 06-29-2010, 10:06 PM   #5
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
Hi Walt, et al,

thanks for the advice - I shall try that.

Regards,

Michael P
Metal Mick is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error msg "Warning - failed to read metadata" kloewen Calibre 2 06-08-2010 01:25 PM
"Failed to open the file!" - Fictionwise non-DRM ePubs on Libre Nakor Ectaco jetBook 6 03-04-2010 06:37 PM
EPUB to MOBI: "Failed: Convert book 1 of 1" Jillo Introduce Yourself 4 02-20-2010 06:49 PM
The Dreaded "Failed to Make Sony Reader File" Error JEMelby Sony Reader 7 08-21-2007 09:03 PM
BD "failed to make Sony Reader file" RSaunders Sony Reader 5 08-03-2007 01:52 PM


All times are GMT -4. The time now is 06:33 AM.


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