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 05-13-2021, 03:14 PM   #1
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,976
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Errorconverting ePub > Mobi with really old version

Quote:
Originally Posted by wsb View Post
I need to convert and epub to mobi but it gives endless errors via caliber

Spoiler:
calibre, version 3.28.0 (win32, embedded-python: True)
Conversion error: Failed: Convert book 1 of 1 (The Adverse Childhood Experiences Recovery Workbook)

Convert book 1 of 1 (The Adverse Childhood Experiences Recovery Workbook)
Conversion options changed from defaults: can someone help me with this? I can share the book i Purchased
output_profile: 'generic_eink'
cover: u'C:\\Users\\\AppData\\Local\\Temp\\calibre_gec0e3 \\u1jfqj.jpeg'
verbose: 2
read_metadata_from_opf: u'C:\\Users\\Wasaba\\AppData\\Local\\Temp\\calibre _gec0e3\\eqwwsj.opf'
Resolved conversion options
calibre version: 3.28.0
{'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'C:\\Users\\Wasaba\\AppData\\Local\\Temp\\calibre _gec0e3\\u1jfqj.jpeg',
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'dont_compress': False,
'duplicate_links_in_toc': False,
'embed_all_fonts': False,
'embed_font_family': None,
'enable_heuristics': False,
'expand_css': False,
'extra_css': None,
'extract_to': None,
'filter_css': u'',
'fix_indents': True,
'font_size_mapping': None,
'format_scene_breaks': True,
'html_unwrap_factor': 0.4,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x054CFE50>,
'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,
'mobi_file_type': u'old',
'mobi_ignore_margins': False,
'mobi_keep_original_images': False,
'mobi_toc_at_start': False,
'no_chapters_in_toc': False,
'no_inline_navbars': False,
'no_inline_toc': False,
'output_profile': <calibre.customize.profiles.GenericEink object at 0x0312E070>,
'page_breaks_before': u'/',
'personal_doc': u'[PDOC]',
'prefer_author_sort': False,
'prefer_metadata_cover': False,
'pretty_print': False,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': u'C:\\Users\\\\AppData\\Local\\Temp\\calibre_gec0e 3\\eqwwsj.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,
'share_not_sync': False,
'smarten_punctuation': False,
'sr1_replace': None,
'sr1_search': None,
'sr2_replace': None,
'sr2_search': None,
'sr3_replace': None,
'sr3_search': None,
'start_reading_at': None,
'subset_embedded_fonts': False,
'tags': None,
'timestamp': None,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 6,
'toc_title': None,
'transform_css_rules': '[]',
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: EPUB Input running

Found HTML cover titlepage.xhtml
Parsing all content...
Parsing text/part0000_split_018.html ...
Parsing text/part0000_split_019.html ...
Parsing stylesheet.css ...
Parsing text/part0000_split_045.html ...
Parsing text/part0000_split_020.html ...
Parsing text/part0000_split_021.html ...
Parsing text/part0000_split_041.html ...
Parsing text/part0000_split_022.html ...
Parsing page_styles.css ...
Parsing text/part0000_split_023.html ...
Parsing text/part0000_split_037.html ...
Parsing text/part0000_split_040.html ...
Parsing text/part0000_split_024.html ...
Parsing text/part0000_split_001.html ...
Parsing text/part0000_split_025.html ...
Parsing text/part0000_split_011.html ...
Parsing text/part0000_split_044.html ...
Parsing text/part0000_split_026.html ...
Parsing text/part0000_split_027.html ...
Parsing text/part0000_split_043.html ...
Parsing text/part0000_split_028.html ...
Parsing text/part0000_split_029.html ...
Parsing text/part0000_split_030.html ...
Parsing text/part0000_split_031.html ...
Parsing text/part0000_split_038.html ...
Parsing text/part0000_split_032.html ...
Parsing titlepage.xhtml ...
Parsing text/part0000_split_033.html ...
Parsing text/part0000_split_042.html ...
Parsing text/part0000_split_034.html ...
Parsing text/part0000_split_035.html ...
Parsing text/part0000_split_002.html ...
Parsing text/part0000_split_036.html ...
Parsing text/part0000_split_004.html ...
Parsing text/part0000_split_039.html ...
Parsing text/part0000_split_005.html ...
Parsing text/part0000_split_006.html ...
Parsing text/part0000_split_007.html ...
Parsing text/part0000_split_008.html ...
Parsing text/part0000_split_009.html ...
Parsing text/part0000_split_010.html ...
Parsing text/part0000_split_000.html ...
Parsing text/part0000_split_012.html ...
Parsing text/part0000_split_013.html ...
Parsing text/part0000_split_046.html ...
Parsing text/part0000_split_014.html ...
Parsing text/part0000_split_015.html ...
Parsing text/part0000_split_016.html ...
Parsing text/part0000_split_017.html ...
Parsing text/part0000_split_003.html ...
Reading TOC from NCX...
Merging user specified metadata...
Detecting structure...
Flattening CSS and remapping font sizes...
Source base font size is 12.00000pt
Removing fake margins...
Found 1 items of level: div_4
Found 47 items of level: div_1
Found 57 items of level: div_2
Found 15 items of level: div_3
Found 1541 items of level: p_2
Found 253 items of level: p_6
Found 221 items of level: p_4
Found 140 items of level: p_8
Ignoring level div_4
Ignoring level div_3
div_1 left margin stats: Counter({u'': 39})
div_1 right margin stats: Counter({u'': 39})
div_2 left margin stats: Counter({u'': 2})
div_2 right margin stats: Counter({u'': 2})
Negative text indent detected at level p_2, ignoring this level
p_6 left margin stats: Counter({u'0': 233, u'12px': 20})
p_6 right margin stats: Counter({u'0': 233, u'12px': 20})
Negative text indent detected at level p_4, ignoring this level
p_8 left margin stats: Counter({u'0': 140})
p_8 right margin stats: Counter({u'0': 140})
Cleaning up manifest...
Trimming unused files from manifest...
Trimming u'titlepage.xhtml' from manifest
Creating MOBI Output...
Serializing resources...
Creating MOBI 6 output
Generating in-line TOC...
Applying case-transforming CSS...
Parsing manglecase.css ...
Parsing tocstyle.css ...
Rasterizing SVG images...
Converting XHTML to Mobipocket markup...
Python function terminated unexpectedly
Argument must be bytes or unicode, got 'float' (Error Code: 1)
Traceback (most recent call last):
File "site.py", line 101, in main
File "site.py", line 78, in run_entry_point
File "site-packages\calibre\utils\ipc\worker.py", line 195, in main
File "site-packages\calibre\gui2\convert\gui_conversion.py", line 33, in gui_convert_override
File "site-packages\calibre\gui2\convert\gui_conversion.py", line 26, in gui_convert
File "site-packages\calibre\ebooks\conversion\plumber.py", line 1270, in run
File "site-packages\calibre\ebooks\conversion\plugins\mobi_ou tput.py", line 213, in convert
File "site-packages\calibre\ebooks\conversion\plugins\mobi_ou tput.py", line 245, in write_mobi
File "site-packages\calibre\ebooks\mobi\mobiml.py", line 125, in __call__
File "site-packages\calibre\ebooks\mobi\mobiml.py", line 136, in mobimlize_spine
File "site-packages\calibre\ebooks\mobi\mobiml.py", line 580, in mobimlize_elem
File "site-packages\calibre\ebooks\mobi\mobiml.py", line 580, in mobimlize_elem
File "site-packages\calibre\ebooks\mobi\mobiml.py", line 580, in mobimlize_elem
File "site-packages\calibre\ebooks\mobi\mobiml.py", line 578, in mobimlize_elem
File "site-packages\calibre\ebooks\mobi\mobiml.py", line 296, in mobimlize_content
File "src/lxml/lxml.etree.pyx", line 3127, in lxml.etree.SubElement (src\lxml\lxml.etree.c:78512)
File "src/lxml/apihelpers.pxi", line 203, in lxml.etree._makeSubElement (src\lxml\lxml.etree.c:18851)
File "src/lxml/apihelpers.pxi", line 198, in lxml.etree._makeSubElement (src\lxml\lxml.etree.c:18777)
File "src/lxml/apihelpers.pxi", line 302, in lxml.etree._initNodeAttributes (src\lxml\lxml.etree.c:20259)
File "src/lxml/apihelpers.pxi", line 316, in lxml.etree._addAttributeToNode (src\lxml\lxml.etree.c:20597)
File "src/lxml/apihelpers.pxi", line 1441, in lxml.etree._utf8 (src\lxml\lxml.etree.c:31851)
TypeError: Argument must be bytes or unicode, got 'float'
If the problem is with Calibre, you won't get that ePub to convert. You really should be using the latest version. What system and OS version are you using? Are you able to try the latest version 5.x? If not, are you able to try version 4.23?
JSWolf is offline   Reply With Quote
Old 05-14-2021, 04:38 AM   #2
wsb
Member
wsb began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Jul 2020
Device: kindle
Quote:
Originally Posted by JSWolf View Post
If the problem is with Calibre, you won't get that ePub to convert. You really should be using the latest version. What system and OS version are you using? Are you able to try the latest version 5.x? If not, are you able to try version 4.23?
Thank you for the new post, thread. I did try it with the latest version still the same error.
wsb is offline   Reply With Quote
Advert
Old 05-14-2021, 04:51 AM   #3
lkmiller
Laura
lkmiller ought to be getting tired of karma fortunes by now.lkmiller ought to be getting tired of karma fortunes by now.lkmiller ought to be getting tired of karma fortunes by now.lkmiller ought to be getting tired of karma fortunes by now.lkmiller ought to be getting tired of karma fortunes by now.lkmiller ought to be getting tired of karma fortunes by now.lkmiller ought to be getting tired of karma fortunes by now.lkmiller ought to be getting tired of karma fortunes by now.lkmiller ought to be getting tired of karma fortunes by now.lkmiller ought to be getting tired of karma fortunes by now.lkmiller ought to be getting tired of karma fortunes by now.
 
lkmiller's Avatar
 
Posts: 1,300
Karma: 22770070
Join Date: Nov 2009
Device: Kobo Sage, Kobo Elipsa, Nook Glowlight Plus 7.8", Kindle Oasis 2
I don't see any mention in the log about DRM, but just to be sure... this epub is DRM-free and can be opened and read with the calibre ebook viewer?
lkmiller is offline   Reply With Quote
Old 05-14-2021, 06:06 AM   #4
mbovenka
Wizard
mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.
 
Posts: 2,018
Karma: 13471689
Join Date: Oct 2007
Location: Almere, The Netherlands
Device: Kobo Sage
Quote:
Originally Posted by lkmiller View Post
I don't see any mention in the log about DRM, but just to be sure... this epub is DRM-free and can be opened and read with the calibre ebook viewer?
Looking at the log file, it has already reached the output stage (creating the MOBI from the XHTML). A DRM-ed EPUB would not get that far.

To the OP: You could try an EPUB-to-EPUB conversion first, and if that works, try converting the resulting EPUB to MOBI.
mbovenka is offline   Reply With Quote
Old 05-14-2021, 08:48 AM   #5
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,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://www.mobileread.com/forums/sh...d.php?t=186697
kovidgoyal is offline   Reply With Quote
Advert
Old 05-14-2021, 11:10 AM   #6
wsb
Member
wsb began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Jul 2020
Device: kindle
Quote:
Originally Posted by lkmiller View Post
I don't see any mention in the log about DRM, but just to be sure... this epub is DRM-free and can be opened and read with the calibre ebook viewer?
Thank you, It's already DDmed, but I can convert it to a mobi. Yes, I can read it on calibre but not on my Kindle.
wsb is offline   Reply With Quote
Old 05-14-2021, 11:31 AM   #7
wsb
Member
wsb began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Jul 2020
Device: kindle
Log and book

Quote:
Originally Posted by kovidgoyal View Post
The error report
Spoiler:
calibre, version 3.28.0 (win32, embedded-python: True)
Conversion error: Failed: Convert book 1 of 1 (The Adverse Childhood Experiences Recovery Workbook)

Convert book 1 of 1 (The Adverse Childhood Experiences Recovery Workbook)
Conversion options changed from defaults:
output_profile: 'generic_eink'
cover: u'C:\\Users\\ABC\\AppData\\Local\\Temp\\calibre_hq ionj\\6zng3v.jpeg'
verbose: 2
read_metadata_from_opf: u'C:\\Users\\ABC\\AppData\\Local\\Temp\\calibre_hq ionj\\glfsla.opf'
Resolved conversion options
calibre version: 3.28.0
{'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'C:\\Users\\ABC\\AppData\\Local\\Temp\\calibre_hq ionj\\6zng3v.jpeg',
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'dont_compress': False,
'duplicate_links_in_toc': False,
'embed_all_fonts': False,
'embed_font_family': None,
'enable_heuristics': False,
'expand_css': False,
'extra_css': None,
'extract_to': None,
'filter_css': u'',
'fix_indents': True,
'font_size_mapping': None,
'format_scene_breaks': True,
'html_unwrap_factor': 0.4,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x05366E50>,
'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,
'mobi_file_type': u'old',
'mobi_ignore_margins': False,
'mobi_keep_original_images': False,
'mobi_toc_at_start': False,
'no_chapters_in_toc': False,
'no_inline_navbars': False,
'no_inline_toc': False,
'output_profile': <calibre.customize.profiles.GenericEink object at 0x02E5E070>,
'page_breaks_before': u'/',
'personal_doc': u'[PDOC]',
'prefer_author_sort': False,
'prefer_metadata_cover': False,
'pretty_print': False,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': u'C:\\Users\\ABC\\AppData\\Local\\Temp\\calibre_hq ionj\\glfsla.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,
'share_not_sync': False,
'smarten_punctuation': False,
'sr1_replace': None,
'sr1_search': None,
'sr2_replace': None,
'sr2_search': None,
'sr3_replace': None,
'sr3_search': None,
'start_reading_at': None,
'subset_embedded_fonts': False,
'tags': None,
'timestamp': None,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 6,
'toc_title': None,
'transform_css_rules': '[]',
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: EPUB Input running
on C:\Users\ABC\AppData\Local\Temp\calibre_hqionj\rzv w9w.epub
Found HTML cover titlepage.xhtml
Parsing all content...
Parsing OEBPS/EPUB_ACErWkbk_split_020.xhtml ...
Parsing OEBPS/EPUB_ACErWkbk_split_037.xhtml ...
Parsing OEBPS/EPUB_ACErWkbk_split_021.xhtml ...
Parsing OEBPS/EPUB_ACErWkbk_split_022.xhtml ...
Parsing OEBPS/EPUB_ACErWkbk_split_036.xhtml ...
Parsing OEBPS/EPUB_ACErWkbk_split_023.xhtml ...
Parsing OEBPS/EPUB_ACErWkbk_split_024.xhtml ...
Parsing OEBPS/EPUB_ACErWkbk_split_035.xhtml ...
Parsing OEBPS/EPUB_ACErWkbk_split_025.xhtml ...
Parsing OEBPS/EPUB_ACErWkbk_split_046.xhtml ...
Parsing OEBPS/EPUB_ACErWkbk_split_026.xhtml ...
Parsing OEBPS/EPUB_ACErWkbk_split_034.xhtml ...
Parsing OEBPS/EPUB_ACErWkbk_split_027.xhtml ...
Parsing OEBPS/EPUB_ACErWkbk_split_028.xhtml ...
Parsing OEBPS/EPUB_ACErWkbk_split_033.xhtml ...
Parsing OEBPS/EPUB_ACErWkbk_split_030.xhtml ...
Parsing OEBPS/EPUB_ACErWkbk_split_032.xhtml ...
Parsing OEBPS/EPUB_ACErWkbk_split_031.xhtml ...
Parsing OEBPS/EPUB_ACErWkbk_split_000.xhtml ...
Parsing OEBPS/EPUB_ACErWkbk_split_001.xhtml ...
Parsing OEBPS/EPUB_ACErWkbk_split_002.xhtml ...
Parsing OEBPS/EPUB_ACErWkbk_split_003.xhtml ...
Parsing OEBPS/EPUB_ACErWkbk_split_045.xhtml ...
Parsing OEBPS/EPUB_ACErWkbk_split_004.xhtml ...
Parsing OEBPS/EPUB_ACErWkbk_split_029.xhtml ...
Parsing OEBPS/EPUB_ACErWkbk_split_005.xhtml ...
Parsing OEBPS/EPUB_ACErWkbk_split_006.xhtml ...
Parsing OEBPS/EPUB_ACErWkbk_split_007.xhtml ...
Parsing OEBPS/EPUB_ACErWkbk_split_008.xhtml ...
Parsing OEBPS/EPUB_ACErWkbk_split_043.xhtml ...
Parsing OEBPS/EPUB_ACErWkbk_split_009.xhtml ...
Parsing page_styles.css ...
Parsing OEBPS/EPUB_ACErWkbk_split_010.xhtml ...
Parsing stylesheet.css ...
Parsing OEBPS/EPUB_ACErWkbk_split_042.xhtml ...
Parsing OEBPS/EPUB_ACErWkbk_split_011.xhtml ...
Parsing OEBPS/EPUB_ACErWkbk_split_012.xhtml ...
Parsing OEBPS/EPUB_ACErWkbk_split_041.xhtml ...
Parsing OEBPS/EPUB_ACErWkbk_split_013.xhtml ...
Parsing OEBPS/EPUB_ACErWkbk_split_044.xhtml ...
Parsing OEBPS/EPUB_ACErWkbk_split_014.xhtml ...
Parsing OEBPS/EPUB_ACErWkbk_split_040.xhtml ...
Parsing OEBPS/EPUB_ACErWkbk_split_015.xhtml ...
Parsing OEBPS/EPUB_ACErWkbk_split_016.xhtml ...
Parsing titlepage.xhtml ...
Parsing OEBPS/EPUB_ACErWkbk_split_039.xhtml ...
Parsing OEBPS/EPUB_ACErWkbk_split_017.xhtml ...
Parsing OEBPS/EPUB_ACErWkbk_split_018.xhtml ...
Parsing OEBPS/EPUB_ACErWkbk_split_038.xhtml ...
Parsing OEBPS/EPUB_ACErWkbk_split_019.xhtml ...
Reading TOC from NCX...
Merging user specified metadata...
Detecting structure...
Flattening CSS and remapping font sizes...
Source base font size is 12.00000pt
Removing fake margins...
Found 47 items of level: div_1
Found 11 items of level: div_2
Found 14 items of level: div_3
Found 253 items of level: p_6
Found 221 items of level: p_4
Found 1541 items of level: p_2
Found 140 items of level: p_8
Ignoring level div_3
div_1 left margin stats: Counter({u'': 38})
div_1 right margin stats: Counter({u'': 38})
div_2 left margin stats: Counter({u'': 2})
div_2 right margin stats: Counter({u'': 2})
p_6 left margin stats: Counter({u'0': 253})
p_6 right margin stats: Counter({u'0': 253})
Negative text indent detected at level p_4, ignoring this level
Negative text indent detected at level p_2, ignoring this level
p_8 left margin stats: Counter({u'0': 140})
p_8 right margin stats: Counter({u'0': 140})
Cleaning up manifest...
Trimming unused files from manifest...
Trimming u'titlepage.xhtml' from manifest
Creating MOBI Output...
Serializing resources...
Creating MOBI 6 output
Generating in-line TOC...
Applying case-transforming CSS...
Parsing manglecase.css ...
Parsing tocstyle.css ...
Rasterizing SVG images...
Converting XHTML to Mobipocket markup...
Python function terminated unexpectedly
Argument must be bytes or unicode, got 'float' (Error Code: 1)
Traceback (most recent call last):
File "site.py", line 101, in main
File "site.py", line 78, in run_entry_point
File "site-packages\calibre\utils\ipc\worker.py", line 195, in main
File "site-packages\calibre\gui2\convert\gui_conversion.py", line 33, in gui_convert_override
File "site-packages\calibre\gui2\convert\gui_conversion.py", line 26, in gui_convert
File "site-packages\calibre\ebooks\conversion\plumber.py", line 1270, in run
File "site-packages\calibre\ebooks\conversion\plugins\mobi_ou tput.py", line 213, in convert
File "site-packages\calibre\ebooks\conversion\plugins\mobi_ou tput.py", line 245, in write_mobi
File "site-packages\calibre\ebooks\mobi\mobiml.py", line 125, in __call__
File "site-packages\calibre\ebooks\mobi\mobiml.py", line 136, in mobimlize_spine
File "site-packages\calibre\ebooks\mobi\mobiml.py", line 580, in mobimlize_elem
File "site-packages\calibre\ebooks\mobi\mobiml.py", line 580, in mobimlize_elem
File "site-packages\calibre\ebooks\mobi\mobiml.py", line 580, in mobimlize_elem
File "site-packages\calibre\ebooks\mobi\mobiml.py", line 578, in mobimlize_elem
File "site-packages\calibre\ebooks\mobi\mobiml.py", line 296, in mobimlize_content
File "src/lxml/lxml.etree.pyx", line 3127, in lxml.etree.SubElement (src\lxml\lxml.etree.c:78512)
File "src/lxml/apihelpers.pxi", line 203, in lxml.etree._makeSubElement (src\lxml\lxml.etree.c:18851)
File "src/lxml/apihelpers.pxi", line 198, in lxml.etree._makeSubElement (src\lxml\lxml.etree.c:18777)
File "src/lxml/apihelpers.pxi", line 302, in lxml.etree._initNodeAttributes (src\lxml\lxml.etree.c:20259)
File "src/lxml/apihelpers.pxi", line 316, in lxml.etree._addAttributeToNode (src\lxml\lxml.etree.c:20597)
File "src/lxml/apihelpers.pxi", line 1441, in lxml.etree._utf8 (src\lxml\lxml.etree.c:31851)
TypeError: Argument must be bytes or unicode, got 'float'


the document to be converted from Epub to mobi
[link removed]

Last edited by pdurrant; 05-14-2021 at 01:14 PM. Reason: link to copyright book
wsb is offline   Reply With Quote
Old 05-14-2021, 12:23 PM   #8
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,976
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
What happens if you convert to KF8 (AZW3) instead of Mobi? Do you really need Mobi? Is your Kindle that old that it doesn't support KF8?
JSWolf is offline   Reply With Quote
Old 05-14-2021, 01:13 PM   #9
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 71,506
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
Quote:
Originally Posted by wsb View Post
the document to be converted from Epub to mobi
[link removed]
As the book is still in copyright, you'll need to make a bug report on the calibre web site so that you can attach the book as a private attachment.
pdurrant is offline   Reply With Quote
Old 05-14-2021, 01:33 PM   #10
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 6,496
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
I took a look at the calibre source code to see what could cause that error. I found that it will happen if the text color is set to a decimal value, which is not allowed for a color. For example this will trigger that error:

Code:
<p style="color:1.5">Lorem ipsum dolor sit amet</p>
This will fail to convert to MOBI even with the current calibre version.

You should be able to find the problem in the original book file by opening the EPUB in the calibre editor and using the "Check book" tool.

Last edited by jhowell; 05-14-2021 at 01:39 PM.
jhowell is online now   Reply With Quote
Old 05-14-2021, 03:42 PM   #11
wsb
Member
wsb began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Jul 2020
Device: kindle
Quote:
Originally Posted by jhowell View Post
I took a look at the calibre source code to see what could cause that error. I found that it will happen if the text color is set to a decimal value, which is not allowed for a color. For example this will trigger that error:

Code:
<p style="color:1.5">Lorem ipsum dolor sit amet</p>
This will fail to convert to MOBI even with the current calibre version.

You should be able to find the problem in the original book file by opening the EPUB in the calibre editor and using the "Check book" tool.
Thank you, I've tried this but still it fails to do so.
wsb is offline   Reply With Quote
Old 05-14-2021, 03:44 PM   #12
wsb
Member
wsb began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Jul 2020
Device: kindle
Quote:
Originally Posted by JSWolf View Post
What happens if you convert to KF8 (AZW3) instead of Mobi? Do you really need Mobi? Is your Kindle that old that it doesn't support KF8?
I use the app on my iPad and kindle app doesn't support anything but Mobi format.
wsb is offline   Reply With Quote
Old 05-14-2021, 04:34 PM   #13
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 35,401
Karma: 145435140
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by wsb View Post
I use the app on my iPad and kindle app doesn't support anything but Mobi format.
Does epubcheck now give your epub file a clean bill of health?

Have you tried renaming the epub to .txt from .epub and emailing it to your Kindle apps email address? You'll have to jump through the whitelisting hoops and so forth as well.
DNSB is offline   Reply With Quote
Old 05-14-2021, 04:49 PM   #14
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,976
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by wsb View Post
I use the app on my iPad and kindle app doesn't support anything but Mobi format.
Why not use Books (formerly iBooks) and read the ePub directly?
JSWolf is offline   Reply With Quote
Old 05-15-2021, 12:37 PM   #15
wsb
Member
wsb began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Jul 2020
Device: kindle
Quote:
Originally Posted by mbovenka View Post
Looking at the log file, it has already reached the output stage (creating the MOBI from the XHTML). A DRM-ed EPUB would not get that far.

To the OP: You could try an EPUB-to-EPUB conversion first, and if that works, try converting the resulting EPUB to MOBI.
I tried this - Thanks yet the same result. It already a 'free'.
wsb is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to check mobi file version? ajes Kindle Formats 14 07-16-2019 07:40 PM
18MB EPUB converts to 40MB Mobi! What can I do to reduce Mobi file size? perdman Conversion 11 12-09-2017 04:18 AM
? about which version of Kindle Gen to use to convert epub to mobi Gregg Bell Amazon Kindle 23 03-21-2013 03:23 PM
mobi > epub > mobi = changed line spacing? SampleAndy Conversion 3 03-01-2013 06:18 PM
Conversion from mobi (to mobi, or epub) breaks internal links bounder Conversion 1 10-09-2012 11:56 AM


All times are GMT -4. The time now is 01:16 PM.


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