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访问仪表板
相关推荐
Fɪʀᴇᴡᴏʀᴋs7 分钟前
Oceanbase数据库—基于社区版本的数据库集群管理
运维·数据库·oceanbase
Code Warrior20 分钟前
【MySQL数据库】数据类型
android·数据库·mysql
范纹杉想快点毕业27 分钟前
《嵌入式硬件从入门到精通:电源 / 模电 / 数电 / 通信核心全解析》
java·开发语言·数据库·单片机·嵌入式硬件
q***4642 小时前
离线安装 Nginx
运维·数据库·nginx
我科绝伦(Huanhuan Zhou)2 小时前
SQL进阶必备:从计算字段到多表联结,让查询效率翻倍!
数据库·sql
i***48613 小时前
Redis重大版本整理(Redis2.6-Redis7.0)
java·数据库·redis
r***86983 小时前
Redis 6.2.7安装配置
前端·数据库·redis
是Judy咋!3 小时前
Mongodb---副本集搭建(hashed分片)
数据库·mongodb·centos
q***14644 小时前
MySQL 批量插入详解:快速提升大数据导入效率的实战方法
大数据·数据库·mysql
Unstoppable224 小时前
八股训练营第 21 天 | Redis的数据类型有哪些?Redis是单线程的还是多线程的,为什么?说一说Redis持久化机制有哪些?
数据库·redis·缓存·八股