Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-04-2010, 06:03 PM   #1
wallace.webmail
Junior Member
wallace.webmail began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jul 2010
Device: Sony Ereader PRS600
Can't convert MOBI to EPUB.. conversion FAILS

I have converted a bunch of my kindle books already.. but for some reason this one won't.

(FYI... I have already removed the DRM)

Here is what is says:


ERROR: Conversion Error: <b>Failed</b>: Convert book 1 of 1 (Holy Bible, New Living Translation)

Convert book 1 of 1 (Holy Bible, New Living Translation)
Resolved conversion options
calibre version: 0.7.7
{'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': '/var/folders/jo/joFr6G7ZFeSggh3nEffvWU+++TI/-Tmp-/calibre_0.7.7_usqvmA.jpeg',
'debug_pipeline': u'/Volumes/Macintosh HD/Users/WallyMAC/Desktop',
'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 0x6578b70>,
'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 0x6578d50>,
'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': '/var/folders/jo/joFr6G7ZFeSggh3nEffvWU+++TI/-Tmp-/calibre_0.7.7_iMeV_H.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}
Python function terminated unexpectedly: maximum recursion depth exceeded in cmp
InputFormatPlugin: MOBI Input running
on /Volumes/Macintosh HD/Users/WallyMAC/Calibre Library/Tyndale/Holy Bible, New Living Translation (14)/Holy Bible, New Living Translation - Tyndale.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.
Traceback (most recent call last):
File "/Applications/calibre-3.app/Contents/Resources/Python/lib/python2.6/site.py", line 147, in main
return run_entry_point()
File "/Applications/calibre-3.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 815, 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 332, in extract_content
File "site-packages/lxml/html/soupparser.py", line 23, in fromstring
File "site-packages/lxml/html/soupparser.py", line 67, in _parse
File "site-packages/lxml/html/soupparser.py", line 77, in _convert_tree
File "site-packages/lxml/html/soupparser.py", line 87, in _convert_children
File "site-packages/lxml/html/soupparser.py", line 87, in _convert_children
File "site-packages/lxml/html/soupparser.py", line 87, in _convert_childrenle "site-packages/lxml/html/soupparser.py", line 87, in _convert_children
File "site-packages/lxml/html/soupparser.py", line 86, in _convert_children
File "lxml.etree.pyx", line 2437, in lxml.etree.SubElement (src/lxml/lxml.etree.c:47345)
File "apihelpers.pxi", line 210, in lxml.etree._makeSubElement (src/lxml/lxml.etree.c:11391)
File "apihelpers.pxi", line 206, in lxml.etree._makeSubElement (src/lxml/lxml.etree.c:11339)
File "lxml.etree.pyx", line 1332, in lxml.etree._elementFactory (src/lxml/lxml.etree.c:37004)
File "classlookup.pxi", line 339, in lxml.etree._parser_class_lookup (src/lxml/lxml.etree.c:55127)
File "classlookup.pxi", line 396, in lxml.etree._custom_class_lookup (src/lxml/lxml.etree.c:55541)
File "site-packages/lxml/html/__init__.py", line 493, in lookup
RuntimeError: maximum recursion depth exceeded in cmp





Any insight?

Thanks.

Last edited by wallace.webmail; 07-16-2010 at 12:44 AM.
wallace.webmail is offline   Reply With Quote
Old 07-06-2010, 05:13 PM   #2
wallace.webmail
Junior Member
wallace.webmail began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jul 2010
Device: Sony Ereader PRS600
anyone??

anyone have any ideas on this?

Todd
wallace.webmail is offline   Reply With Quote
Advert
Old 07-07-2010, 01:09 AM   #3
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: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by wallace.webmail View Post
I have converted a bunch of my kindle books already.. but for some reason this one won't.

(FYI... I have already removed the DRM)

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.

Any insight?

Thanks.
Your DRM conversion was only 99.99% successful. This means you have some random bytes that are hanging around that didn't get decrypted. You can read 99.99% of the book in any reader and probably chalk up the rest to bad OCR conversion. But it prevents this book from being converted.

There are various reasons this happens, I know enough that I can say I don't know all the reasons it might have happened. One reason it happens is using a older version of mobidedrm, but even the most current version might have trouble with some files. You can see if you have the latest mobidedrm by Googling Apprentice Alf's Blog.

Just reading the mobidedrm change log (included inside each file) below, you can see the problems that keep occurring. View the mobidedrm.py as a text file to see your version/log.

Spoiler:
Code:
Changelog
#  0.01 - Initial version
#  0.02 - Huffdic compressed books were not properly decrypted
#  0.03 - Wasn't checking MOBI header length
#  0.04 - Wasn't sanity checking size of data record
#  0.05 - It seems that the extra data flags take two bytes not four
#  0.06 - And that low bit does mean something after all :-)
#  0.07 - The extra data flags aren't present in MOBI header < 0xE8 in size
#  0.08 - ...and also not in Mobi header version < 6
#  0.09 - ...but they are there with Mobi header version 6, header size 0xE4!
#  0.10 - Outputs unencrypted files as-is, so that when run as a Calibre
#         import filter it works when importing unencrypted files.
#         Also now handles encrypted files that don't need a specific PID.
#  0.11 - use autoflushed stdout and proper return values
#  0.12 - Fix for problems with metadata import as Calibre plugin, report errors
#  0.13 - Formatting fixes: retabbed file, removed trailing whitespace
#         and extra blank lines, converted CR/LF pairs at ends of each line,
#         and other cosmetic fixes.
#  0.14 - Working out when the extra data flags are present has been problematic
#         Versions 7 through 9 have tried to tweak the conditions, but have been
#         only partially successful. Closer examination of lots of sample
#         files reveals that a confusin has arisen because trailing data entries
#         are not encrypted, but it turns out that the multibyte entries
#         in utf8 file are encrypted. (Although neither kind gets compressed.)
#         This knowledge leads to a simplification of the test for the 
#         trailing data byte flags - version 5 and higher AND header size >= 0xE4.

PS. When posting a giant error log wrap the error log in code tags (the #) then wrap it in spoiler tags (the crossed out eye).
DoctorOhh is offline   Reply With Quote
Old 07-13-2010, 12:54 PM   #4
wallace.webmail
Junior Member
wallace.webmail began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jul 2010
Device: Sony Ereader PRS600
where, then, would I find the "99.99% correct" part of the book? I'd take that. But I can't find the new ePub file.

Are there settings I should try changing?

I am new here, but very computer savvy... just not ebook savvy,

Thanks!
wallace.webmail is offline   Reply With Quote
Old 07-13-2010, 01:35 PM   #5
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by dwanthny View Post
PS. When posting a giant error log wrap the error log in code tags (the #) then wrap it in spoiler tags (the crossed out eye).
PPS: You can do this now by hitting the edit key on the original post. It might make it easier for new and old readers to get to the bottom of the thread.
Starson17 is offline   Reply With Quote
Advert
Old 07-16-2010, 12:45 AM   #6
wallace.webmail
Junior Member
wallace.webmail began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jul 2010
Device: Sony Ereader PRS600
Done. Thanks guys.

Any thoughts on how to get the "99.9%" of the book?

Todd
wallace.webmail is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
epub to mobi conversion problems rcdc Calibre 5 09-18-2010 02:29 AM
To MOBI, Chapter detection fails? Works for EPUB Fmstrat Calibre 7 08-29-2010 05:37 PM
Epub to Mobi conversion MichaelGray Calibre 2 08-12-2010 01:08 PM
How good is Epub -> Mobi conversion really? AdrianM Amazon Kindle 26 07-31-2010 11:04 PM
Mobi (no DRM) fails to convert to epub richmgray Calibre 1 04-11-2010 07:11 PM


All times are GMT -4. The time now is 07:02 AM.


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