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 07-29-2012, 07:27 AM   #1
gohlensc
Junior Member
gohlensc began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jul 2012
Device: kobo aura h2o
failed LIT conversion

Hi,
I have several LIT files, which cannot be converted, the error message is:

Spoiler:
calibre, version 0.8.60
ERROR: Conversion Error: <b>Failed</b>: Convert book 1 of 1 (Those Marrying McBrides - 03 - The Best Man)

Convert book 1 of 1 (Those Marrying McBrides - 03 - The Best Man)
Resolved conversion options
calibre version: 0.8.60
{'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(., '\\s*((chapter|book|section|part)\\s+)|((prolog|pr ologue|epilogue)(\\s+|$))', 'i')) or @class = 'chapter']",
'chapter_mark': u'pagebreak',
'comments': None,
'cover': u'C:\\DOKUME~1\\WebCam\\LOKALE~1\\Temp\\calibre_0. 8.60_tmp_d_55gr\\tpfthg.jpeg',
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'dont_compress': False,
'duplicate_links_in_toc': False,
'enable_heuristics': True,
'extra_css': None,
'extract_to': None,
'filter_css': u'',
'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 0x03430410>,
'insert_blank_line': False,
'insert_blank_line_size': 0.5,
'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,
'mobi_keep_original_images': False,
'mobi_toc_at_start': False,
'no_chapters_in_toc': False,
'no_inline_navbars': False,
'no_inline_toc': False,
'output_profile': <calibre.customize.profiles.OutputProfile object at 0x034305F0>,
'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': u'C:\\DOKUME~1\\WebCam\\LOKALE~1\\Temp\\calibre_0. 8.60_tmp_d_55gr\\qsglgr.opf',
'remove_fake_margins': True,
'remove_first_image': False,
'remove_paragraph_spacing': False,
'remove_paragraph_spacing_indent_size': 1.5,
'renumber_headings': True,
'replace_scene_breaks': u'',
'search_replace': '[]',
'series': None,
'series_index': None,
'share_not_sync': False,
'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,
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: LIT Input running
on C:\DOKUME~1\WebCam\LOKALE~1\Temp\calibre_0.8.60_tm p_d_55gr\t4a6up.lit
Parsing all content...
Python function terminated unexpectedly
Not a valid LIT file (Error Code: 1)
Traceback (most recent call last):
File "site.py", line 132, in main
File "site.py", line 109, in run_entry_point
File "site-packages\calibre\utils\ipc\worker.py", line 192, 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 979, in run
File "site-packages\calibre\customize\conversion.py", line 208, in __call__
File "site-packages\calibre\ebooks\conversion\plugins\lit_inp ut.py", line 23, in convert
File "site-packages\calibre\ebooks\conversion\plumber.py", line 1143, in create_oebbook
File "site-packages\calibre\ebooks\oeb\reader.py", line 67, in __call__
File "site-packages\calibre\ebooks\lit\reader.py", line 860, in __init__
File "site-packages\calibre\ebooks\lit\reader.py", line 433, in __init__
calibre.ebooks.lit.LitError: Not a valid LIT file


Somewhere while searching for a solution I found the mention of html2lrf-function, but I don't know where I should put that or how to use it.
Could anybody please let me know the best way to fix this?

thanks a lot in advance.
Cheers.

Last edited by ldolse; 07-29-2012 at 10:05 AM.
gohlensc is offline   Reply With Quote
Old 07-29-2012, 10:06 AM   #2
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
The error message says exactly what's wrong - it's a bad lit file - see the final line. The way to fix it is to find a legitimate source, or if you purchased it to go back to the seller and get a good copy.

Next time wrap spoiler or code tags tags around large dumps of debug output. Thanks.
ldolse is offline   Reply With Quote
Advert
Old 07-29-2012, 10:18 AM   #3
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Where did you get the LIT files from?
HarryT is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Failed Conversion of epub to mobi Jimbo724 Conversion 1 07-17-2012 04:39 PM
Need some help with a failed conversion bfollowell Conversion 7 01-06-2012 10:25 PM
Failed Conversion Message daylight54 Conversion 0 09-14-2011 06:20 PM
conversion failed tponzo Conversion 3 05-16-2011 01:32 PM
Semi-failed conversion to LRF Xenophon Calibre 2 02-07-2009 03:04 PM


All times are GMT -4. The time now is 04:03 AM.


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