First, I apologize if I am making too much english errors in this message, but my native tongue is french and I mainly use english with spanish people...
I have rencently bought a Kobo Glo HD, and I am converting EPUB books to KEPUB before transferring them on the Glo. I use Calibre but I don't remember the plugin I use for this, I can check this at home if needed, as I currently am at work (and very productive as you can see!).
I have been able to convert about 100 books without any problem, but there is this one book for which I always have the same error message:
Spoiler:
calibre, version 2.38.0 (win32, isfrozen: True)
Erreur lors de la conversion: Échoué: Conversion du livre 1 sur 1 (Le cauchemar de l'épouvanteur)
Conversion du livre 1 sur 1 (Le cauchemar de l'épouvanteur)
B:\Program Files\Calibre2\pylib.zip\dateutil\parser.py:339: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
Resolved conversion options
calibre version: 2.38.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'B:\\Temp\\calibre_eztsj8\\svxfnp.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,
'embed_all_fonts': False,
'embed_font_family': None,
'enable_heuristics': False,
'epub_flatten': False,
'epub_inline_toc': False,
'epub_toc_at_end': False,
'expand_css': 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 0x00000000064CD6A0>,
'insert_blank_line': False,
'insert_blank_line_size': 0.5,
'insert_metadata': False,
'isbn': None,
'italicize_common_cases': True,
'keep_ligatures': False,
'kepub_clean_markup': True,
'kepub_disable_hyphenation': False,
'kepub_hyphenate': True,
'kepub_replace_lang': True,
'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.TabletOutput object at 0x0000000006522160>,
'page_breaks_before': u'/',
'prefer_metadata_cover': False,
'preserve_cover_aspect_ratio': False,
'pretty_print': True,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': u'B:\\Temp\\calibre_eztsj8\\hluphm.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,
'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,
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: EPUB Input running
on B:\Temp\calibre_eztsj8\qucjao.epub
Found HTML cover OEBPS/Text/titlepage_u1.xhtml
Parsing all content...
Parsing OEBPS/Text/cauchemar_epouvanteur_split_011.htm ...
Found microsoft markup, cleaning...
Parsing OEBPS/Text/cauchemar_epouvanteur_split_000.htm ...
Found microsoft markup, cleaning...
Parsing OEBPS/Text/cauchemar_epouvanteur_split_014.htm ...
Found microsoft markup, cleaning...
Parsing OEBPS/Text/cauchemar_epouvanteur_split_033.htm ...
Found microsoft markup, cleaning...
Parsing OEBPS/Text/cauchemar_epouvanteur_split_021.htm ...
Found microsoft markup, cleaning...
Parsing OEBPS/Text/cauchemar_epouvanteur_split_016.htm ...
Found microsoft markup, cleaning...
Parsing OEBPS/Text/cauchemar_epouvanteur_split_030.htm ...
Found microsoft markup, cleaning...
Parsing OEBPS/Text/cauchemar_epouvanteur_split_017.htm ...
Found microsoft markup, cleaning...
Parsing OEBPS/Text/cauchemar_epouvanteur_split_036.htm ...
Found microsoft markup, cleaning...
Parsing OEBPS/Text/cauchemar_epouvanteur_split_035.htm ...
Found microsoft markup, cleaning...
Parsing OEBPS/Text/cauchemar_epouvanteur_split_015.htm ...
Found microsoft markup, cleaning...
Parsing OEBPS/Text/cauchemar_epouvanteur_split_025.htm ...
Found microsoft markup, cleaning...
Parsing OEBPS/Text/cauchemar_epouvanteur_split_010.htm ...
Found microsoft markup, cleaning...
Parsing OEBPS/Text/cauchemar_epouvanteur_split_022.htm ...
Found microsoft markup, cleaning...
Parsing OEBPS/Text/cauchemar_epouvanteur_split_001.htm ...
Found microsoft markup, cleaning...
Parsing OEBPS/Text/cauchemar_epouvanteur_split_023.htm ...
Found microsoft markup, cleaning...
Parsing OEBPS/Text/filelist.xml ...
Parsing OEBPS/Text/cauchemar_epouvanteur_split_019.htm ...
Found microsoft markup, cleaning...
Parsing OEBPS/Text/cauchemar_epouvanteur_split_024.htm ...
Found microsoft markup, cleaning...
Parsing OEBPS/Text/colorschememapping.xml ...
Parsing OEBPS/Text/cauchemar_epouvanteur_split_007.htm ...
Found microsoft markup, cleaning...
Parsing OEBPS/Text/cauchemar_epouvanteur_split_013.htm ...
Found microsoft markup, cleaning...
Parsing OEBPS/Text/cauchemar_epouvanteur_split_031.htm ...
Found microsoft markup, cleaning...
Parsing OEBPS/Text/cauchemar_epouvanteur_split_002.htm ...
Found microsoft markup, cleaning...
Parsing OEBPS/Text/cauchemar_epouvanteur_split_008.htm ...
Found microsoft markup, cleaning...
Parsing OEBPS/Text/cauchemar_epouvanteur_split_003.htm ...
Found microsoft markup, cleaning...
Parsing OEBPS/Text/cauchemar_epouvanteur_split_006.htm ...
Found microsoft markup, cleaning...
Parsing OEBPS/Text/cauchemar_epouvanteur_split_026.htm ...
Found microsoft markup, cleaning...
Parsing OEBPS/Text/cauchemar_epouvanteur_split_005.htm ...
Found microsoft markup, cleaning...
Parsing OEBPS/Text/cauchemar_epouvanteur_split_032.htm ...
Found microsoft markup, cleaning...
Parsing OEBPS/Text/titlepage.xhtml ...
Parsing OEBPS/Styles/stylesheet.css ...
Parsing OEBPS/Text/cauchemar_epouvanteur_split_009.htm ...
Found microsoft markup, cleaning...
Parsing OEBPS/Text/cauchemar_epouvanteur_split_027.htm ...
Found microsoft markup, cleaning...
Parsing OEBPS/Text/cauchemar_epouvanteur_split_012.htm ...
Found microsoft markup, cleaning...
Parsing OEBPS/Text/cauchemar_epouvanteur_split_020.htm ...
Found microsoft markup, cleaning...
Parsing OEBPS/Text/titlepage_u1.xhtml ...
Parsing OEBPS/Text/cauchemar_epouvanteur_split_028.htm ...
Found microsoft markup, cleaning...
Parsing OEBPS/Text/cauchemar_epouvanteur_split_034.htm ...
Found microsoft markup, cleaning...
Parsing OEBPS/Text/cauchemar_epouvanteur_split_004.htm ...
Found microsoft markup, cleaning...
Parsing OEBPS/Text/cauchemar_epouvanteur_split_018.htm ...
Found microsoft markup, cleaning...
Parsing OEBPS/Text/cauchemar_epouvanteur_split_029.htm ...
Found microsoft markup, cleaning...
Referenced file u'OEBPS/Text/cauchemar_\xe9pouvanteur_fichiers/editdata.mso' not found
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 2 items of level: div_1
Found 28 items of level: p_2
Found 2418 items of level: p_1
div_1 left margin stats: Counter({u'': 1})
div_1 right margin stats: Counter({u'': 1})
p_2 left margin stats: Counter({u'': 28})
p_2 right margin stats: Counter({u'': 28})
p_1 left margin stats: Counter({u'': 2418})
p_1 right margin stats: Counter({u'': 2418})
Cleaning up manifest...
Trimming unused files from manifest...
Trimming u'OEBPS/Text/titlepage_u1.xhtml' from manifest
Creating KePub Output...
Found non-unique filenames, renaming to support broken EPUB readers like FBReader, Aldiko and Stanza...
{u'cover.jpeg': u'cover_u1.jpeg'}
OEBPS/Misc/themedata.thmx contains data in TXT format converting to HTML
Converting OEBPS/Misc/themedata.thmx ...
Python function terminated unexpectedly
'utf8' codec can't decode byte 0x82 in position 14: invalid start byte. -- Note: Markdown only accepts unicode input! (Error Code: 1)
Traceback (most recent call last):
File "site.py", line 132, in main
File "site.py", line 109, in run_entry_point
File "site-packages\calibre\utils\ipc\worker.py", line 193, 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 1198, in run
File "calibre_plugins.kepubout.conversion.kepub_output" , line 60, in convert
File "site-packages\calibre\ebooks\conversion\plugins\epub_ou tput.py", line 186, in convert
File "site-packages\calibre\ebooks\oeb\transforms\filenames.p y", line 126, in __call__
File "site-packages\calibre\ebooks\oeb\transforms\filenames.p y", line 34, in __call__
File "site-packages\calibre\ebooks\oeb\base.py", line 984, in fget
File "site-packages\calibre\ebooks\oeb\base.py", line 918, in _parse_txt
File "site-packages\calibre\ebooks\txt\processor.py", line 105, in convert_markdown
File "site-packages\calibre\ebooks\markdown\__init__.py", line 280, in convert
UnicodeDecodeError: 'utf8' codec can't decode byte 0x82 in position 14: invalid start byte. -- Note: Markdown only accepts unicode input!
Does anyone knows if there is an easy (or not so easy) solution?
Thanks a lot!
EDIT:
I am using KePub metadata writer, KePub metadata reader and KePub Input by David Forrester, KePub output by Joel Goguen (all are 2.5.1)
Last edited by Greyhunter; 09-14-2015 at 12:52 PM.