INFO:homeassistant.setup:Setting up xiaomi_aqara
ERROR:homeassistant.setup:Error during setup of component xiaomi_aqara
Traceback (most recent call last):
File "d:\python\python37-32\lib\site-packages\homeassistant\setup.py", line 145, in _async_setup_component
component.setup, hass, processed_config)
File "d:\python\python37-32\lib\concurrent\futures\thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "d:\python\python37-32\lib\site-packages\homeassistant\components\xiaomi_aqara.py", line 123, in setup
from xiaomi_gateway import XiaomiGatewayDiscovery
File "d:\python\python37-32\lib\site-packages\pyxiaomigateway-0.9.0-py3.7.egg\xiaomi_gateway\__init__.py", line 9, in <module>
from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes
ModuleNotFoundError: No module named 'cryptography'
INFO:homeassistant.core:Bus:Handling <Event system_log_event[L]: timestamp=1523256331.8661985, level=ERROR, message=Error during setup of component xiaomi_aqara, exception=Traceback (most recent call last):
File "d:\python\python37-32\lib\site-packages\homeassistant\setup.py", line 145, in _async_setup_component
component.setup, hass, processed_config)
File "d:\python\python37-32\lib\concurrent\futures\thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "d:\python\python37-32\lib\site-packages\homeassistant\components\xiaomi_aqara.py", line 123, in setup
from xiaomi_gateway import XiaomiGatewayDiscovery
File "d:\python\python37-32\lib\site-packages\pyxiaomigateway-0.9.0-py3.7.egg\xiaomi_gateway\__init__.py", line 9, in <module>
from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes
ModuleNotFoundError: No module named 'cryptography'
, source=d:\python\python37-32\lib\site-packages\homeassistant\setup.py>
INFO:homeassistant.core:Bus:Handling <Event call_service[L]: domain=persistent_notification, service=create, service_data=title=Invalid config, message=The following components and platforms could not be set up:
Please check your config., notification_id=invalid_config, service_call_id=99730416-2>
INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: entity_id=persistent_notification.invalid_config, old_state=None, new_state=<state persistent_notification.invalid_config=notifying; title=Invalid config, message=The following components and platforms could not be set up:
Please check your config. @ 2018-04-09T14:45:31.874222+08:00>>
尝试安装'cryptography',错误提示:
D:\Python\Python37-32\lib\site-packages\setuptools\pep425tags.py:89: RuntimeWarning: Config variable 'Py_DEBUG' is unset, Python ABI tag may be incorrect
warn=(impl == 'cp')):
D:\Python\Python37-32\lib\site-packages\setuptools\pep425tags.py:93: RuntimeWarning: Config variable 'WITH_PYMALLOC' is unset, Python ABI tag may be incorrect
warn=(impl == 'cp')):
_configtest.c
_cffi_backend.c
d:\python\python37-32\include\pyconfig.h(59): fatal error C1083: 无法打开包括文件: “io.h”: No such file or directory
Traceback (most recent call last):
File "D:\Python\Python37-32\lib\distutils\_msvccompiler.py", line 423, in compile
self.spawn(args)
File "D:\Python\Python37-32\lib\distutils\_msvccompiler.py", line 542, in spawn
return super().spawn(cmd)
File "D:\Python\Python37-32\lib\distutils\ccompiler.py", line 909, in spawn
spawn(cmd, dry_run=self.dry_run)
File "D:\Python\Python37-32\lib\distutils\spawn.py", line 38, in spawn
_spawn_nt(cmd, search_path, dry_run=dry_run)
File "D:\Python\Python37-32\lib\distutils\spawn.py", line 81, in _spawn_nt
"command %r failed with exit status %d" % (cmd, rc))
distutils.errors.DistutilsExecError: command 'D:\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.13.26128\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2