Hi,
I’m getting a similar issue with the Raspberry Pi AIO setup, I have the sym link created (within hass virtual env):
sudo ln -s /usr/local/lib/python3.5/dist-packages/cec /srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/
(note: that the tutorial points to python3.4 and site packages, while 3.5 only has dist-packages)
I get the following error:
2017-09-14 00:28:27 ERROR (MainThread) [homeassistant.setup] Error during setup of component hdmi_cec
Traceback (most recent call last):
File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/cec/__init__.py", line 18, in
swig_import_helper
return importlib.import_module(mname)
File "/srv/homeassistant/homeassistant_venv/lib/python3.5/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 986, in _gcd_import
File "<frozen importlib._bootstrap>", line 969, in _find_and_load
File "<frozen importlib._bootstrap>", line 956, in _find_and_load_unlocked
ImportError: No module named '_cec'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/setup.py", line 194, in
_async_setup_component
component.setup, hass, processed_config)
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/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/hdmi_cec.py",
line 184, in setup
adapter = CecAdapter(name=display_name[:12], activate_source=False)
File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/pycec/cec.py", line 20, in __init__
import cec
File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/cec/__init__.py", line 21, in <module>
_cec = swig_import_helper()
File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/cec/__init__.py", line 20, in
swig_import_helper
return importlib.import_module('_cec')
File "/srv/homeassistant/homeassistant_venv/lib/python3.5/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: No module named '_cec'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/setup.py", line 194, in
_async_setup_component
component.setup, hass, processed_config)
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/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/hdmi_cec.py",
line 184, in setup
adapter = CecAdapter(name=display_name[:12], activate_source=False)
File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/pycec/cec.py", line 20, in __init__
import cec
File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/cec/__init__.py", line 21, in <module>
_cec = swig_import_helper()
File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/cec/__init__.py", line 20, in
swig_import_helper
return importlib.import_module('_cec')
File "/srv/homeassistant/homeassistant_venv/lib/python3.5/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: No module named '_cec'
`
any help would be greatly appreciated!