centos7安装安装Home Assistant,异常问题解决

1、 Python版本不受支持,升级新版python到3.10以上

Support for running Home Assistant in the current used Python version 3.9.9 is deprecated and will be removed in Home Assistant 2023.2. Please upgrade Python to 3.10 to prevent your Home Assistant instance from breaking.

2、2023-08-02 09:13:22.722 ERROR (MainThread) [homeassistant.config_entries] Error occurred loading flow for integration google_translate: No module named 'mutagen'

复制代码
2023-08-02 09:13:22.722 ERROR (MainThread) [homeassistant.config_entries] Error occurred loading flow for integration google_translate: No module named 'mutagen'

解决:安装对应模块

pip3 install django-tinymce

3、ERROR: Cannot install hass-nabucasa==0.69.0

复制代码
2023-08-02 09:26:19.608 ERROR (SyncWorker_1) [homeassistant.util.package] Unable to install package hass-nabucasa==0.69.0: ERROR: Cannot install hass-nabucasa==0.69.0 because these package versions have conflicting dependencies.

解决: 手动安装, pip3 install hass-nabucasa

4、Version 3.7.17 of SQLite is not supported;

复制代码
2023-08-02 10:12:59.674 ERROR (Recorder) [homeassistant.components.recorder.util] Version 3.7.17 of SQLite is not supported; minimum supported version is 3.31.0. Starting with Home Assistant 2022.6 this prevents the recorder from starting. Please upgrade your database software

解决:

更新SQLite,从官网下载:SQLite Download Page

复制代码
# 下载
curl -O https://www.sqlite.org/2023/sqlite-autoconf-3420000.tar.gz

# 解压
tar zxvf sqlite-autoconf-3420000.tar.gz

# 配置编译
cd sqlite-autoconf-3420000/

./configure --prefix=/usr/local

make && make install

# 把系统预装的旧版sqlite3移走:
mv /usr/bin/sqlite3 /usr/bin/sqlite3_old

# 为新版的sqlite3建立软链接:
ln -s /usr/local/bin/sqlite3 /usr/bin/sqlite3

# 配置运行环境库
echo "/usr/local/lib" > /etc/ld.so.conf.d/sqlite3.conf
ldconfig

5、安装esphome

复制代码
# 创建venv 环境
cd ~
python3.11 -m venv esphome
cd esphome
source bin/activate

# 安装
pip3 install esphome


# 启动打开浏览器工具
esphome config/ dashboard

# 之后,您将能够通过浏览器localhost:6052访问仪表板
相关推荐
Raymond运维12 分钟前
MySQL包安装 -- SUSE系列(SUSE资源库安装MySQL)
linux·运维·数据库·mysql
高山上有一只小老虎18 分钟前
如何在DBeaver中配置高斯数据库的连接
数据库
云飞云共享云桌面21 分钟前
东莞精密机械制造工厂如何10个SolidWorks共用一台服务器资源
java·运维·服务器·网络·数据库·电脑·制造
ActionTech30 分钟前
2025 年 9 月《大模型 SQL 能力排行榜》发布,新增 Kimi K2 最新版测评!
数据库·sql·ai·oracle
lang201509281 小时前
掌握MyBatis Java API:高效操作数据库
java·数据库·mybatis
Mr.wangh2 小时前
Redis作为分布式锁
数据库·redis·分布式
白云偷星子2 小时前
MySQL笔记11
数据库·笔记·mysql
稚辉君.MCA_P8_Java3 小时前
WebSocket 是什么原理?为什么可以实现持久连接?
网络·数据库·websocket·网络协议
小光学长3 小时前
基于Vue的图书馆座位预约系统6emrqhc8(程序+源码+数据库+调试部署+开发环境)带论文文档1万字以上,文末可获取,系统界面在最后面。
前端·数据库·vue.js
code小毛孩4 小时前
如何简单的并且又能大幅度降低任务队列的锁粒度、提高吞吐量?
java·jvm·数据库