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

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

[求助] 求助高手homeassistant安装原生HomeKit 报错

[复制链接]

4

主题

64

帖子

254

积分

中级会员

Rank: 3Rank: 3

积分
254
金钱
190
HASS币
0
发表于 2019-4-15 00:42:44 | 显示全部楼层 |阅读模式
homeassistant安装原生HomeKit 报错

2019-04-15 00:37:05 ERROR (MainThread) [homeassistant.setup] Error during setup of component homekit
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/homeassistant/setup.py", line 151, in _async_setup_component
    hass, processed_config)
  File "/usr/local/lib/python3.5/dist-packages/homeassistant/components/homekit/__init__.py", line 80, in async_setup
    await hass.async_add_executor_job(homekit.setup)
  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 "/usr/local/lib/python3.5/dist-packages/homeassistant/components/homekit/__init__.py", line 214, in setup
    from .accessories import HomeBridge, HomeDriver
  File "/usr/local/lib/python3.5/dist-packages/homeassistant/components/homekit/accessories.py", line 8, in <module>
    from pyhap.accessory_driver import AccessoryDriver
  File "/home/pi/.homeassistant/deps/lib/python3.5/site-packages/pyhap/accessory_driver.py", line 46, in <module>
    from pyhap.hap_server import HAPServer
  File "/home/pi/.homeassistant/deps/lib/python3.5/site-packages/pyhap/hap_server.py", line 20, in <module>
    from Crypto.Protocol.KDF import HKDF
ImportError: cannot import name 'HKDF'
回复

使用道具 举报

27

主题

2143

帖子

8930

积分

论坛元老

Rank: 8Rank: 8

积分
8930
金钱
6782
HASS币
30

论坛元老

发表于 2019-4-15 09:23:40 | 显示全部楼层
本帖最后由 情非殇 于 2019-4-15 09:25 编辑

homekit:   
就这7个字母+1个冒号试试?
还是docker好用,不用关心环境支持问题
回复

使用道具 举报

23

主题

1338

帖子

6755

积分

超级版主

Rank: 8Rank: 8

积分
6755
金钱
5392
HASS币
100

教程狂人

发表于 2019-4-15 10:02:23 | 显示全部楼层
我用的内置的,比较省心
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-24 10:40 , Processed in 0.048431 second(s), 25 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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