Fallo al convertir a LRF desde docx en version 7

Bug #2044408 reported by N Gonzalez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Unassigned

Bug Description

Fallo al convertir a LRF de DOCX ó EPUB en versión 7.0
Convertido el libro 1 de 1 (Asesinato en las afueras)
Conversion options changed from defaults:
  read_metadata_from_opf: 'C:\\Users\\Nice\\AppData\\Local\\Temp\\calibre_lejxqwcr\\67n0cy_s.opf'
  embed_all_fonts: True
  filter_css: ',font-family'
  keep_ligatures: True
  subset_embedded_fonts: True
  expand_css: True
  sans_family: 'Arial Rounded MT Bold'
  page_breaks_before: "//*[name()='h1' or name()='h2']"
  minimum_indent: 1.0
  serif_family: 'Arial Rounded MT Bold'
  embed_font_family: 'Segoe UI Semibold'
  verbose: 2
  font_size_mapping: '16'
  mono_family: 'Arial Rounded MT Bold'
  disable_font_rescaling: True
  wordspace: 1.5
  cover: 'C:\\Users\\Nice\\AppData\\Local\\Temp\\calibre_lejxqwcr\\6xkrb5lc.jpeg'
  output_profile: 'sony'
  enable_heuristics: True
Resolved conversion options
calibre version: 7.0.0
{'asciiize': False,
 'author_sort': None,
 'authors': None,
 'base_font_size': 0.0,
 'book_producer': None,
 'change_justification': 'original',
 'chapter': "//*[((name()='h1' or name()='h2') and re:test(., "
            "'\\s*((chapter|book|section|part)\\s+)|((prolog|prologue|epilogue)(\\s+|$))', "
            "'i')) or @class = 'chapter']",
 'chapter_mark': 'pagebreak',
 'comments': None,
 'cover': 'C:\\Users\\Nice\\AppData\\Local\\Temp\\calibre_lejxqwcr\\6xkrb5lc.jpeg',
 'debug_pipeline': None,
 'dehyphenate': True,
 'delete_blank_paragraphs': True,
 'disable_font_rescaling': True,
 'docx_inline_subsup': False,
 'docx_no_cover': False,
 'docx_no_pagebreaks_between_notes': False,
 'duplicate_links_in_toc': False,
 'embed_all_fonts': True,
 'embed_font_family': 'Segoe UI Semibold',
 'enable_autorotation': False,
 'enable_heuristics': True,
 'expand_css': True,
 'extra_css': None,
 'filter_css': ',font-family',
 'fix_indents': True,
 'font_size_mapping': '16',
 'format_scene_breaks': True,
 'header': False,
 'header_format': '%t by %a',
 'header_separation': 0.0,
 'html_unwrap_factor': 0.4,
 'input_encoding': None,
 'input_profile': <calibre.customize.profiles.InputProfile object at 0x0000024192BA7DD0>,
 'insert_blank_line': False,
 'insert_blank_line_size': 0.5,
 'insert_metadata': False,
 'isbn': None,
 'italicize_common_cases': True,
 'keep_ligatures': True,
 '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_indent': 1.0,
 'minimum_line_height': 120.0,
 'mono_family': 'Arial Rounded MT Bold',
 'no_chapters_in_toc': False,
 'no_inline_navbars': False,
 'output_profile': <calibre.customize.profiles.SonyReaderOutput object at 0x0000024192F99790>,
 'page_breaks_before': "//*[name()='h1' or name()='h2']",
 'prefer_metadata_cover': False,
 'pretty_print': False,
 'pubdate': None,
 'publisher': None,
 'rating': None,
 'read_metadata_from_opf': 'C:\\Users\\Nice\\AppData\\Local\\Temp\\calibre_lejxqwcr\\67n0cy_s.opf',
 'remove_fake_margins': True,
 'remove_first_image': False,
 'remove_paragraph_spacing': False,
 'remove_paragraph_spacing_indent_size': 1.5,
 'render_tables_as_images': False,
 'renumber_headings': True,
 'replace_scene_breaks': '',
 'sans_family': 'Arial Rounded MT Bold',
 'search_replace': '[]',
 'series': None,
 'series_index': None,
 'serif_family': 'Arial Rounded MT Bold',
 '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': True,
 'tags': None,
 'text_size_multiplier_for_rendered_tables': 1.0,
 'timestamp': None,
 'title': None,
 'title_sort': None,
 'toc_filter': None,
 'toc_threshold': 6,
 'transform_css_rules': '[]',
 'transform_html_rules': '[]',
 'unsmarten_punctuation': False,
 'unwrap_lines': True,
 'use_auto_toc': False,
 'verbose': 2,
 'wordspace': 1.5}
InputFormatPlugin: DOCX Input running
on C:\Users\Nice\AppData\Local\Temp\calibre_lejxqwcr\cb1sadfh.docx
Converting Word markup to HTML
Converting styles to CSS
Cleaning up redundant markup generated by Word
Detected an image that looks like a cover
Generating Table of Contents from headings
Parsing all content...
Parsing docx.css ...
Parsing index.html ...
********* Heuristic processing HTML *********
There are 13 blank lines. 0.007361268403171008 percent blank
minimum chapters required are: 8
found 28 pre-existing headings
Total wordcount is: 52830, Average words per section is: 1886, Marked up 28 chapters
Hard line breaks check returned False
Median line length is 193, calculated with html format
Fixing hyphenated content
Formatting scene breaks
Initial parse failed, using more forgiving parsers
Parsing index.html as HTML
Reading TOC from NCX...
Merging user specified metadata...
Detecting structure...
Flattening CSS and remapping font sizes...
Filtering CSS properties: , font-family
Embedding font: Segoe UI Semibold
Source base font size is 10.00000pt
Removing fake margins...
Found 1766 items of level: p_1
Negative text indent detected at level p_1, ignoring this level
Embedding font Segoe UI Semibold from c:\windows\fonts\seguisb.ttf
Embedding font Segoe UI Semibold from c:\windows\fonts\seguisb.ttf
Embedding font Segoe UI Semibold Italic from c:\windows\fonts\seguisbi.ttf
Decreased the font fonts/Segoe-UI-Semibold.ttf to 2.5% of its original size
Decreased the font fonts/Segoe-UI-Semibold-Italic.ttf to 2.3% of its original size
The font fonts/Segoe-UI-Semibold1.ttf is unused. Removing it.
The font fonts/Segoe-UI-Semibold2.ttf is unused. Removing it.
The font fonts/Segoe-UI-Semibold-Italic1.ttf is unused. Removing it.
Reduced total font size to 0.9% of original
Cleaning up manifest...
Trimming unused files from manifest...
Creating LRF Output...
Traceback (most recent call last):
  File "runpy.py", line 198, in _run_module_as_main
  File "runpy.py", line 88, in _run_code
  File "site.py", line 83, in <module>
  File "site.py", line 78, in main
  File "site.py", line 50, in run_entry_point
  File "calibre\utils\ipc\worker.py", line 215, in main
  File "calibre\gui2\convert\gui_conversion.py", line 38, in gui_convert_override
  File "calibre\gui2\convert\gui_conversion.py", line 25, in gui_convert
  File "calibre\ebooks\conversion\plumber.py", line 1281, in run
  File "calibre\ebooks\conversion\plugins\lrf_output.py", line 194, in convert
  File "calibre\ebooks\lrf\html\convert_from.py", line 1812, in process_file
AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS'

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

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

Changed in calibre:
status: New → Fix Released
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.