I got error when trying use the tts baidu, by trace the log, the error happened when trying to load the libopenjp2.so.7. I am using hassbian with python 3.5 .
Do you guys meet similar problem when Hassbian can not load the non-standard libraries?
Thanks
2018-01-03 14:34:03 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/usr/lib/python3.5/asyncio/tasks.py”, line 241, in _step
result = coro.throw(exc)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/core.py”, line 1031, in _event_to_service_call
yield from service_handler.func(service_call)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/tts/init.py”, line 140, in async_say_handle
options=options
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/tts/init.py”, line 311, in async_get_url
engine, key, message, use_cache, language, options)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/tts/init.py”, line 325, in async_get_tts_audio
message, language, options)
File “/usr/lib/python3.5/asyncio/futures.py”, line 380, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.5/asyncio/tasks.py”, line 304, in _wakeup
future.result()
File “/usr/lib/python3.5/asyncio/futures.py”, line 293, in result
raise self._exception
File “/usr/lib/python3.5/concurrent/futures/thread.py”, line 55, in run
result = self.fn(*self.args, **self.kwargs)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/tts/baidu.py”, line 90, in get_tts_audio
from aip import AipSpeech
File “/srv/homeassistant/lib/python3.5/site-packages/aip/init.py”, line 6, in
from .ocr import AipOcr
File “/srv/homeassistant/lib/python3.5/site-packages/aip/ocr.py”, line 7, in
from .base import AipBase
File “/srv/homeassistant/lib/python3.5/site-packages/aip/base.py”, line 14, in
from PIL import Image
File “/srv/homeassistant/lib/python3.5/site-packages/PIL/Image.py”, line 56, in
from . import _imaging as core
ImportError: libopenjp2.so.7: cannot open shared object file: No such file or directory