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

 找回密码
 立即注册
查看: 8844|回复: 6

[技术探讨] 求教系列 已解决,Ubuntu20.04.1安装homeassistant集成xiaomi miio...

[复制链接]

2

主题

60

帖子

889

积分

高级会员

Rank: 4

积分
889
金钱
829
HASS币
0
发表于 2020-9-2 16:17:19 | 显示全部楼层 |阅读模式
本帖最后由 9609759 于 2020-9-3 16:25 编辑

Ubuntu20.04.1安装homeassistant,集成xiaomi miio始终在转圈圈,等了几个小时都不行,
扶墙改成了全局也是一样。
0KQ@DON_FD_L@(2$(3[58.png

已经解决,解决方式:虚拟环境下命令:pip install tensorflow --use-feature=2020-resolver
需要下载的文件比较大 320MB。扶墙后速度很快。
命令安装完成后,在homeassistant的WEB页面集成miio就不会有问题了。
回复

使用道具 举报

10

主题

270

帖子

2261

积分

超级版主

Rank: 8Rank: 8

积分
2261
金钱
1971
HASS币
61

教程狂人

QQ
发表于 2020-9-2 16:40:29 | 显示全部楼层
应该是网络问题。
回复

使用道具 举报

40

主题

3056

帖子

1万

积分

超级版主

Nero

Rank: 8Rank: 8

积分
11149
金钱
8042
HASS币
182
发表于 2020-9-2 18:02:13 | 显示全部楼层
看看 home-assistant.log 日志文件
Nero
回复

使用道具 举报

2

主题

60

帖子

889

积分

高级会员

Rank: 4

积分
889
金钱
829
HASS币
0
 楼主| 发表于 2020-9-3 14:32:53 | 显示全部楼层
日志如下:

2020-09-02 18:20:28 ERROR (SyncWorker_7) [homeassistant.util.package] Unable to install package python-miio==0.5.3: ERROR: Command errored out with exit status 1:
     command: /srv/homeassistant/homeassistant_venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-m22d3tfb/netifaces/setup.py'"'"'; __file__='"'"'/tmp/pip-install-m22d3tfb/netifaces/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-clr6l1fh/install-record.txt --single-version-externally-managed --compile --install-headers /srv/homeassistant/homeassistant_venv/include/site/python3.8/netifaces
         cwd: /tmp/pip-install-m22d3tfb/netifaces/
    Complete output (16 lines):
    running install
    running build
    running build_ext
    checking for getifaddrs...not found.
    checking for getnameinfo...not found.
    checking for socket IOCTLs...not found.
    checking for optional header files...none found.
    checking whether struct sockaddr has a length field...no.
    checking which sockaddr_xxx structs are defined...none!
    checking for routing socket support...no.
    checking for sysctl(CTL_NET...) support...no.
    checking for netlink support...no.
    building 'netifaces' extension
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DNETIFACES_VERSION=0.10.9 -I/srv/homeassistant/homeassistant_venv/include -I/usr/include/python3.8 -c netifaces.c -o build/temp.linux-x86_64-3.8/netifaces.o
    unable to execute 'x86_64-linux-gnu-gcc': No such file or directory
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /srv/homeassistant/homeassistant_venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-m22d3tfb/netifaces/setup.py'"'"'; __file__='"'"'/tmp/pip-install-m22d3tfb/netifaces/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-clr6l1fh/install-record.txt --single-version-externally-managed --compile --install-headers /srv/homeassistant/homeassistant_venv/include/site/python3.8/netifaces Check the logs for full command output.
2020-09-02 18:20:28 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/srv/homeassistant/homeassistant_venv/lib/python3.8/site-packages/homeassistant/data_entry_flow.py", line 117, in async_init
    flow = await self.async_create_flow(handler, context=context, data=data)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.8/site-packages/homeassistant/config_entries.py", line 526, in async_create_flow
    await async_process_deps_reqs(self.hass, self._hass_config, integration)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.8/site-packages/homeassistant/setup.py", line 321, in async_process_deps_reqs
    await requirements.async_get_integration_with_requirements(
  File "/srv/homeassistant/homeassistant_venv/lib/python3.8/site-packages/homeassistant/requirements.py", line 75, in async_get_integration_with_requirements
    await async_process_requirements(
  File "/srv/homeassistant/homeassistant_venv/lib/python3.8/site-packages/homeassistant/requirements.py", line 132, in async_process_requirements
    raise RequirementsNotFound(name, [req])
homeassistant.requirements.RequirementsNotFound: Requirements for xiaomi_miio not found: ['python-miio==0.5.3'].
2020-09-02 18:20:31 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-09-02 19:23:33 ERROR (MainThread) [metno] https://aa015h6buqvih86i1.api.me ... orecast/2.0/classic returned
2020-09-02 19:23:33 ERROR (MainThread) [homeassistant.components.met.weather] Retrying in 18 minutes
回复

使用道具 举报

2

主题

60

帖子

889

积分

高级会员

Rank: 4

积分
889
金钱
829
HASS币
0
 楼主| 发表于 2020-9-3 15:16:57 | 显示全部楼层
google翻译如下

2020-09-02 18:20:28错误(SyncWorker_7)[homeassistant.util.package]无法安装软件包python-miio == 0.5.3:错误:命令错误,退出状态为1:
     命令:/ srv / homeassistant / homeassistant_venv / bin / python3 -u -c'导入sys,setuptools,标记化; sys.argv [0] ='“'”'/tmp/pip-install-m22d3tfb/netifaces/setup.py'“'”'; __file __ ='“'”'/ tmp / pip-install-m22d3tfb / netifaces / setup.py'“'”'; f = getattr(tokenize,'“'”'open'“'”,打开)(__ file__) ; code = f.read()。replace('“'”'\ r \ n'“'”','“'”'\ n'“'”'); f.close(); exec(compile(代码,__file__,'“'”'exec'“'”'))'安装--record /tmp/pip-record-clr6l1fh/install-record.txt-单一版本-外部管理-编译-安装标题/srv/homeassistant/homeassistant_venv/include/site/python3.8/netifaces
         CWD:/ tmp / pip-install-m22d3tfb / netifaces /
    完整输出(16行):
    运行安装
    运行构建
    运行build_ext
    正在检查getifaddrs ...未找到。
    正在检查getnameinfo ...未找到。
    正在检查套接字IOCTL ...未找到。
    正在检查可选的头文件...未找到。
    检查struct sockaddr是否具有长度字段...否。
    检查定义了哪些sockaddr_xxx结构...无!
    检查路由套接字支持...否。
    检查sysctl(CTL_NET ...)支持...否。
    正在检查netlink支持...否。
    建立“ netifaces”扩展
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror = format-security -g -fwrapv- O2 -g -fstack-protector-strong -Wformat -Werror = format-security -Wdate-time -D_FORTIFY_SOURCE = 2 -fPIC -DNETIFACES_VERSION = 0.10.9 -I / srv / homeassistant / homeassistant_venv / include -I / usr / include / python3.8 -c netifaces.c -o build / temp.linux-x86_64-3.8 / netifaces.o
    无法执行“ x86_64-linux-gnu-gcc”:没有这样的文件或目录
    错误:命令“ x86_64-linux-gnu-gcc”失败,退出状态为1
    ----------------------------------------
错误:命令错误,退出状态为1:/ srv / homeassistant / homeassistant_venv / bin / python3 -u -c'import sys,setuptools,tokenize; sys.argv [0] ='“'”'/tmp/pip-install-m22d3tfb/netifaces/setup.py'“'”'; __file __ ='“'”'/ tmp / pip-install-m22d3tfb / netifaces / setup.py'“'”'; f = getattr(tokenize,'“'”'open'“'”',打开)(__ file__) ; code = f.read()。replace('“'”'\ r \ n'“'”','“'”'\ n'“'”'); f.close(); exec(compile(代码,__file__,'“'”'exec'“'”'))'安装--record /tmp/pip-record-clr6l1fh/install-record.txt-单一版本-外部管理-编译- install-headers /srv/homeassistant/homeassistant_venv/include/site/python3.8/netifaces检查日志以获取完整的命令输出。
2020-09-02 18:20:28错误(MainThread)[homeassistant]执行工作时出错:从未检索到任务异常
追溯(最近一次通话):
  文件“ /srv/homeassistant/homeassistant_venv/lib/python3.8/site-packages/homeassistant/data_entry_flow.py”,第117行,位于async_init中
    流=等待self.async_create_flow(处理程序,上下文=上下文,数据=数据)
  文件“ /srv/homeassistant/homeassistant_venv/lib/python3.8/site-packages/homeassistant/config_entries.py”,第526行,位于async_create_flow中
    等待async_process_deps_reqs(self.hass,self._hass_config,集成)
  在async_process_deps_reqs的第321行中,文件“ /srv/homeassistant/homeassistant_venv/lib/python3.8/site-packages/homeassistant/setup.py”
    等待需求。async_get_integration_with_requirements(
  文件“ /srv/homeassistant/homeassistant_venv/lib/python3.8/site-packages/homeassistant/requirements.py”,第75行,位于async_get_integration_with_requirements中
    等待async_process_requirements(
  文件“ /srv/homeassistant/homeassistant_venv/lib/python3.8/site-packages/homeassistant/requirements.py”,行132,位于async_process_requirements中
    引发RequirementsNotFound(name,[req])
homeassistant.requirements.RequirementsNotFound:找不到xiaomi_miio的要求:['python-miio == 0.5.3']。
2020-09-02 18:20:31警告(MainThread)[homeassistant.loader]您正在使用hacs的自定义集成,尚未通过Home Assistant测试过。此组件可能会导致稳定性问题,如果Home Assistant出现问题,请确保将其禁用。
2020-09-02 19:23:33错误(MainThread)[metno] https://aa015h6buqvih86i1.api.me ... orecast/2.0/classic返回
2020-09-02 19:23:33错误(MainThread)[homeassistant.components.met.weather]在18分钟内重试
回复

使用道具 举报

9

主题

106

帖子

1442

积分

金牌会员

Rank: 6Rank: 6

积分
1442
金钱
1336
HASS币
0
发表于 2021-1-30 03:31:42 | 显示全部楼层
怎么解决的哦
回复

使用道具 举报

2

主题

15

帖子

60

积分

注册会员

Rank: 2

积分
60
金钱
45
HASS币
0
发表于 2021-9-6 00:35:31 | 显示全部楼层
老哥,成功了吗
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-27 12:56 , Processed in 0.144327 second(s), 33 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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