error during conversion azw3 to other formats

Bug #1179144 reported by ms
82
This bug affects 9 people
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Unassigned

Bug Description

i can't convert and view files recived from amazon /converted pdf's/ to other formats

error code:

calibre, version 0.9.30 (win32, isfrozen: True)
Błąd podczas konwersji: Nie powiodło się: Konwertuj książkę 1 z 1 (Topór kata)

Konwertuj książkę 1 z 1 (Topór kata)
Resolved conversion options
calibre version: 0.9.30
{'asciiize': False,
 'author_sort': None,
 'authors': None,
 'base_font_size': 16.0,
 'book_producer': None,
 'change_justification': u'justify',
 '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': u'C:\\Users\\ms\\AppData\\Local\\Temp\\calibre_ytylwa\\yu6c_t.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_font_family': None,
 'enable_heuristics': False,
 'epub_flatten': False,
 'extra_css': u'body { \nfont-family: "{Liberation}", sans-serif; \n}',
 '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.SonyReaderInput object at 0x039AC2F0>,
 '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': 15.0,
 'linearize_tables': False,
 'margin_bottom': 3.0,
 'margin_left': 3.0,
 'margin_right': 3.0,
 'margin_top': 3.0,
 'markup_chapter_headings': True,
 'max_toc_links': 50,
 'minimum_line_height': 120.0,
 'no_chapters_in_toc': False,
 'no_default_epub_cover': True,
 'no_inline_navbars': False,
 'no_svg_cover': True,
 'output_profile': <calibre.customize.profiles.SonyReaderOutput object at 0x02751F10>,
 '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'C:\\Users\\ms\\AppData\\Local\\Temp\\calibre_ytylwa\\_14qet.opf',
 'remove_fake_margins': True,
 'remove_first_image': False,
 'remove_paragraph_spacing': True,
 'remove_paragraph_spacing_indent_size': 1.0,
 '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,
 'unsmarten_punctuation': False,
 'unwrap_lines': True,
 'use_auto_toc': False,
 'verbose': 2}
InputFormatPlugin: MOBI Input running
on C:\Users\ms\AppData\Local\Temp\calibre_ytylwa\sbei7r.azw3
Found KF8 MOBI of type 'standalone'
Extracting text...
The div table for SKEL0000000000 has incorrect insert positions. Calculating manually.
Python function terminated unexpectedly
  'utf8' codec can't decode byte 0xc5 in position 200525: invalid continuation byte (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 189, 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 1009, in run
  File "site-packages\calibre\customize\conversion.py", line 239, in __call__
  File "site-packages\calibre\ebooks\conversion\plugins\mobi_input.py", line 40, in convert
  File "site-packages\calibre\ebooks\mobi\reader\mobi8.py", line 95, in __call__
  File "site-packages\calibre\ebooks\mobi\reader\mobi8.py", line 425, in expand_text
  File "site-packages\calibre\ebooks\mobi\reader\markup.py", line 310, in expand_mobi8_markup
  File "site-packages\calibre\ebooks\mobi\reader\markup.py", line 51, in update_internal_links
  File "encodings\utf_8.py", line 16, in decode
UnicodeDecodeError: 'utf8' codec can't decode byte 0xc5 in position 200525: invalid continuation byte

Related branches

Revision history for this message
ms (rufi98) wrote :
Revision history for this message
Kovid Goyal (kovid) wrote : Fixed in lp:calibre

Fixed in branch lp:calibre. The fix will be in the next release. calibre is usually released every Friday.

 status fixreleased

Changed in calibre:
status: New → Fix Released
Revision history for this message
joeri (yuri10) wrote :

I still have the same issue even with the latest release

From debug log:

Found KF8 MOBI of type 'standalone'
The div table for SKEL0000000001 has incorrect insert positions. Calculating manually.
The div table for SKEL0000000002 has incorrect insert positions. Calculating manually.
The div table for SKEL0000000003 has incorrect insert positions. Calculating manually.
The div table for SKEL0000000004 has incorrect insert positions. Calculating manually.

The error message in calibre self:

calibre, version 0.9.35
ERROR: Could not open ebook: invalid continuation byte

Traceback (most recent call last):
  File "site-packages/calibre/gui2/viewer/main.py", line 40, in run
  File "lib/python2.7/threading.py", line 763, in run
  File "site-packages/calibre/ebooks/oeb/iterator/book.py", line 99, in __enter__
  File "site-packages/calibre/customize/conversion.py", line 239, in __call__
  File "site-packages/calibre/ebooks/conversion/plugins/mobi_input.py", line 40, in convert
  File "site-packages/calibre/ebooks/mobi/reader/mobi8.py", line 95, in __call__
  File "site-packages/calibre/ebooks/mobi/reader/mobi8.py", line 425, in expand_text
  File "site-packages/calibre/ebooks/mobi/reader/markup.py", line 310, in expand_mobi8_markup
  File "site-packages/calibre/ebooks/mobi/reader/markup.py", line 51, in update_internal_links
  File "lib/python2.7/encodings/utf_8.py", line 16, in decode
UnicodeDecodeError: 'utf8' codec can't decode byte 0xe3 in position 9774: invalid continuation byte

The issue is when trying to view the file, or when trying to convert to a different format.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.