View Single Post
Old 09-26-2021, 12:52 PM   #1
Pannette
Junior Member
Pannette began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Sep 2021
Device: ReMarkable 2
Exclamation CBZ to PDF AttributeError

Hi all, I've been using Calibre frequently to convert CBZs (which Calibre automatically converts from .zips) to PDFs, but for some reason some files have started giving me trouble despite not making any changes to my conversion parameters. Any thoughts? Unfortunately I'm not a CS person so I'm pretty bad at making heads or tails of this.

Spoiler:
calibre, version 5.28.0 (win32, embedded-python: True)
Conversion error: Failed: Convert book 1 of 1 (1)

Convert book 1 of 1 (1)
Conversion options changed from defaults:
verbose: 2
pdf_sans_family: 'MS Shell Dlg 2'
no_process: True
cover: 'C:\\Users\\pannc\\AppData\\Local\\Temp\\calibre_i v1_odev\\ly2uwch4.jpeg'
read_metadata_from_opf: 'C:\\Users\\pannc\\AppData\\Local\\Temp\\calibre_i v1_odev\\jqc8npw8.opf'
output_profile: 'generic_eink'
pdf_serif_family: 'MS Shell Dlg 2'
Resolved conversion options
calibre version: 5.28.0
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'change_justification': 'left',
'chapter': None,
'chapter_mark': 'pagebreak',
'colors': 0,
'comic_image_size': None,
'comments': None,
'cover': 'C:\\Users\\pannc\\AppData\\Local\\Temp\\calibre_i v1_odev\\ly2uwch4.jpeg',
'custom_size': None,
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'despeckle': False,
'disable_font_rescaling': True,
'disable_trim': False,
'dont_add_comic_pages_to_toc': False,
'dont_grayscale': False,
'dont_normalize': False,
'dont_sharpen': 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': '',
'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 0x06EAFF10>,
'insert_blank_line': False,
'insert_blank_line_size': 0.5,
'insert_metadata': False,
'isbn': None,
'italicize_common_cases': True,
'keep_aspect_ratio': False,
'keep_ligatures': False,
'landscape': False,
'language': None,
'level1_toc': None,
'level2_toc': None,
'level3_toc': None,
'line_height': 0.0,
'linearize_tables': False,
'margin_bottom': 0,
'margin_left': 0,
'margin_right': 0,
'margin_top': 0,
'markup_chapter_headings': True,
'max_toc_links': 50,
'minimum_line_height': 120.0,
'no_chapters_in_toc': False,
'no_inline_navbars': False,
'no_process': True,
'no_sort': False,
'output_format': 'png',
'output_profile': <calibre.customize.profiles.GenericEink object at 0x06EC00B8>,
'page_breaks_before': None,
'paper_size': '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': 'Courier',
'pdf_mono_font_size': 16,
'pdf_odd_even_offset': 0.0,
'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': 'MS Shell Dlg 2',
'pdf_serif_family': 'MS Shell Dlg 2',
'pdf_standard_font': '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': 'C:\\Users\\pannc\\AppData\\Local\\Temp\\calibre_i v1_odev\\jqc8npw8.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': '',
'right2left': False,
'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': 'inch',
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'use_profile_size': False,
'verbose': 2,
'wide': False}
InputFormatPlugin: Comic Input running
on C:\Users\pannc\AppData\Local\Temp\calibre_iv1_odev \scsxdtka.cbz
Found comic pages...
00001.png
00002.png
00003.png
00004.png
00005.png
00006.png
00007.png
00008.png
00009.png
00010.png
00011.png
00012.png
00013.png
00014.png
00015.png
00016.png
00017.png
00018.png
00019.png
00020.png
00021.png
00022.png
00023.png
00024.png
00025.png
00026.png
00027.png
00028.png
c-credits.png
Parsing all content...
Parsing page_13.xhtml ...
Parsing page_4.xhtml ...
Parsing page_10.xhtml ...
Parsing page_19.xhtml ...
Parsing page_27.xhtml ...
Parsing page_16.xhtml ...
Parsing page_7.xhtml ...
Parsing page_14.xhtml ...
Parsing page_22.xhtml ...
Parsing page_24.xhtml ...
Parsing page_17.xhtml ...
Parsing page_2.xhtml ...
Parsing page_25.xhtml ...
Parsing page_5.xhtml ...
Parsing page_11.xhtml ...
Parsing page_20.xhtml ...
Parsing page_28.xhtml ...
Parsing page_8.xhtml ...
Parsing page_15.xhtml ...
Parsing page_23.xhtml ...
Parsing page_18.xhtml ...
Parsing page_3.xhtml ...
Parsing page_26.xhtml ...
Parsing page_6.xhtml ...
Parsing page_12.xhtml ...
Parsing page_21.xhtml ...
Parsing page_29.xhtml ...
Parsing page_9.xhtml ...
Parsing page_1.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 29 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...
Creating PDF Output...
Converting input as an image collection...
Traceback (most recent call last):
File "runpy.py", line 194, in _run_module_as_main
File "runpy.py", line 87, in _run_code
File "site.py", line 82, in <module>
File "site.py", line 77, in main
File "site.py", line 49, in run_entry_point
File "calibre\utils\ipc\worker.py", line 216, in main
File "calibre\gui2\convert\gui_conversion.py", line 41, in gui_convert_override
File "calibre\gui2\convert\gui_conversion.py", line 28, in gui_convert
File "calibre\ebooks\conversion\plumber.py", line 1271, in run
File "calibre\ebooks\conversion\plugins\pdf_output. py", line 185, in convert
File "calibre\ebooks\conversion\plugins\pdf_output. py", line 192, in convert_images
File "calibre\ebooks\pdf\image_writer.py", line 143, in convert
File "calibre\ebooks\pdf\image_writer.py", line 117, in draw_image_page
File "calibre\ebooks\pdf\render\serialize.py", line 429, in add_image
AttributeError: 'list' object has no attribute 'size'
Pannette is offline   Reply With Quote