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 08-12-2012, 02:45 PM   #1
benny2168
Junior Member
benny2168 began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Aug 2012
Device: Android Nook Reader
Post Converting from MOBI to any format

Hello all,

I have a Kindle book that I wanted to convert to EPUB. After removing DRM from the original AZW file while importing to Calibre, I open the new MOBI file to make sure it was readable and such. Then I tried converting to EPUB and got this output:


Spoiler:
calibre, version 0.8.63 (darwin, isfrozen: True)
Conversion Error: Failed: Convert book 1 of 1 (Robbins Basic Pathology - Inkling Enhanced (Robbins Pathology))

Convert book 1 of 1 (Robbins Basic Pathology - Inkling Enhanced (Robbins Pathology))
Resolved conversion options
calibre version: 0.8.63
{'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'/var/folders/8q/0gr792ts6_b3_4v9lfzj62gc0000gn/T/calibre_0.8.63_tmp_2qpeq8/eZ0o5j.jpeg',
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'dont_split_on_page_breaks': False,
'duplicate_links_in_toc': False,
'enable_heuristics': False,
'epub_flatten': False,
'extra_css': None,
'extract_to': None,
'filter_css': u'',
'fix_indents': True,
'flow_size': 260,
'font_size_mapping': None,
'format_scene_breaks': True,
'html_unwrap_factor': 0.4,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x107870390>,
'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,
'no_chapters_in_toc': False,
'no_default_epub_cover': False,
'no_inline_navbars': False,
'no_svg_cover': False,
'output_profile': <calibre.customize.profiles.GenericEink object at 0x107870790>,
'page_breaks_before': u"//*[name()='h1' or name()='h2']",
'prefer_metadata_cover': False,
'preserve_cover_aspect_ratio': False,
'pretty_print': True,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': u'/var/folders/8q/0gr792ts6_b3_4v9lfzj62gc0000gn/T/calibre_0.8.63_tmp_2qpeq8/vXQ7UM.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,
'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,
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: MOBI Input running
on /var/folders/8q/0gr792ts6_b3_4v9lfzj62gc0000gn/T/calibre_0.8.63_tmp_2qpeq8/vhbn4J.mobi
Extracting text...
Adding anchors...
Extracting images...
Cleaning up HTML...
Parsing HTML...
Converting style information to CSS...
Creating OPF...
Parsing all content...
Parsing CR!CXWGVQ0YN50KB1DR5RFVGNGB3XE3.html ...
Forcing CR!CXWGVQ0YN50KB1DR5RFVGNGB3XE3.html into XHTML namespace
Parsing styles.css ...
Reading TOC from NCX...
Merging user specified metadata...
Detecting structure...
Python function terminated unexpectedly: invalid literal for int() with base 16: 'h6'
Flattening CSS and remapping font sizes...
Source base font size is 12.00000pt
Traceback (most recent call last):
File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py", line 147, in main
return run_entry_point()
File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py", line 116, in run_entry_point
return getattr(pmod, func)()
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 1082, in run
File "site-packages/calibre/ebooks/oeb/transforms/flatcss.py", line 148, in __call__
File "site-packages/calibre/ebooks/oeb/transforms/flatcss.py", line 454, in flatten_spine
File "site-packages/calibre/ebooks/oeb/transforms/flatcss.py", line 401, in replace_css
File "site-packages/cssutils/__init__.py", line 179, in parseString
File "site-packages/cssutils/parse.py", line 148, in parseString
File "site-packages/cssutils/css/cssstylesheet.py", line 355, in _setCssTextWithEncodingOverride
File "site-packages/cssutils/css/cssstylesheet.py", line 303, in _setCssText
File "site-packages/cssutils/util.py", line 413, in _parse
File "site-packages/cssutils/css/cssstylesheet.py", line 271, in ruleset
File "site-packages/cssutils/css/cssstylerule.py", line 150, in _setCssText
File "site-packages/cssutils/css/cssstyledeclaration.py", line 183, in __setattr__
File "site-packages/cssutils/css/cssstyledeclaration.py", line 323, in _setCssText
File "site-packages/cssutils/util.py", line 413, in _parse
File "site-packages/cssutils/css/cssstyledeclaration.py", line 299, in ident
File "site-packages/cssutils/css/property.py", line 160, in _setCssText
File "site-packages/cssutils/css/property.py", line 259, in _setPropertyValue
File "site-packages/cssutils/css/value.py", line 169, in _setCssText
File "site-packages/cssutils/prodparser.py", line 493, in parse
File "site-packages/cssutils/css/value.py", line 833, in <lambda>
File "site-packages/cssutils/css/value.py", line 236, in __init__
File "site-packages/cssutils/css/value.py", line 393, in _setCssText
ValueError: invalid literal for int() with base 16: 'h6'


I get errors when trying to convert to any other format as well (EPUB, MOBI, AZW, PDF, etc)

Any idea what might be wrong?

Last edited by GRiker; 08-12-2012 at 02:52 PM. Reason: Put lengthy debug info in spoiler
benny2168 is offline   Reply With Quote
Old 08-12-2012, 10:34 PM   #2
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: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://bugs.launchpad.net/calibre/+bug/1035633
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting from .doc format to mobi JollyRoger Conversion 6 07-18-2012 10:51 AM
Converting tables to Kindle/Mobi format jpaulm Conversion 3 06-10-2011 09:23 AM
on converting .mobi dictionaries to pb format teofrast PocketBook 8 02-28-2011 04:26 PM
Converting ebooks to mobi format - invalidate warranty? copyrite Amazon Kindle 14 12-31-2010 02:15 PM
preserve table format when converting mobi to rtf moogoogai Calibre 4 02-26-2010 12:50 PM


All times are GMT -4. The time now is 06:21 PM.


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