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

 找回密码
 立即注册
查看: 9775|回复: 3

[求助] Hass运行报错Setup failed for dhcp: unknown error

[复制链接]

4

主题

18

帖子

118

积分

注册会员

Rank: 2

积分
118
金钱
100
HASS币
0
发表于 2021-6-22 21:51:02 | 显示全部楼层 |阅读模式
硬件:荣耀7X (BND-AL10 EMUI9.1.0   安卓版本 9)
手机未root
软件环境:
手机安装 Termux  0.114
termux下安装 homeassistant
大略安装步骤
启动termux→更新软件→安装openssh→设置密码后Xshell连接→apt 安装python(3.9.5)→pip 安装homeassistant→安装成功后 hass→ 报错提示需要Pillow8.1.2→解决Pillow报错→hass→dhcp报错
~ $ hass
2021-06-22 21:37:09 ERROR (MainThread) [homeassistant.setup] Setup failed for dhcp: unknown error
Traceback (most recent call last):
  File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/homeassistant/setup.py", line 200, in _async_setup_component
    component = integration.get_component()
  File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/homeassistant/loader.py", line 490, in get_component
    cache[self.domain] = importlib.import_module(self.pkg_path)
  File "/data/data/com.termux/files/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 855, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/homeassistant/components/dhcp/__init__.py", line 17, in <module>
    from scapy.arch.common import compile_filter
  File "/home/.homeassistant/deps/lib/python3.9/site-packages/scapy/arch/__init__.py", line 135, in <module>
    _set_conf_sockets()  # Apply config
  File "/home/.homeassistant/deps/lib/python3.9/site-packages/scapy/config.py", line 618, in _set_conf_sockets
    conf.ifaces.reload()
  File "/home/.homeassistant/deps/lib/python3.9/site-packages/scapy/interfaces.py", line 238, in reload
    self._reload_provs()
  File "/home/.homeassistant/deps/lib/python3.9/site-packages/scapy/interfaces.py", line 234, in _reload_provs
    self._load(prov.reload(), prov)
  File "/home/.homeassistant/deps/lib/python3.9/site-packages/scapy/interfaces.py", line 53, in reload
    return self.load()
  File "/home/.homeassistant/deps/lib/python3.9/site-packages/scapy/arch/linux.py", line 420, in load
    get_if_raw_hwaddr(i, siocgifhwaddr=SIOCGIFHWADDR)[1]
  File "/home/.homeassistant/deps/lib/python3.9/site-packages/scapy/arch/common.py", line 87, in get_if_raw_hwaddr
    get_if(iff, siocgifhwaddr)
  File "/home/.homeassistant/deps/lib/python3.9/site-packages/scapy/arch/common.py", line 65, in get_if
    return ioctl(sck, cmd, struct.pack("16s16x", iff.encode("utf8")))
PermissionError: [Errno 13] Permission denied
2021-06-22 21:37:15 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of default_config. Setup failed for dependencies: dhcp
2021-06-22 21:37:15 ERROR (MainThread) [homeassistant.setup] Setup failed for default_config: Could not set up all dependencies.
搜索报错
PermissionError: [Errno 13] Permission denied
大意是没有权限,这个就不知道怎么解决了。
另外Pillow报错已经解决,见https://bbs.hassbian.com/thread-13328-1-1.html
再次恳请大神能给点灵感,非常感谢!!!
回复

使用道具 举报

0

主题

2

帖子

18

积分

新手上路

Rank: 1

积分
18
金钱
16
HASS币
0
发表于 2021-8-11 00:10:32 | 显示全部楼层
同样的问题, 要被逼疯了。请问解决了么?
回复

使用道具 举报

24

主题

884

帖子

5055

积分

论坛元老

Rank: 8Rank: 8

积分
5055
金钱
4166
HASS币
20
发表于 2021-8-14 00:54:12 来自手机 | 显示全部楼层
没有自行解决问题能力的,还是建议使用官方推荐硬件,手机安装的坑以后不知还有多少,太花精力了。
回复

使用道具 举报

1

主题

64

帖子

642

积分

高级会员

Rank: 4

积分
642
金钱
578
HASS币
0
发表于 2021-8-24 13:38:49 | 显示全部楼层
同样的问题
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-25 15:33 , Processed in 0.235259 second(s), 25 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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