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

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

[求助] linux deploy启动HB时报http组件安装失败

[复制链接]

2

主题

12

帖子

166

积分

注册会员

Rank: 2

积分
166
金钱
154
HASS币
0
发表于 2021-1-8 23:13:05 | 显示全部楼层 |阅读模式
手机用的armhf架构debian的系统,已经照安装步骤装好了HB,是在homeassistant用户下用sudo pip3 install -U homeassistant 安装的(跟教程的区别就是用了sudo,不用sudo装不上去。。),安装过程没有报错,可在最后hass启动时候报错,如下:看着样子是安装http组件失败,找遍了全网也没看见有这个报错的,求大神帮助


(homeassistant) homeassistant@localhost:/home/android$ hass
2021-01-08 23:08:24 ERROR (MainThread) [homeassistant.setup] Error during setup of component http
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/homeassistant/setup.py", line 213, in _async_setup_component
    result = await task
  File "/usr/local/lib/python3.7/dist-packages/homeassistant/components/http/__init__.py", line 258, in async_setup
    local_ip = await hass.async_add_executor_job(hass_util.get_local_ip)
  File "/usr/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.7/dist-packages/homeassistant/util/__init__.py", line 108, in get_local_ip
    sock.close()
UnboundLocalError: local variable 'sock' referenced before assignment
2021-01-08 23:08:24 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of system_log. Setup failed for dependencies: http
2021-01-08 23:08:24 ERROR (MainThread) [homeassistant.setup] Setup failed for system_log: Could not set up all dependencies.
2021-01-08 23:08:24 WARNING (Recorder) [homeassistant.components.recorder] Ended unfinished session (id=10 from 2021-01-08 14:50:21.737447)
2021-01-08 23:08:24 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of websocket_api. Setup failed for dependencies: http
2021-01-08 23:08:24 ERROR (MainThread) [homeassistant.setup] Setup failed for websocket_api: Could not set up all dependencies.
2021-01-08 23:08:24 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of alexa. Setup failed for dependencies: http
2021-01-08 23:08:24 ERROR (MainThread) [homeassistant.setup] Setup failed for alexa: Could not set up all dependencies.
2021-01-08 23:08:24 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of config. Setup failed for dependencies: http
2021-01-08 23:08:24 ERROR (MainThread) [homeassistant.setup] Setup failed for config: Could not set up all dependencies.
2021-01-08 23:08:24 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of webhook. Setup failed for dependencies: http
2021-01-08 23:08:24 ERROR (MainThread) [homeassistant.setup] Setup failed for webhook: Could not set up all dependencies.
2021-01-08 23:08:24 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of auth. Setup failed for dependencies: http
2021-01-08 23:08:24 ERROR (MainThread) [homeassistant.setup] Setup failed for auth: Could not set up all dependencies.
2021-01-08 23:08:24 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of api. Setup failed for dependencies: http
2021-01-08 23:08:24 ERROR (MainThread) [homeassistant.setup] Setup failed for api: Could not set up all dependencies.
2021-01-08 23:08:24 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of image. Setup failed for dependencies: http
2021-01-08 23:08:24 ERROR (MainThread) [homeassistant.setup] Setup failed for image: Could not set up all dependencies.
2021-01-08 23:08:25 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of search. Setup failed for dependencies: websocket_api
2021-01-08 23:08:25 ERROR (MainThread) [homeassistant.setup] Setup failed for search: Could not set up all dependencies.
2021-01-08 23:08:25 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of cloud. Setup failed for dependencies: http, webhook, alexa
2021-01-08 23:08:25 ERROR (MainThread) [homeassistant.setup] Setup failed for cloud: Could not set up all dependencies.
2021-01-08 23:08:25 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of person. Setup failed for dependencies: image
2021-01-08 23:08:25 ERROR (MainThread) [homeassistant.setup] Setup failed for person: Could not set up all dependencies.
2021-01-08 23:08:25 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of onboarding. Setup failed for dependencies: auth, http, person
2021-01-08 23:08:25 ERROR (MainThread) [homeassistant.setup] Setup failed for onboarding: Could not set up all dependencies.
2021-01-08 23:08:25 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of frontend. Setup failed for dependencies: api, auth, config, http, onboarding, search, system_log, websocket_api
2021-01-08 23:08:25 ERROR (MainThread) [homeassistant.setup] Setup failed for frontend: Could not set up all dependencies.
2021-01-08 23:08:25 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of logbook. Setup failed for dependencies: frontend, http
2021-01-08 23:08:25 ERROR (MainThread) [homeassistant.setup] Setup failed for logbook: Could not set up all dependencies.
2021-01-08 23:08:25 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of zeroconf. Setup failed for dependencies: api
2021-01-08 23:08:25 ERROR (MainThread) [homeassistant.setup] Setup failed for zeroconf: Could not set up all dependencies.
2021-01-08 23:08:25 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of history. Setup failed for dependencies: http
2021-01-08 23:08:25 ERROR (MainThread) [homeassistant.setup] Setup failed for history: Could not set up all dependencies.
2021-01-08 23:08:25 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of tts. Setup failed for dependencies: http
2021-01-08 23:08:25 ERROR (MainThread) [homeassistant.setup] Setup failed for tts: Could not set up all dependencies.
2021-01-08 23:08:25 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of map. Setup failed for dependencies: frontend
2021-01-08 23:08:25 ERROR (MainThread) [homeassistant.setup] Setup failed for map: Could not set up all dependencies.
2021-01-08 23:08:25 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of media_source. Setup failed for dependencies: http
2021-01-08 23:08:25 ERROR (MainThread) [homeassistant.setup] Setup failed for media_source: Could not set up all dependencies.
2021-01-08 23:08:25 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of system_health. Setup failed for dependencies: http
2021-01-08 23:08:25 ERROR (MainThread) [homeassistant.setup] Setup failed for system_health: Could not set up all dependencies.
2021-01-08 23:08:25 ERROR (MainThread) [homeassistant.components.updater] Error requesting Home Assistant update data: Cannot connect to host updater.home-assistant.io:443 ssl:default [Temporary failure in name resolution]
2021-01-08 23:08:25 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of mobile_app. Setup failed for dependencies: http, webhook, person
2021-01-08 23:08:25 ERROR (MainThread) [homeassistant.setup] Setup failed for mobile_app: Could not set up all dependencies.
2021-01-08 23:08:35 ERROR (SyncWorker_27) [homeassistant.util.package] Unable to install package zeroconf==0.28.8: WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0xb68bd630>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/zeroconf/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0xb54055d0>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/zeroconf/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0xb5405f90>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/zeroconf/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0xb54059d0>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/zeroconf/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0xb542ea90>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/zeroconf/
ERROR: Could not find a version that satisfies the requirement zeroconf==0.28.8 (from -c /usr/local/lib/python3.7/dist-packages/homeassistant/package_constraints.txt (line 33)) (from versions: none)
ERROR: No matching distribution found for zeroconf==0.28.8 (from -c /usr/local/lib/python3.7/dist-packages/homeassistant/package_constraints.txt (line 33))
2021-01-08 23:08:35 ERROR (MainThread) [homeassistant.setup] Setup failed for ssdp: Requirements for zeroconf not found: ['zeroconf==0.28.8'].
2021-01-08 23:08:35 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of default_config. Setup failed for dependencies: cloud, frontend, history, logbook, map, media_source, mobile_app, person, ssdp, system_health, webhook, zeroconf
2021-01-08 23:08:35 ERROR (MainThread) [homeassistant.setup] Setup failed for default_config: Could not set up all dependencies.
2021-01-08 23:08:35 WARNING (MainThread) [homeassistant.bootstrap] Support for the running Python version 3.7.3 is deprecated and will be removed in the first release after December 7, 2020. Please upgrade Python to 3.8.0 or higher.
2021-01-08 23:08:35 WARNING (MainThread) [homeassistant.bootstrap] Detected that frontend did not load. Activating safe mode
2021-01-08 23:08:35 ERROR (MainThread) [homeassistant.setup] Error during setup of component http
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/homeassistant/setup.py", line 213, in _async_setup_component
    result = await task
  File "/usr/local/lib/python3.7/dist-packages/homeassistant/components/http/__init__.py", line 258, in async_setup
    local_ip = await hass.async_add_executor_job(hass_util.get_local_ip)
  File "/usr/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.7/dist-packages/homeassistant/util/__init__.py", line 108, in get_local_ip
    sock.close()
UnboundLocalError: local variable 'sock' referenced before assignment
2021-01-08 23:08:35 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of system_log. Setup failed for dependencies: http
2021-01-08 23:08:35 ERROR (MainThread) [homeassistant.setup] Setup failed for system_log: Could not set up all dependencies.
2021-01-08 23:08:35 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of websocket_api. Setup failed for dependencies: http
2021-01-08 23:08:35 ERROR (MainThread) [homeassistant.setup] Setup failed for websocket_api: Could not set up all dependencies.
2021-01-08 23:08:35 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of alexa. Setup failed for dependencies: http
2021-01-08 23:08:35 ERROR (MainThread) [homeassistant.setup] Setup failed for alexa: Could not set up all dependencies.
2021-01-08 23:08:35 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of config. Setup failed for dependencies: http
2021-01-08 23:08:35 ERROR (MainThread) [homeassistant.setup] Setup failed for config: Could not set up all dependencies.
2021-01-08 23:08:35 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of webhook. Setup failed for dependencies: http
2021-01-08 23:08:35 ERROR (MainThread) [homeassistant.setup] Setup failed for webhook: Could not set up all dependencies.
2021-01-08 23:08:35 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of auth. Setup failed for dependencies: http
2021-01-08 23:08:35 ERROR (MainThread) [homeassistant.setup] Setup failed for auth: Could not set up all dependencies.
2021-01-08 23:08:35 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of api. Setup failed for dependencies: http
2021-01-08 23:08:35 ERROR (MainThread) [homeassistant.setup] Setup failed for api: Could not set up all dependencies.
2021-01-08 23:08:35 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of image. Setup failed for dependencies: http
2021-01-08 23:08:35 ERROR (MainThread) [homeassistant.setup] Setup failed for image: Could not set up all dependencies.
2021-01-08 23:08:35 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of search. Setup failed for dependencies: websocket_api
2021-01-08 23:08:35 ERROR (MainThread) [homeassistant.setup] Setup failed for search: Could not set up all dependencies.
2021-01-08 23:08:35 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of cloud. Setup failed for dependencies: http, webhook, alexa
2021-01-08 23:08:35 ERROR (MainThread) [homeassistant.setup] Setup failed for cloud: Could not set up all dependencies.
2021-01-08 23:08:35 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of person. Setup failed for dependencies: image
2021-01-08 23:08:35 ERROR (MainThread) [homeassistant.setup] Setup failed for person: Could not set up all dependencies.
2021-01-08 23:08:35 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of onboarding. Setup failed for dependencies: auth, http, person
2021-01-08 23:08:35 ERROR (MainThread) [homeassistant.setup] Setup failed for onboarding: Could not set up all dependencies.
2021-01-08 23:08:35 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of frontend. Setup failed for dependencies: api, auth, config, http, onboarding, search, system_log, websocket_api
2021-01-08 23:08:35 ERROR (MainThread) [homeassistant.setup] Setup failed for frontend: Could not set up all dependencies.
2021-01-08 23:08:35 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of safe_mode. Setup failed for dependencies: frontend, cloud
2021-01-08 23:08:35 ERROR (MainThread) [homeassistant.setup] Setup failed for safe_mode: Could not set up all dependencies.
2021-01-08 23:08:35 WARNING (MainThread) [homeassistant.bootstrap] Support for the running Python version 3.7.3 is deprecated and will be removed in the first release after December 7, 2020. Please upgrade Python to 3.8.0 or higher.





回复

使用道具 举报

28

主题

83

帖子

912

积分

高级会员

Rank: 4

积分
912
金钱
829
HASS币
0
发表于 2021-5-26 23:03:01 | 显示全部楼层
请问解决问题了吗? 我也是这样
回复

使用道具 举报

2

主题

12

帖子

166

积分

注册会员

Rank: 2

积分
166
金钱
154
HASS币
0
 楼主| 发表于 2021-5-28 22:52:45 | 显示全部楼层
etmomoabc 发表于 2021-5-26 23:03
请问解决问题了吗? 我也是这样

没 后来换了个环境和教程
https://bbs.hassbian.com/thread-11957-1-1.html
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-25 13:24 , Processed in 0.130626 second(s), 24 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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