2018-02-26 21:16:12 INFO (MainThread) [homeassistant.components.switch] Setting up switch.broadlink
2018-02-26 21:16:12 ERROR (MainThread) [homeassistant.components.switch] Error while setting up platform broadlink
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/broadlink/init.py”, line 5, in
from Crypto.Cipher import AES
File “/usr/lib/python3.6/site-packages/Crypto/Cipher/init.py”, line 3, in
from Crypto.Cipher._mode_ecb import _create_ecb_cipher
File “/usr/lib/python3.6/site-packages/Crypto/Cipher/_mode_ecb.py”, line 29, in
from Crypto.Util._raw_api import (load_pycryptodome_raw_lib,
File “/usr/lib/python3.6/site-packages/Crypto/Util/_raw_api.py”, line 32, in
from Crypto.Util.py3compat import byte_string
ImportError: cannot import name ‘byte_string’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py”, line 84, in async_setup
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File “/usr/lib/python3.6/asyncio/tasks.py”, line 358, in wait_for
return fut.result()
File “/usr/lib/python3.6/asyncio/futures.py”, line 245, in result
raise self._exception
File “/usr/lib/python3.6/concurrent/futures/thread.py”, line 56, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/lib/python3.6/site-packages/homeassistant/components/switch/broadlink.py”, line 74, in setup_platform
import broadlink
File “/usr/lib/python3.6/site-packages/broadlink/init.py”, line 7, in
import pyaes
ModuleNotFoundError: No module named ‘pyaes’
2018-02-26 22:15:35 INFO (MainThread) [homeassistant.components.updater] Submitted analytics to Home Assistant servers. Information submitted includes {‘arch’: ‘armv7l’, ‘dev’: False, ‘docker’: True, ‘os_name’: ‘Linux’, ‘python_version’: ‘3.6.3’, ‘timezone’: ‘Asia/Singapore’, ‘version’: ‘0.64.0’, ‘virtualenv’: False, ‘hassio’: True, ‘distribution’: ‘alpine’, ‘os_version’: ‘3.7.0’, ‘huuid’: ‘5dedae959f20463ea904a98c621956e7’}
2018-02-26 22:15:35 INFO (MainThread) [homeassistant.components.updater] You are on the latest version (0.64.0) of Home Assistant
You are missing the pyaes package. In a virtualenv environment setup, you would install it with following commands:
source /srv/homeassistant/bin/activate
(homeassistant) pip3 install pyaes
Most hassio related posts where someone bitched because something broke in a .0 system update tells you how. Can’t remember exactly as I let everyone else do the testing before I jump