View Single Post
Old 05-13-2017, 04:34 AM   #158
Martina Schein
eBook-Reader-Fan
Martina Schein ought to be getting tired of karma fortunes by now.Martina Schein ought to be getting tired of karma fortunes by now.Martina Schein ought to be getting tired of karma fortunes by now.Martina Schein ought to be getting tired of karma fortunes by now.Martina Schein ought to be getting tired of karma fortunes by now.Martina Schein ought to be getting tired of karma fortunes by now.Martina Schein ought to be getting tired of karma fortunes by now.Martina Schein ought to be getting tired of karma fortunes by now.Martina Schein ought to be getting tired of karma fortunes by now.Martina Schein ought to be getting tired of karma fortunes by now.Martina Schein ought to be getting tired of karma fortunes by now.
 
Martina Schein's Avatar
 
Posts: 175
Karma: 444178
Join Date: Sep 2012
Location: Saarbruecken / DE
Device: Kobo Aura H2O 2nd Edition
Quote:
Originally Posted by kovidgoyal View Post
@Martina: I dont think that;s a bug in the beta, it would have happened in calibre 2.x as well. Regardless, this should fix it: https://github.com/kovidgoyal/calibr...c70f08cd89936b
It is correct Kovid. The error also occurs with version 2.85, which my husband has installed on his PC.
However, we do not get the error for all Word files that we have converted from PDF documents, but only at some.
This is not noticeable to me before, since we almost work with ePubs.


Quote:
Originally Posted by kovidgoyal View Post
Released beta version 2.99.4 with fixes for the issues reported by DivingDuck and Martina
Thanks a lot.

Addendum:
This error still exists. With my test document I still get the error message.

Spoiler:
calibre, version 2.99.4 (win32, embedded-python: True)
Konvertierungsfehler: Fehlgeschlagen: Buch 1 von 1 (Grundgesetz) konvertieren

Buch 1 von 1 (Grundgesetz) konvertieren
C:\Program Files\Calibre2\app\pylib.zip\dateutil\parser.py:60 1: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
Conversion options changed from defaults:
replace_scene_breaks: u'\u2217 \u2217 \u2217'
preserve_cover_aspect_ratio: True
base_font_size: 16.0
font_size_mapping: u'5.0, 7.0, 9.0, 12.0, 13.5, 17.0, 20.0, 22.0, 24.0'
remove_paragraph_spacing_indent_size: 1.0
read_metadata_from_opf: u'C:\\Users\\DARKAN~1\\AppData\\Local\\Temp\\calib re_kcrn3v\\iam0fy.opf'
margin_top: 0.0
insert_metadata: True
chapter_mark: u'none'
margin_bottom: 0.0
output_profile: 'tablet'
no_default_epub_cover: True
extra_css: u'body {page-break-before: always;}\np div {orphans: 3; widows: 3;}\nh1, h2, h3, h4, h5, h6 {-webkit-hyphens: none !important; hyphens: none !important;}'
flow_size: 4096
margin_left: 0.0
minimum_line_height: 100.0
epub_flatten: True
margin_right: 0.0
verbose: 2
filter_css: u',font-family'
Resolved conversion options
calibre version: 2.99.4
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 16.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|pr ologue|epilogue)(\\s+|$))', 'i')) or @class = 'chapter']",
'chapter_mark': u'none',
'comments': None,
'cover': None,
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'docx_inline_subsup': False,
'docx_no_cover': False,
'docx_no_pagebreaks_between_notes': False,
'dont_split_on_page_breaks': False,
'duplicate_links_in_toc': False,
'embed_all_fonts': False,
'embed_font_family': None,
'enable_heuristics': False,
'epub_flatten': True,
'epub_inline_toc': False,
'epub_toc_at_end': False,
'expand_css': False,
'extra_css': u'body {page-break-before: always;}\np div {orphans: 3; widows: 3;}\nh1, h2, h3, h4, h5, h6 {-webkit-hyphens: none !important; hyphens: none !important;}',
'extract_to': None,
'filter_css': u',font-family',
'fix_indents': True,
'flow_size': 4096,
'font_size_mapping': u'5.0, 7.0, 9.0, 12.0, 13.5, 17.0, 20.0, 22.0, 24.0',
'format_scene_breaks': True,
'html_unwrap_factor': 0.4,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x000001E3A0C1B3C8>,
'insert_blank_line': False,
'insert_blank_line_size': 0.5,
'insert_metadata': True,
'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': 0.0,
'margin_left': 0.0,
'margin_right': 0.0,
'margin_top': 0.0,
'markup_chapter_headings': True,
'max_toc_links': 50,
'minimum_line_height': 100.0,
'no_chapters_in_toc': False,
'no_default_epub_cover': True,
'no_inline_navbars': False,
'no_svg_cover': False,
'output_profile': <calibre.customize.profiles.TabletOutput object at 0x000001E3A0C1BE10>,
'page_breaks_before': u'/',
'prefer_metadata_cover': False,
'preserve_cover_aspect_ratio': True,
'pretty_print': True,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': u'C:\\Users\\DARKAN~1\\AppData\\Local\\Temp\\calib re_kcrn3v\\iam0fy.opf',
'remove_fake_margins': True,
'remove_first_image': False,
'remove_paragraph_spacing': False,
'remove_paragraph_spacing_indent_size': 1.0,
'renumber_headings': True,
'replace_scene_breaks': u'\u2217 \u2217 \u2217',
'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': '[]',
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: DOCX Input running
on C:\Users\DARKAN~1\AppData\Local\Temp\calibre_kcrn3 v\o4k_xw.docx
Settings word/word/settings.xml do not exist
Styles word/word/styles.xml do not exist
Numbering styles word/word/numbering.xml do not exist
Converting Word markup to HTML
Python function terminated unexpectedly
'Styles' object has no attribute 'theme' (Error Code: 1)
Traceback (most recent call last):
File "site.py", line 101, in main
File "site.py", line 78, in run_entry_point
File "site-packages\calibre\utils\ipc\worker.py", line 195, in main
File "site-packages\calibre\gui2\convert\gui_conversion.py", line 33, in gui_convert_override
File "site-packages\calibre\gui2\convert\gui_conversion.py", line 26, in gui_convert
File "site-packages\calibre\ebooks\conversion\plumber.py", line 1088, in run
File "site-packages\calibre\customize\conversion.py", line 245, in __call__
File "site-packages\calibre\ebooks\conversion\plugins\docx_in put.py", line 34, in convert
File "site-packages\calibre\ebooks\docx\to_html.py", line 122, in __call__
File "site-packages\calibre\ebooks\docx\to_html.py", line 429, in convert_p
File "site-packages\calibre\ebooks\docx\to_html.py", line 678, in convert_run
File "site-packages\calibre\ebooks\docx\styles.py", line 314, in resolve_run
AttributeError: 'Styles' object has no attribute 'theme'
Attached Thumbnails
Click image for larger version

Name:	Calibr3e-2.99.4_Konvertierungsfehler_01.jpg
Views:	198
Size:	351.7 KB
ID:	156716   Click image for larger version

Name:	Calibr3e-2.99.4_Konvertierungsfehler_02.jpg
Views:	191
Size:	445.0 KB
ID:	156717  

Last edited by Martina Schein; 05-13-2017 at 04:52 AM.
Martina Schein is offline   Reply With Quote