@slowsmile
Thanks for your efforts. However, on my linux (Kubuntu, xenial, 16.04.1) box I'm still getting the same problem. Note that I am not using "bundled python" on this OS. Python version is Python version: 3.5.2 (default, Nov 17 2016, 17:05:23) on this machine.
Thinking it might be due to an OS problem, I installed sigil 0.9.7 on a Win-10 x64 machine, using bundled Python. The testplugin ran successfully, but the OpenDoc import plugin failed with the following log:
Spoiler:
Status: failed
Python version: 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:18:55) [MSC v.1900 64 bit (AMD64)]
Running OpenDocHTMLImport...
-- User input validation checks...
-- Main html file found...PASS
-- eBook cover file found...PASS
-- Input file validation checks...
-- Input html file is in OpenDoc HTML format...PASS
-- "Heading 1" style is used in the input html file....PASS
-- Start conversion to epub...
-- Gathering metadata...
-- Input file name = X:/commons/scratch-epub/GalacticFrontiers_sample.html
-- Author name = Darrell Bain
-- Title = Galactic Frontiers
-- Cover file name = 9781606193709.jpg
-- Found 1 ebook images in your local dir
-- Input file encoding is: UTF-8
-- Convert input file to utf-8 if required
Traceback (most recent call last):
File "C:\Program Files\Sigil\plugin_launchers\python\launcher.py", line 135, in launch
self.exitcode = target_script.run(container)
File "C:\Users\u838190\AppData\Local\sigil-ebook\sigil\plugins\OpenDocHTMLImport\plugin.py", line 86, in run
epub_path = convert2Epub(html_file_path)
File "C:\Users\u838190\AppData\Local\sigil-ebook\sigil\plugins\OpenDocHTMLImport\convert.py", line 75, in convert2Epub
docTidyNoWrap(WDIR, file)
File "C:\Users\u838190\AppData\Local\sigil-ebook\sigil\plugins\OpenDocHTMLImport\doc_tidy.py" , line 120, in docTidyNoWrap
html, errors = tidy_document(xhtml, options=base_options)
File "C:\Users\u838190\AppData\Local\sigil-ebook\sigil\plugins\OpenDocHTMLImport\tidylib\tidy .py", line 293, in tidy_document
return get_module_tidy().tidy_document(text, options)
File "C:\Users\u838190\AppData\Local\sigil-ebook\sigil\plugins\OpenDocHTMLImport\tidylib\tidy .py", line 305, in get_module_tidy
_tidy = Tidy()
File "C:\Users\u838190\AppData\Local\sigil-ebook\sigil\plugins\OpenDocHTMLImport\tidylib\tidy .py", line 160, in __init__
"\nCould not load library: " + self.libpath)
OSError:
Could not load library: C:\Users\u838190\AppData\Local\sigil-ebook\sigil\plugins\OpenDocHTMLImport\tidylib\win6 4\tidy.dll
Error:
Could not load library: C:\Users\u838190\AppData\Local\sigil-ebook\sigil\plugins\OpenDocHTMLImport\tidylib\win6 4\tidy.dll
The tidy.dll library exists in the path shown above.
This happened with both versions 0.2.7 and 0.2.8 of the plugin.
What OS are you using?
Albert