MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Plugins (https://www.mobileread.com/forums/forumdisplay.php?f=268)
-   -   add-tts-engine fails to run (https://www.mobileread.com/forums/showthread.php?t=296796)

dlibke 05-04-2018 05:35 PM

add-tts-engine fails to run
 
When I try to run this plugin, I get the following error msg:

Status: failed

Traceback (most recent call last):
File "/Applications/Sigil.app/Contents/plugin_launchers/python/launcher.py", line 134, in launch
target_script = __import__(script_module)
File "/Users/dlibke/Library/Application Support/sigil-ebook/sigil/plugins/add-tts-engine/plugin.py", line 4, in <module>
from lxml import etree, html
ImportError: No module named lxml
Error: No module named lxml

I download version 20171105 from GitHub/Kennyl/Sigil-Ebook-Plugins/releases.
I am using Sigil 0.9.9
OSX 10.13.3 High Sierra
Python 3.6.5 for OSX 10.9 or higher

The offending line in add-tts-engine/plugin.py context follows:
#!/usr/bin/env python
#-*- coding: utf-8 -*-
import sys
from lxml import etree, html

from PyQt5.QtWidgets

My question is 'should the leading l be a . or not exist?

st_albert 05-04-2018 07:15 PM

Quote:

Originally Posted by dlibke (Post 3690438)
File "/Users/dlibke/Library/Application Support/sigil-ebook/sigil/plugins/add-tts-engine/plugin.py", line 4, in <module>
from lxml import etree, html
ImportError: No module named lxml
Error: No module named lxml

Looks like you need to install the Python lxml module. However you do that on OSX.

Sorry my Apple fu is so limited. No doubt someone will be along shortly that can be of more help.

Albert

KevinH 05-04-2018 07:26 PM

Your external python interpreter is missing things needed to make Sigil work

The official Mac build comes with its own embedded Python 3 interpreter. Check to make sure you are using the embedded Python interpreter for Plugins. It is properly built and configured so things should just work.

If you are using your own build (or an external Python 3 interpreter), then you need to fully follow the build instructions for Mac.


All times are GMT -4. The time now is 08:56 PM.

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.