08-10-2010, 12:11 PM | #1 |
Member
Posts: 13
Karma: 10
Join Date: Feb 2010
Device: None
|
Epub to Mobi conversion
Hello
I'm using Calibre to convert ePub files to Mobi. Usually works great but my latest attempt is failing, producing following list of errors when I click the 'show details' button – can anyone point me in the direction of what might be wrong? thanks! Convert book 1 of 1 (What is Religion? And Other Writings) Resolved conversion options calibre version: 0.7.13 {'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': None, 'disable_font_rescaling': False, 'dont_compress': 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_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 0x678b2b0>, '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_inline_navbars': False, 'no_inline_toc': False, 'output_profile': <calibre.customize.profiles.OutputProfile object at 0x678b490>, 'page_breaks_before': u'/', 'personal_doc': u'[PDOC]', 'prefer_author_sort': False, 'prefer_metadata_cover': False, 'preprocess_html': False, 'pretty_print': False, 'pubdate': None, 'publisher': None, 'rating': None, 'read_metadata_from_opf': '/var/folders/jW/jWruv+MuFo01kuq6vUBDMU+++TI/-Tmp-/calibre_0.7.13_6L6_Yr.opf', 'remove_first_image': False, 'remove_footer': False, 'remove_header': False, 'remove_paragraph_spacing': False, 'remove_paragraph_spacing_indent_size': 1.5, 'rescale_images': False, 'series': None, 'series_index': None, 'tags': None, 'timestamp': None, 'title': None, 'title_sort': None, 'toc_filter': None, 'toc_threshold': 6, 'toc_title': None, 'use_auto_toc': False, 'verbose': 2} InputFormatPlugin: EPUB Input running on /Users/Mini25/Documents/Calibre Library/Leo Tolstoy/What is Religion_ And Other Writings (49)/What is Religion_ And Other Writings - Leo Tolstoy.epub Found HTML cover OEBPS/cover.xhtml Parsing all content... Parsing OEBPS/chapter_002.xhtml ... Parsing OEBPS/chapter_004.xhtml ... Parsing OEBPS/chapter_007.xhtml ... Parsing OEBPS/chapter_005.xhtml ... Parsing OEBPS/chapter_001.xhtml ... Parsing OEBPS/chapter_008.xhtml ... Parsing OEBPS/chapter_010.xhtml ... Parsing OEBPS/also_available.xhtml ... Parsing stylesheet.css ... Parsing OEBPS/preface.xhtml ... Parsing OEBPS/chapter_009.xhtml ... Parsing OEBPS/cover.xhtml ... Parsing OEBPS/chapter_006.xhtml ... Parsing OEBPS/copyright.xhtml ... Parsing OEBPS/chapter_011.xhtml ... Parsing OEBPS/chapter_003.xhtml ... Parsing OEBPS/title.xhtml ... Reading TOC from NCX... Merging user specified metadata... Detecting structure... Detected chapter: Also available from White Crow Books Flattening CSS and remapping font sizes... Property: Invalid value for "CSS Level 2.1" property: 43 [1:1: width] Property: Invalid value for "CSS Level 2.1" property: 52 [1:12: height] Source base font size is 12.60000pt Cleaning up manifest... Trimming unused files from manifest... Parsing stylesheet1.css ... Property: Invalid value for "CSS Level 2.1" property: 52 [127:1: height] Property: Invalid value for "CSS Level 2.1" property: 43 [132:1: width] Trimming 'cover.jpg' from manifest Python function terminated unexpectedly: toc.ncx Creating MOBI Output... Applying case-transforming CSS... Parsing manglecase.css ... Rasterizing SVG images... Converting XHTML to Mobipocket markup... Serializing markup content... Traceback (most recent call last): File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.6/site.py", line 147, in main return run_entry_point() File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.6/site.py", line 116, in run_entry_point return getattr(pmod, func)() 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 926, in run File "site-packages/calibre/ebooks/mobi/output.py", line 182, in convert File "site-packages/calibre/ebooks/mobi/writer.py", line 367, in __call__ File "site-packages/calibre/ebooks/mobi/writer.py", line 380, in _dump_stream File "site-packages/calibre/ebooks/mobi/writer.py", line 387, in _generate_content File "site-packages/calibre/ebooks/mobi/writer.py", line 1227, in _generate_text File "site-packages/calibre/ebooks/mobi/writer.py", line 169, in __init__ File "site-packages/calibre/ebooks/mobi/writer.py", line 179, in serialize_head File "site-packages/calibre/ebooks/mobi/writer.py", line 188, in serialize_guide KeyError: 'toc.ncx' |
08-10-2010, 12:42 PM | #2 |
creator of calibre
Posts: 44,356
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The epub file is missing an ncx Table of Contents. Still calibre should be able to handle that, so opena ticket and attach the epub file.
|
Advert | |
|
08-12-2010, 01:08 PM | #3 |
Member
Posts: 13
Karma: 10
Join Date: Feb 2010
Device: None
|
Thanks Kovid, will do. There is an ncx file, but maybe there's something wrong with it.
|
Tags |
calibre, conversion, epub, error message, mobi |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
.epub to .mobi conversion Kindle3 | cyberdyne | Calibre | 4 | 09-23-2010 08:41 AM |
epub to mobi conversion problems | rcdc | Calibre | 5 | 09-18-2010 02:29 AM |
ePub to Mobi Conversion Quality | Logiedan | Calibre | 8 | 08-17-2010 04:02 PM |
Conversion to Mobi to ePub errors | erik_reader | Conversion | 5 | 08-07-2010 02:03 AM |
How good is Epub -> Mobi conversion really? | AdrianM | Amazon Kindle | 26 | 07-31-2010 11:04 PM |