r.eads e.njoys b.ooks lol
Posts: 76
Karma: 580748
Join Date: Mar 2010
Location: It's time to get this Book a Rest
Device: Kindle 4 NT
|
BetterRed, thank you again for your efforts. I was very optimistic, since the conversion worked with single files using the previous calibre and plugin versions and only the wrong path prevented the bulk operation to work. So I've copied the wordconv.exe in the required directory (how didn't I think of this trick?) but the result was the error below.
Then I tested again with only one file and it's the same.
calibre, version 2.0.0 (win32, isfrozen: True)
Conversion Error: Failed: Convert book 1 of 1 (Gxxxx)
Convert book 1 of 1 (Gxxxx)
Resolved conversion options
calibre version: 2.0.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|pr ologue|epilogue)(\\s+|$))', 'i')) or @class = 'chapter']",
'chapter_mark': u'pagebreak',
'comments': None,
'cover': None,
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'docx_no_cover': False,
'dont_compress': False,
'duplicate_links_in_toc': False,
'embed_all_fonts': False,
'embed_font_family': None,
'enable_heuristics': False,
'expand_css': False,
'extra_css': None,
'extract_to': 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 0x0000000002013550>,
'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,
'mobi_file_type': u'old',
'mobi_ignore_margins': False,
'mobi_keep_original_images': False,
'mobi_toc_at_start': False,
'no_chapters_in_toc': False,
'no_inline_navbars': True,
'no_inline_toc': False,
'output_profile': <calibre.customize.profiles.KindleOutput object at 0x0000000002013B00>,
'page_breaks_before': u"//*[name()='h1' or name()='h2']",
'personal_doc': u'[PDOC]',
'prefer_author_sort': False,
'prefer_metadata_cover': False,
'pretty_print': False,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': u'C:\\Users\\rebl\\AppData\\Local\\Temp\\calibre_d dmeos\\almttb.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,
'share_not_sync': False,
'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,
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2,
'wordconv_exe_path': u'c:\\Program Files\\Microsoft Office\\Office12\\Wordconv.exe'}
InputFormatPlugin: DOC Input running
on C:\Users\rebl\AppData\Local\Temp\calibre_ddmeos\cb kde7.doc
Convert doc C:\Users\rebl\AppData\Local\Temp\calibre_ddmeos\cb kde7.doc to docx via c:\Program Files\Microsoft Office\Office12\Wordconv.exe
Temp directory C:\Users\rebl\AppData\Local\Temp\calibre_ddmeos\lk zihndoc_input temp output fileC:\Users\rebl\AppData\Local\Temp\calibre_ddmeo s\lkzihndoc_input\cbkde7.doc.docx
Python function terminated unexpectedly
Command '[u'c:\\Program Files\\Microsoft Office\\Office12\\Wordconv.exe', '-oice', '-nme', u'C:\\Users\\rebl\\AppData\\Local\\Temp\\calibre_d dmeos\\cbkde7.doc', u'C:\\Users\\rebl\\AppData\\Local\\Temp\\calibre_d dmeos\\lkzihndoc_input\\cbkde7.doc.docx']' returned non-zero exit status -1 (Error Code: 1)
Traceback (most recent call last):
File "site.py", line 132, in main
File "site.py", line 109, 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 31, in gui_convert_override
File "site-packages\calibre\gui2\convert\gui_conversion.py", line 25, in gui_convert
File "site-packages\calibre\ebooks\conversion\plumber.py", line 1041, in run
File "site-packages\calibre\customize\conversion.py", line 241, in __call__
File "calibre_plugins.doc_input.__init__", line 56, in convert
File "subprocess.py", line 540, in check_call
subprocess.CalledProcessError: Command '[u'c:\\Program Files\\Microsoft Office\\Office12\\Wordconv.exe', '-oice', '-nme', u'C:\\Users\\rebl\\AppData\\Local\\Temp\\calibre_d dmeos\\cbkde7.doc', u'C:\\Users\\rebl\\AppData\\Local\\Temp\\calibre_d dmeos\\lkzihndoc_input\\cbkde7.doc.docx']' returned non-zero exit status -1
Update:
I've tried performing the conversion for a single file, this time modifying the path to any of the two locations of wordconv.exe in Program Files x86:
C:\Program Files (x86)\Microsoft Office\Office14\wordconv.exe
and
C:\Program Files (x86)\Microsoft Office\Office12\wordconv.exe
Both of them worked.
Maybe wordconv.exe requires some kind of registration like when registering controls or dlls? Anyway it doesn't seem to like being run from a different location that the one it was installed to.
So I guess the solution would be to be able indeed to specify a different path in Preferences/Input. Currently, after browsing to the new location, the path appears in the filed but after applying changes it is not saved.
Last edited by rebl; 08-26-2014 at 06:25 PM.
|