Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
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
Old 09-26-2021, 01:06 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 40,037
Karma: 17765146
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Opena bug report and attach one of these cbz files, as far as I can tell this is caused by a change in pyqt but I need the file to verify.
kovidgoyal is offline   Reply With Quote
Old 09-26-2021, 01:19 PM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 40,037
Karma: 17765146
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
This should fix it, but I need a test file to be sure: https://github.com/kovidgoyal/calibr...0c1222ff55adc9
kovidgoyal is offline   Reply With Quote
Old 09-26-2021, 05:41 PM   #4
Pannette
Junior Member
Pannette began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Sep 2021
Device: ReMarkable 2
Oh my, you replied so quickly! Yes, I'll get on that asap.

EDIT: File attached. It's called 1.zip.

Last edited by Pannette; 09-26-2021 at 05:46 PM.
Pannette is offline   Reply With Quote
Old 09-26-2021, 06:13 PM   #5
Pannette
Junior Member
Pannette began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Sep 2021
Device: ReMarkable 2
Quote:
Originally Posted by kovidgoyal View Post
This should fix it, but I need a test file to be sure: https://github.com/kovidgoyal/calibr...0c1222ff55adc9
How should I go about adding this change? Also, not sure if my post got eaten or if it's just waiting for mod approval, but I did in fact attach the file via a bug report.
Pannette is offline   Reply With Quote
Old 09-26-2021, 06:49 PM   #6
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 26,809
Karma: 41849005
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Aura2, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Pannette View Post
How should I go about adding this change? Also, not sure if my post got eaten or if it's just waiting for mod approval, but I did in fact attach the file via a bug report.
You do NOT attach unscrambled files here (MR). Use the Bug reporting tool (link at)
https://calibre-ebook.com/bugs
theducks is offline   Reply With Quote
Old 09-26-2021, 06:59 PM   #7
Pannette
Junior Member
Pannette began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Sep 2021
Device: ReMarkable 2
Quote:
Originally Posted by theducks View Post
You do NOT attach unscrambled files here (MR). Use the Bug reporting tool (link at)
https://calibre-ebook.com/bugs
Sorry, yes - I did submit a bug report already. Apologies for being unclear.
Pannette is offline   Reply With Quote
Old 09-26-2021, 08:20 PM   #8
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 17,633
Karma: 20473671
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Pannette View Post
How should I go about adding this change?
Either run calibre from source, or wait for next release in a couple of weeks.

FWIW: if I don't want the 'book' in calibre I use a no-frills program called "CBR_and_CBZ_to_PDF". You could use it as an interim solution.

BR
BetterRed is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PDF, EPUB or CBZ/R? babloyi Other formats 2 08-02-2016 06:16 PM
PDF to EPUB Size Issue (is PDF to CBZ an option?) Rika24 Conversion 4 06-30-2016 02:51 AM
Comics PDF to CBZ magphil Conversion 4 01-08-2016 04:32 AM
PDF vs CBR/CBZ crackhammer Other formats 1 03-21-2013 01:55 PM
PDF -> JPG -> CBZ -> LRF leveck Workshop 13 06-16-2011 12:21 PM


All times are GMT -4. The time now is 02:34 PM.


MobileRead.com is a privately owned, operated and funded community.