View Single Post
Old 02-08-2010, 06:12 PM   #1
alaouet
Member
alaouet doesn't litteralaouet doesn't litter
 
alaouet's Avatar
 
Posts: 20
Karma: 124
Join Date: Jun 2008
Location: Tenerife
Device: PRS-505
MOBI to LRF: Conversion troubles with Calibre

Hello,

I'd like to convert with Calibre 5 books from MOBI to LRF

Two of them have been converted easily but the three other ones always produce the same error.

Then I've tried later to convert these books to EPUB but the result has been exactly the same.

Here are the details:

Quote:
ERROR: Conversion Error: <b>Failed</b>: Convert book 1 of 1 (C'est mort et ça ne sait pas !)

Convert book 1 of 1 (C'est mort et ça ne sait pas !)
Resolved conversion options
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 1.0,
'book_producer': None,
'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\\usuario\\config~1\\temp\\calibre_0. 6.36_4ep8kg.jpeg',
'debug_pipeline': None,
'disable_font_rescaling': False,
'dont_justify': True,
'enable_autorotation': False,
'extra_css': None,
'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': False,
'header_format': u'%t by %a',
'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>) ' ,
'header_separation': 0.0,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x028C7F70>,
'insert_blank_line': False,
'insert_metadata': False,
'isbn': None,
'language': None,
'level1_toc': None,
'level2_toc': None,
'level3_toc': None,
'line_height': 1.0,
'linearize_tables': False,
'margin_bottom': 5.0,
'margin_left': 5.0,
'margin_right': 5.0,
'margin_top': 5.0,
'max_toc_links': 50,
'minimum_indent': 0.0,
'mono_family': u'None',
'no_chapters_in_toc': False,
'no_inline_navbars': False,
'output_profile': <calibre.customize.profiles.OutputProfile object at 0x028CF150>,
'page_breaks_before': u"//*[name()='h1' or name()='h2']",
'prefer_metadata_cover': False,
'preprocess_html': False,
'pretty_print': False,
'publisher': None,
'rating': None,
'read_metadata_from_opf': 'c:\\docume~1\\usuario\\config~1\\temp\\calibre_0. 6.36_ufokne.opf',
'remove_first_image': False,
'remove_footer': False,
'remove_header': False,
'remove_paragraph_spacing': False,
'remove_paragraph_spacing_indent_size': 1.5,
'render_tables_as_images': False,
'sans_family': u'None',
'series': None,
'series_index': None,
'serif_family': u'None',
'tags': None,
'text_size_multiplier_for_rendered_tables': 1.0,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 6,
'use_auto_toc': False,
'verbose': 2,
'wordspace': 2.5}
InputFormatPlugin: MOBI Input running
on C:\Documents and Settings\Usuario\Escritorio\Dard Frederic\C'est mort et ca ne sait pas ! (3)\C'est mort et ca ne sait pas ! - Dard Frederic.mobi
Extracting text...
Adding anchors...
Extracting images...
Cleaning up HTML...
Parsing HTML...
Malformed markup, parsing using BeautifulSoup
MOBI markup appears to contain random bytes. Stripping.
Extracting text...
Adding anchors...
Extracting images...
Cleaning up HTML...
Parsing HTML...
Malformed markup, parsing using BeautifulSoup
MOBI markup appears to contain random bytes. Stripping.
Python function terminated unexpectedly
(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 745, in run
File "site-packages\calibre\customize\conversion.py", line 211, in __call__
File "site-packages\calibre\ebooks\mobi\input.py", line 27, in convert
File "site-packages\calibre\ebooks\mobi\reader.py", line 331, in extract_content
File "site-packages\lxml-2.2.2-py2.6-win32.egg\lxml\html\soupparser.py", line 23, in fromstring
File "site-packages\lxml-2.2.2-py2.6-win32.egg\lxml\html\soupparser.py", line 66, in _parse
File "site-packages\beautifulsoup-3.1.0.1-py2.6.egg\BeautifulSoup.py", line 1499, in __init__
File "site-packages\beautifulsoup-3.1.0.1-py2.6.egg\BeautifulSoup.py", line 1230, in __init__
File "site-packages\beautifulsoup-3.1.0.1-py2.6.egg\BeautifulSoup.py", line 1263, in _feed
File "HTMLParser.py", line 108, in feed
File "HTMLParser.py", line 148, in goahead
File "HTMLParser.py", line 226, in parse_starttag
File "HTMLParser.py", line 301, in check_for_whole_start_tag
File "HTMLParser.py", line 115, in error
HTMLParser.HTMLParseError: malformed start tag, at line 3, column 1
I hope some of you could understand what is wrong and maybe help me to resolve this problem.

thank you very much
alaouet is offline   Reply With Quote