『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 3418|回复: 2

[求助] 升级ha后 发现内置的hk报错

[复制链接]

23

主题

287

帖子

1474

积分

金牌会员

Rank: 6Rank: 6

积分
1474
金钱
1187
HASS币
0
发表于 2019-2-12 17:40:22 | 显示全部楼层 |阅读模式
升级了ha后,发现内置的hk报错
报错如下:
Error during setup of component homekit
Traceback (most recent call last):
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/setup.py", line 145, in _async_setup_component
    hass, processed_config)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/homekit/__init__.py", line 84, in async_setup
    await hass.async_add_executor_job(homekit.setup)
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/homekit/__init__.py", line 218, in setup
    from .accessories import HomeBridge, HomeDriver
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/homekit/accessories.py", line 8, in <module>
    from pyhap.accessory_driver import AccessoryDriver
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/pyhap/accessory_driver.py", line 46, in <module>
    from pyhap.hap_server import HAPServer
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/pyhap/hap_server.py", line 20, in <module>
    from Crypto.Protocol.KDF import HKDF
ModuleNotFoundError: No module named 'Crypto.Protocol'

回复

使用道具 举报

23

主题

287

帖子

1474

积分

金牌会员

Rank: 6Rank: 6

积分
1474
金钱
1187
HASS币
0
 楼主| 发表于 2019-2-12 17:42:00 | 显示全部楼层
请大神们解惑
回复

使用道具 举报

3

主题

145

帖子

927

积分

高级会员

五岁能抬头

Rank: 4

积分
927
金钱
782
HASS币
20
发表于 2019-2-12 20:46:31 | 显示全部楼层
说是找不到模块,试试 pip3 install --upgrade pycrypto
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-24 07:56 , Processed in 0.046795 second(s), 25 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表