I’m running Hass.io on Raspberry Pi and trying to setup a media player in order to output TTS over speakers. I’ve tried both Gstreamer and VLC, both of which are giving me errors so I must be doing something wrong.
For GStreamer I added this to configuration.yaml
media_player:
- platform: gstreamer
But in the logs I see error:
2017-11-16 14:03:41 ERROR (MainThread) [homeassistant.components.media_player] Error while setting up platform gstreamer
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py", line 170, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=self.hass.loop)
File "/usr/lib/python3.6/asyncio/tasks.py", line 352, in wait_for
return fut.result()
File "/usr/lib/python3.6/asyncio/futures.py", line 244, in result
raise self._exception
File "/usr/lib/python3.6/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3.6/site-packages/homeassistant/components/media_player/gstreamer.py", line 40, in setup_platform
from gsp import GstreamerPlayer
File "/usr/lib/python3.6/site-packages/gsp/__init__.py", line 11, in <module>
import gi # pylint: disable=import-error
ModuleNotFoundError: No module named 'gi'
With VLC, I added this to configuration.yaml:
media_player:
- platform: vlc
But in the logs I see errors:
2017-11-16 14:42:12 ERROR (MainThread) [homeassistant.components.media_player] Error while setting up platform vlc
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py", line 170, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=self.hass.loop)
File "/usr/lib/python3.6/asyncio/tasks.py", line 352, in wait_for
return fut.result()
File "/usr/lib/python3.6/asyncio/futures.py", line 244, in result
raise self._exception
File "/usr/lib/python3.6/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3.6/site-packages/homeassistant/components/media_player/vlc.py", line 39, in setup_platform
config.get(CONF_ARGUMENTS))])
File "/usr/lib/python3.6/site-packages/homeassistant/components/media_player/vlc.py", line 48, in __init__
self._instance = vlc.Instance(arguments)
File "/usr/lib/python3.6/site-packages/vlc.py", line 1551, in __new__
return libvlc_new(len(args), args)
File "/usr/lib/python3.6/site-packages/vlc.py", line 3903, in libvlc_new
ctypes.c_void_p, ctypes.c_int, ListPOINTER(ctypes.c_char_p))
File "/usr/lib/python3.6/site-packages/vlc.py", line 246, in _Cfunction
raise NameError('no function %r' % (name,))
NameError: no function 'libvlc_new'
In both cases the errors suggest that the applications are not installed, but I was under the impression that the Hass.io components took care of installing the dependencies? Any advice would be much appreciated.