Failed to Convert from AZW to PDF

Bug #1848701 reported by Thomas McNeill Porter
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Unassigned

Bug Description

Calibre ver. 4.2

Attached is the AZW file I am trying to convert. I used the DeDRM plugin to remove the DRM from the book, but it still gives me a failure after running for about 30 seconds. Here are the details listed:

Convert book 1 of 1 (キーボード・マガジン 2019年10月号 AUTUMN)
Conversion options changed from defaults:
  verbose: 2
  read_metadata_from_opf: u'C:\\Users\\Kerin\\AppData\\Local\\Temp\\calibre__7wyem\\t9prwj.opf'
  cover: u'C:\\Users\\Kerin\\AppData\\Local\\Temp\\calibre__7wyem\\arsggn.jpeg'
  pdf_serif_family: u'MS Shell Dlg 2'
  output_profile: u'generic_eink'
  pdf_sans_family: u'MS Shell Dlg 2'
Resolved conversion options
calibre version: 4.2.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|prologue|epilogue)(\\s+|$))', 'i')) or @class = 'chapter']",
 'chapter_mark': u'pagebreak',
 'comments': None,
 'cover': u'C:\\Users\\Kerin\\AppData\\Local\\Temp\\calibre__7wyem\\arsggn.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 0x051341B0>,
 '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.GenericEink object at 0x051343B0>,
 'page_breaks_before': u"//*[name()='h1' or name()='h2']",
 'paper_size': u'letter',
 'pdf_add_toc': False,
 'pdf_default_font_size': 20,
 'pdf_footer_template': None,
 'pdf_header_template': None,
 'pdf_hyphenate': False,
 'pdf_mark_links': False,
 'pdf_mono_family': u'Courier',
 'pdf_mono_font_size': 16,
 'pdf_page_margin_bottom': 72.0,
 'pdf_page_margin_left': 72.0,
 'pdf_page_margin_right': 72.0,
 'pdf_page_margin_top': 72.0,
 'pdf_page_number_map': None,
 'pdf_page_numbers': False,
 'pdf_sans_family': u'MS Shell Dlg 2',
 'pdf_serif_family': u'MS Shell Dlg 2',
 'pdf_standard_font': u'serif',
 'pdf_use_document_margins': False,
 'prefer_metadata_cover': False,
 'preserve_cover_aspect_ratio': False,
 'pretty_print': False,
 'pubdate': None,
 'publisher': None,
 'rating': None,
 'read_metadata_from_opf': u'C:\\Users\\Kerin\\AppData\\Local\\Temp\\calibre__7wyem\\t9prwj.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: MOBI Input running
on C:\Users\Kerin\AppData\Local\Temp\calibre__7wyem\vrojnw.azw3
Found KF8 MOBI of type u'standalone'
Extracting text...
Parsing all content...
Parsing text/part0042.html ...
Parsing text/part0019.html ...
Parsing text/part0109.html ...
Parsing text/part0017.html ...
Parsing text/part0145.html ...
Parsing text/part0080.html ...
Parsing text/part0116.html ...
Parsing text/part0093.html ...
Parsing text/part0015.html ...
Parsing text/part0048.html ...
Parsing text/part0065.html ...
Parsing text/part0117.html ...
Parsing text/part0013.html ...
Parsing text/part0096.html ...
Parsing text/part0052.html ...
Parsing text/part0159.html ...
Parsing text/part0003.html ...
Parsing text/part0143.html ...
Parsing text/part0035.html ...
Parsing text/part0001.html ...
Parsing text/part0097.html ...
Parsing text/part0072.html ...
Parsing text/part0058.html ...
Parsing text/part0088.html ...
Parsing text/part0138.html ...
Parsing text/part0060.html ...
Parsing text/part0076.html ...
Parsing text/part0135.html ...
Parsing text/part0152.html ...
Parsing text/part0123.html ...
Parsing text/part0157.html ...
Parsing text/part0064.html ...
Parsing text/part0084.html ...
Parsing text/part0136.html ...
Parsing text/part0075.html ...
Parsing text/part0066.html ...
Parsing text/part0101.html ...
Parsing text/part0029.html ...
Parsing text/part0044.html ...
Parsing text/part0006.html ...
Parsing text/part0129.html ...
Parsing text/part0068.html ...
Parsing text/part0100.html ...
Parsing text/part0151.html ...
Parsing text/part0092.html ...
Parsing text/part0121.html ...
Parsing text/part0113.html ...
Parsing text/part0112.html ...
Parsing text/part0046.html ...
Parsing text/part0059.html ...
Parsing text/part0028.html ...
Parsing text/part0011.html ...
Parsing text/part0124.html ...
Parsing text/part0041.html ...
Parsing text/part0070.html ...
Parsing text/part0083.html ...
Parsing text/part0164.html ...
Parsing text/part0128.html ...
Parsing text/part0071.html ...
Parsing text/part0146.html ...
Parsing text/part0074.html ...
Parsing text/part0079.html ...
Parsing text/part0134.html ...
Parsing text/part0154.html ...
Parsing text/part0120.html ...
Parsing text/part0030.html ...
Parsing text/part0087.html ...
Parsing text/part0163.html ...
Parsing text/part0050.html ...
Parsing text/part0091.html ...
Parsing text/part0161.html ...
Parsing text/part0089.html ...
Parsing text/part0037.html ...
Parsing text/part0039.html ...
Parsing text/part0022.html ...
Parsing text/part0078.html ...
Parsing text/part0103.html ...
Parsing text/part0104.html ...
Parsing text/part0020.html ...
Parsing text/part0153.html ...
Parsing text/part0018.html ...
Parsing text/part0033.html ...
Parsing text/part0045.html ...
Parsing text/part0111.html ...
Parsing text/part0016.html ...
Parsing text/part0025.html ...
Parsing text/part0014.html ...
Parsing text/part0049.html ...
Parsing text/part0119.html ...
Parsing text/part0069.html ...
Parsing text/part0051.html ...
Parsing text/part0095.html ...
Parsing text/part0108.html ...
Parsing text/part0086.html ...
Parsing text/part0008.html ...
Parsing text/part0055.html ...
Parsing text/part0002.html ...
Parsing text/part0054.html ...
Parsing text/part0142.html ...
Parsing text/part0057.html ...
Parsing text/part0000.html ...
Parsing text/part0155.html ...
Parsing styles/0001.css ...
Parsing text/part0149.html ...
Parsing text/part0032.html ...
Parsing text/part0061.html ...
Parsing text/part0099.html ...
Parsing text/part0144.html ...
Parsing text/part0063.html ...
Parsing text/part0082.html ...
Parsing text/part0043.html ...
Parsing text/part0156.html ...
Parsing text/part0056.html ...
Parsing text/part0009.html ...
Parsing text/part0053.html ...
Parsing text/part0131.html ...
Parsing text/part0067.html ...
Parsing text/part0105.html ...
Parsing text/part0141.html ...
Parsing text/part0094.html ...
Parsing text/part0077.html ...
Parsing text/part0165.html ...
Parsing text/part0027.html ...
Parsing text/part0026.html ...
Parsing text/part0106.html ...
Parsing text/part0140.html ...
Parsing text/part0114.html ...
Parsing text/part0031.html ...
Parsing text/part0162.html ...
Parsing text/part0024.html ...
Parsing text/part0118.html ...
Parsing text/part0012.html ...
Parsing text/part0023.html ...
Parsing text/part0122.html ...
Parsing text/part0160.html ...
Parsing text/part0047.html ...
Parsing text/part0125.html ...
Parsing text/part0107.html ...
Parsing text/part0127.html ...
Parsing text/part0034.html ...
Parsing text/part0004.html ...
Parsing text/part0137.html ...
Parsing text/part0147.html ...
Parsing text/part0073.html ...
Parsing text/part0098.html ...
Parsing text/part0130.html ...
Parsing text/part0139.html ...
Parsing text/part0150.html ...
Parsing text/part0081.html ...
Parsing text/part0133.html ...
Parsing text/part0062.html ...
Parsing text/part0085.html ...
Parsing text/part0005.html ...
Parsing text/part0158.html ...
Parsing text/part0126.html ...
Parsing text/part0110.html ...
Parsing text/part0036.html ...
Parsing text/part0010.html ...
Parsing text/part0102.html ...
Parsing text/part0132.html ...
Parsing text/part0115.html ...
Parsing text/part0007.html ...
Parsing text/part0090.html ...
Parsing text/part0038.html ...
Parsing text/part0040.html ...
Parsing text/part0148.html ...
Parsing text/part0021.html ...
Reading TOC from NCX...
Merging user specified metadata...
Detecting structure...
Flattening CSS and remapping font sizes...
Source base font size is 0.00000pt
Removing fake margins...
Found 166 items of level: div_1
div_1 left margin stats: Counter()
div_1 right margin stats: Counter()
Cleaning up manifest...
Trimming unused files from manifest...
Trimming u'images/00168.jpeg' from manifest
Creating PDF Output...
Converting input as a text based book...
P

______________________________

I am not sure how to proceed. I am happy to provide any additional information. I also could not figure out how to make this bug report "private" as the book is copyrighted...

information type: Public → Private
Revision history for this message
Kovid Goyal (kovid) wrote : Re: calibre bug 1848701

The file you attached is DRMed I need the non-DRMed version

 status incomplete

Changed in calibre:
status: New → Incomplete
Revision history for this message
Thomas McNeill Porter (eriias) wrote :

Sorry about that. Here is the one with DRM removed via Calibre.

Revision history for this message
Kovid Goyal (kovid) wrote : Fixed in master

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

 status fixreleased

information type: Private → Public
Changed in calibre:
status: Incomplete → Fix Released
Revision history for this message
Thomas McNeill Porter (eriias) wrote :

Thank you!

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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