Quantcast
Channel: MobileRead Forums - Reading and Management
Viewing all articles
Browse latest Browse all 23780

Error in conversion

$
0
0
hello

Using for a while Calibre until now I never encountered issue with the conversion of ePub files (which is my main usage of Calibre).
Since Yesterday I encountered 2 errors when I try to convert ePub file
Spoiler:

calibre, version 2.85.1 (darwin, embedded-python: True)
Erreur lors de la conversion: Échoué: Conversion du livre 1 sur 1 (Les Poilus: la France sacrifiée ; [le carnage de la Grande Guerre])

Conversion du livre 1 sur 1 (Les Poilus: la France sacrifiée ; [le carnage de la Grande Guerre])
Conversion options changed from defaults:
margin_left: 72.0
margin_top: 72.0
pdf_default_font_size: 14
pdf_page_margin_bottom: 30.0
pdf_page_margin_top: 30.0
read_metadata_from_opf: u'/var/folders/d5/hn1yhp1j6mbdynz7hf_nysn80000gn/C/calibre_2.85.1_tmp_m3OheS/xkWNzH.opf'
verbose: 2
margin_right: 72.0
margin_bottom: 72.0
cover: u'/var/folders/d5/hn1yhp1j6mbdynz7hf_nysn80000gn/C/calibre_2.85.1_tmp_m3OheS/ZeGpph.jpeg'
pdf_mono_font_size: 12
preserve_cover_aspect_ratio: True
pdf_page_numbers: True
Resolved conversion options
calibre version: 2.85.1
{'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/d5/hn1yhp1j6mbdynz7hf_nysn80000gn/C/calibre_2.85.1_tmp_m3OheS/ZeGpph.jpeg',
'custom_size': None,
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'duplicate_links_in_toc': False,
'embed_all_fonts': False,
'embed_font_family': None,
'enable_heuristics': False,
'expand_css': False,
'extra_css': 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 0x1136be650>,
'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': 72.0,
'margin_left': 72.0,
'margin_right': 72.0,
'margin_top': 72.0,
'markup_chapter_headings': True,
'max_toc_links': 50,
'minimum_line_height': 120.0,
'no_chapters_in_toc': False,
'no_inline_navbars': False,
'output_profile': <calibre.customize.profiles.OutputProfile object at 0x1136bea10>,
'page_breaks_before': u'/',
'paper_size': u'letter',
'pdf_add_toc': False,
'pdf_default_font_size': 14,
'pdf_footer_template': None,
'pdf_header_template': None,
'pdf_mark_links': False,
'pdf_mono_family': u'Courier New',
'pdf_mono_font_size': 12,
'pdf_page_margin_bottom': 30.0,
'pdf_page_margin_left': 72.0,
'pdf_page_margin_right': 72.0,
'pdf_page_margin_top': 30.0,
'pdf_page_numbers': True,
'pdf_sans_family': u'Helvetica',
'pdf_serif_family': u'Times New Roman',
'pdf_standard_font': u'serif',
'prefer_metadata_cover': False,
'preserve_cover_aspect_ratio': True,
'pretty_print': False,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': u'/var/folders/d5/hn1yhp1j6mbdynz7hf_nysn80000gn/C/calibre_2.85.1_tmp_m3OheS/xkWNzH.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,
'transform_css_rules': '[]',
'uncompressed_pdf': False,
'unit': u'inch',
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'use_profile_size': False,
'verbose': 2}
InputFormatPlugin: EPUB Input running
on /var/folders/d5/hn1yhp1j6mbdynz7hf_nysn80000gn/C/calibre_2.85.1_tmp_m3OheS/msHlyP.epub
Found HTML cover OEBPS/Text/titlepage.xhtml
Parsing all content...
Parsing OEBPS/Text/Pierre Miquel - Les Poilus (La France sacrifiee).(2000)_split_005.htm ...
Found microsoft markup, cleaning...
Parsing OEBPS/Text/Pierre Miquel - Les Poilus (La France sacrifiee).(2000)_split_012.htm ...
Found microsoft markup, cleaning...
Parsing OEBPS/Text/Pierre Miquel - Les Poilus (La France sacrifiee).(2000)_split_003.htm ...
Found microsoft markup, cleaning...
Parsing OEBPS/Styles/stylesheet.css ...
Parsing OEBPS/Text/Pierre Miquel - Les Poilus (La France sacrifiee).(2000)_split_007.htm ...
Found microsoft markup, cleaning...
Parsing OEBPS/Text/Pierre Miquel - Les Poilus (La France sacrifiee).(2000)_split_009.htm ...
Found microsoft markup, cleaning...
Parsing OEBPS/Text/Pierre Miquel - Les Poilus (La France sacrifiee).(2000)_split_011.htm ...
Parsing OEBPS/Text/Pierre Miquel - Les Poilus (La France sacrifiee).(2000)_split_004.htm ...
Found microsoft markup, cleaning...
Parsing OEBPS/Text/Pierre Miquel - Les Poilus (La France sacrifiee).(2000)_split_010.htm ...
Found microsoft markup, cleaning...
Parsing OEBPS/Text/titlepage.xhtml ...
Parsing OEBPS/Text/Pierre Miquel - Les Poilus (La France sacrifiee).(2000)_split_002.htm ...
Found microsoft markup, cleaning...
Parsing OEBPS/Text/Pierre Miquel - Les Poilus (La France sacrifiee).(2000)_split_006.htm ...
Found microsoft markup, cleaning...
Parsing OEBPS/Text/Pierre Miquel - Les Poilus (La France sacrifiee).(2000)_split_000.htm ...
Found microsoft markup, cleaning...
Parsing OEBPS/Text/Pierre Miquel - Les Poilus (La France sacrifiee).(2000)_split_008.htm ...
Found microsoft markup, cleaning...
Parsing OEBPS/Text/Pierre Miquel - Les Poilus (La France sacrifiee).(2000)_split_001.htm ...
Found microsoft markup, cleaning...
Referenced file u'OEBPS/Text/colorschememapping.xml' not found
Referenced file u'OEBPS/Text/Pierre%20Miquel%20-%20Les%20Poilus%20%28La%20France%20sacrifi\xe9e%29 .%282000%29_fichiers/editdata.mso' not found
Referenced file u'OEBPS/Text/filelist.xml' 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 11 items of level: div_1
Found 23 items of level: p_2
Found 1992 items of level: p_1
Found 140 items of level: div_2
Found 147 items of level: p_3
Ignoring level p_2
div_1 left margin stats: Counter({u'': 2})
div_1 right margin stats: Counter({u'': 2})
p_1 left margin stats: Counter({u'': 1992})
p_1 right margin stats: Counter({u'': 1992})
div_2 left margin stats: Counter()
div_2 right margin stats: Counter()
p_3 left margin stats: Counter({u'': 147})
p_3 right margin stats: Counter({u'': 147})
Cleaning up manifest...
Trimming unused files from manifest...
Trimming u'OEBPS/Text/titlepage.xhtml' from manifest
Python function terminated unexpectedly: 'utf8' codec can't decode byte 0xe9 in position 14: invalid continuation byte. -- Note: Markdown only accepts unicode input!
Creating PDF Output...
Splitting markup on page breaks and flow limits, if any...
Splitting on page-break at id=calibre_pb_4
Adjusted split point to ancestor
Splitting on page-break at id=calibre_pb_2
Adjusted split point to ancestor
Splitting on page-break at id=calibre_pb_6
Adjusted split point to ancestor
Splitting on page-break at id=calibre_pb_8
Adjusted split point to ancestor
Splitting on page-break at id=calibre_pb_10
Adjusted split point to ancestor
Splitting on page-break at id=calibre_pb_3
Adjusted split point to ancestor
Splitting on page-break at id=calibre_pb_9
Adjusted split point to ancestor
Splitting on page-break at id=calibre_pb_1
Adjusted split point to ancestor
Splitting on page-break at id=calibre_pb_5
Adjusted split point to ancestor
Splitting on page-break at id=calibre_pb_7
Adjusted split point to ancestor
Splitting on page-break at id=calibre_pb_0
Adjusted split point to ancestor
OEBPS/Misc/themedata.thmx contains data in TXT format converting to HTML
Converting OEBPS/Misc/themedata.thmx ...
Traceback (most recent call last):
File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py", line 154, in main
return run_entry_point()
File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py", line 114, in run_entry_point
return getattr(pmod, func)()
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 1252, in run
File "site-packages/calibre/ebooks/conversion/plugins/pdf_output.py", line 154, in convert
File "site-packages/calibre/ebooks/oeb/transforms/split.py", line 66, in __call__
File "site-packages/calibre/ebooks/oeb/transforms/split.py", line 160, in fix_links
File "site-packages/calibre/ebooks/oeb/base.py", line 1039, in fget
File "site-packages/calibre/ebooks/oeb/base.py", line 968, in _parse_txt
File "site-packages/calibre/ebooks/txt/processor.py", line 110, in convert_markdown
File "site-packages/calibre/ebooks/markdown/__init__.py", line 363, in convert
UnicodeDecodeError: 'utf8' codec can't decode byte 0xe9 in position 14: invalid continuation byte. -- Note: Markdown only accepts unicode input!
looks error is related to Unicode/UT8 codec but I don't understand what it means is someone could help me on this

the second error

onversion options changed from defaults:
cover: u'/var/folders/d5/hn1yhp1j6mbdynz7hf_nysn80000gn/C/calibre_2.85.1_tmp_m3OheS/ezNmrN.jpeg'
pdf_mono_font_size: 12
preserve_cover_aspect_ratio: True
pdf_page_margin_left: 50.0
pdf_default_font_size: 14
pdf_page_margin_right: 50.0
pdf_page_margin_bottom: 30.0
pdf_page_margin_top: 30.0
pdf_page_numbers: True
verbose: 2
read_metadata_from_opf: u'/var/folders/d5/hn1yhp1j6mbdynz7hf_nysn80000gn/C/calibre_2.85.1_tmp_m3OheS/fdaj9c.opf'
Resolved conversion options
calibre version: 2.85.1
{'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/d5/hn1yhp1j6mbdynz7hf_nysn80000gn/C/calibre_2.85.1_tmp_m3OheS/ezNmrN.jpeg',
'custom_size': None,
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'duplicate_links_in_toc': False,
'embed_all_fonts': False,
'embed_font_family': None,
'enable_heuristics': False,
'expand_css': False,
'extra_css': 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 0x10e099650>,
'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_inline_navbars': False,
'output_profile': <calibre.customize.profiles.OutputProfile object at 0x10e099a10>,
'page_breaks_before': u'/',
'paper_size': u'letter',
'pdf_add_toc': False,
'pdf_default_font_size': 14,
'pdf_footer_template': None,
'pdf_header_template': None,
'pdf_mark_links': False,
'pdf_mono_family': u'Courier New',
'pdf_mono_font_size': 12,
'pdf_page_margin_bottom': 30.0,
'pdf_page_margin_left': 50.0,
'pdf_page_margin_right': 50.0,
'pdf_page_margin_top': 30.0,
'pdf_page_numbers': True,
'pdf_sans_family': u'Helvetica',
'pdf_serif_family': u'Times New Roman',
'pdf_standard_font': u'serif',
'prefer_metadata_cover': False,
'preserve_cover_aspect_ratio': True,
'pretty_print': False,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': u'/var/folders/d5/hn1yhp1j6mbdynz7hf_nysn80000gn/C/calibre_2.85.1_tmp_m3OheS/fdaj9c.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,
'transform_css_rules': '[]',
'uncompressed_pdf': False,
'unit': u'inch',
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'use_profile_size': False,
'verbose': 2}
Python function terminated unexpectedly: Error -3 while decompressing: invalid distance too far back
InputFormatPlugin: EPUB Input running
on /var/folders/d5/hn1yhp1j6mbdynz7hf_nysn80000gn/C/calibre_2.85.1_tmp_m3OheS/wMvO89.epub
EPUB appears to be invalid ZIP file, trying a more forgiving ZIP parser
Traceback (most recent call last):
File "site-packages/calibre/ebooks/conversion/plugins/epub_input.py", line 241, in convert
File "site-packages/calibre/utils/zipfile.py", line 1101, in extractall
File "site-packages/calibre/utils/zipfile.py", line 1085, in extract
File "site-packages/calibre/utils/zipfile.py", line 1147, in _extract_member
File "site-packages/calibre/utils/zipfile.py", line 1029, in open
BadZipfile: Bad magic number for file header

Traceback (most recent call last):
File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py", line 154, in main
return run_entry_point()
File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py", line 114, in run_entry_point
return getattr(pmod, func)()
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 1088, in run
File "site-packages/calibre/customize/conversion.py", line 245, in __call__
File "site-packages/calibre/ebooks/conversion/plugins/epub_input.py", line 247, in convert
File "site-packages/calibre/utils/localunzip.py", line 231, in extractall
File "site-packages/calibre/utils/localunzip.py", line 213, in _extractall
File "site-packages/calibre/utils/localunzip.py", line 165, in copy_compressed_file
zlib.error: Error -3 while decompressing: invalid distance too far back

there a zlib.error looks like and again don't know what it means

thanks for your help

BKantique

Viewing all articles
Browse latest Browse all 23780

Trending Articles