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 01-18-2010, 08:18 PM   #1
yessirrom
Connoisseur
yessirrom will become famous soon enoughyessirrom will become famous soon enoughyessirrom will become famous soon enoughyessirrom will become famous soon enoughyessirrom will become famous soon enoughyessirrom will become famous soon enough
 
yessirrom's Avatar
 
Posts: 61
Karma: 640
Join Date: Jun 2009
Device: HTC HD2 and i-Pad
Help converting .prc to epub

I am trying to convert a prc file and get the following error:

ERROR: Conversion Error: <b>Failed</b>: Convert book 1 of 1 (LDS Book of Mormon)

Convert book 1 of 1 (LDS Book of Mormon)
Resolved conversion options
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.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': None,
'debug_pipeline': None,
'disable_font_rescaling': False,
'dont_justify': 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 0x02843FF0>,
'insert_blank_line': False,
'insert_metadata': False,
'isbn': None,
'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,
'output_profile': <calibre.customize.profiles.SonyReader900Output object at 0x02846230>,
'page_breaks_before': u'/',
'prefer_metadata_cover': False,
'preprocess_html': False,
'pretty_print': True,
'publisher': None,
'rating': None,
'read_metadata_from_opf': 'c:\\docume~1\\admini~1\\locals~1\\temp\\calibre_0 .6.34_d8hnut.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,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 6,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: MOBI Input running
on C:\Documents and Settings\Administrator\My Documents\My eBooks\The Church of Jesus Christ of Latter Day\LDS Book of Mormon (97)\LDS Book of Mormon - The Church of Jesus Christ of Latter Day.prc
Extracting text...
Adding anchors...
Extracting images...
Cleaning up HTML...
Parsing HTML...
Converting style information to CSS...
Creating OPF...
Parsing all content...
Parsing LDS_Book_of_Mormon.html ...
Initial parse failed:
Traceback (most recent call last):
File "site-packages\calibre\ebooks\oeb\base.py", line 803, in first_pass
File "lxml.etree.pyx", line 2538, in lxml.etree.fromstring (src/lxml/lxml.etree.c:48266)
File "parser.pxi", line 1536, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:71653)
File "parser.pxi", line 1408, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:70449)
File "parser.pxi", line 898, in lxml.etree._BaseParser._parseUnicodeDoc (src/lxml/lxml.etree.c:67144)
File "parser.pxi", line 539, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:63820)
File "parser.pxi", line 625, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:64741)
File "parser.pxi", line 565, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:64084)
XMLSyntaxError: Failed to parse QName 'ce:', line 911, column 57

Parsing file 'LDS_Book_of_Mormon.html' as HTML
Forcing LDS_Book_of_Mormon.html into XHTML namespace
Stripping comments and meta tags from LDS_Book_of_Mormon.html
Failed to parse content in LDS_Book_of_Mormon.html
Traceback (most recent call last):
File "site-packages\calibre\ebooks\oeb\reader.py", line 159, in _manifest_prune_invalid
File "site-packages\calibre\ebooks\oeb\base.py", line 1014, in fget
File "site-packages\calibre\ebooks\oeb\base.py", line 871, in _parse_xhtml
File "lxml.etree.pyx", line 2538, in lxml.etree.fromstring (src/lxml/lxml.etree.c:48266)
File "parser.pxi", line 1536, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:71653)
File "parser.pxi", line 1408, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:70449)
File "parser.pxi", line 898, in lxml.etree._BaseParser._parseUnicodeDoc (src/lxml/lxml.etree.c:67144)
File "parser.pxi", line 539, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:63820)
File "parser.pxi", line 625, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:64741)
File "parser.pxi", line 565, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:64084)
XMLSyntaxError: Failed to parse QName 'ft:', line 908, column 96

Parsing styles.css ...
Spine item 'id1' not found
Python function terminated unexpectedly
Spine is empty (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 96, in main
File "site-packages\calibre\gui2\convert\gui_conversion.py", line 21, in gui_convert
File "site-packages\calibre\ebooks\conversion\plumber.py", line 754, in run
File "site-packages\calibre\ebooks\conversion\plumber.py", line 877, in create_oebbook
File "site-packages\calibre\ebooks\oeb\reader.py", line 72, in __call__
File "site-packages\calibre\ebooks\oeb\reader.py", line 589, in _all_from_opf
File "site-packages\calibre\ebooks\oeb\reader.py", line 289, in _spine_from_opf
calibre.ebooks.oeb.base.OEBError: Spine is empty



Can anyone help me? I am attaching the file as well.
yessirrom is offline   Reply With Quote
Old 01-18-2010, 09:20 PM   #2
rcuadro
Wizard
rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.
 
rcuadro's Avatar
 
Posts: 1,688
Karma: 874275
Join Date: Nov 2008
Location: Virginia Beach, VA
Device: Kindle DX
I tried it and got the same error...
rcuadro is offline   Reply With Quote
Old 01-19-2010, 02:21 AM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 25,930
Karma: 5036099
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That file has lots and lots of invalid markup, specifically namespaced tags with undeclared namespaces. The XML parser calibre uses can't handle that. And because of the large amounts of it, writing a workaround is not possible.
kovidgoyal is offline   Reply With Quote
Old 01-19-2010, 04:30 PM   #4
yessirrom
Connoisseur
yessirrom will become famous soon enoughyessirrom will become famous soon enoughyessirrom will become famous soon enoughyessirrom will become famous soon enoughyessirrom will become famous soon enoughyessirrom will become famous soon enough
 
yessirrom's Avatar
 
Posts: 61
Karma: 640
Join Date: Jun 2009
Device: HTC HD2 and i-Pad
This file works perfectly in mobipocket. Any advice on how to fix the errors.
yessirrom is offline   Reply With Quote
Old 01-19-2010, 04:57 PM   #5
texasnightowl
Guru
texasnightowl ought to be getting tired of karma fortunes by now.texasnightowl ought to be getting tired of karma fortunes by now.texasnightowl ought to be getting tired of karma fortunes by now.texasnightowl ought to be getting tired of karma fortunes by now.texasnightowl ought to be getting tired of karma fortunes by now.texasnightowl ought to be getting tired of karma fortunes by now.texasnightowl ought to be getting tired of karma fortunes by now.texasnightowl ought to be getting tired of karma fortunes by now.texasnightowl ought to be getting tired of karma fortunes by now.texasnightowl ought to be getting tired of karma fortunes by now.texasnightowl ought to be getting tired of karma fortunes by now.
 
Posts: 633
Karma: 1001556
Join Date: Jul 2008
Location: Texas
Device: K3(KKSO), iPad 3 (Sold: K1, Cybook Opus)
If you can convert it to html then maybe import it into Sigil to go to epub? I haven't used Sigil yet though.
texasnightowl 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
TOC disappears when converting from .prc to epub baselworld Calibre 3 09-06-2010 02:10 AM
Error converting to PDF from EPub and PRC gauravj Calibre 3 05-24-2010 02:07 AM
Problem Converting prc to epub and fetching news kinder232 Calibre 2 03-11-2010 03:18 AM
Converting prc -> epub takes 10 hours... jayle Calibre 9 09-22-2009 03:34 PM


All times are GMT -4. The time now is 08:32 AM.


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