每次关机重启,重新进入Docker MindIE 环境,运行MindIE Service 都会报错。
收藏回复举报
每次关机重启,重新进入Docker MindIE 环境,运行MindIE Service 都会报错。
t('forum.solved') 已解决
发表于2024-09-24 09:11:11
0 查看

推理环境:使用的是官方镜像:swr.cn-south-1.myhuaweicloud.com/ascendhub/mindie   1.0.RC2-300I-Duo-arm64

问题描述:每次关机重启,重新进入Docker MindIE 环境,运行MindIE Service 都会报错。

报错内容:Fatal Python error: PyThreadState_Get: the function must be called with the GIL held, but the GIL is released (the current Python thread state is NULL)

服务日志:

cke_13123.png

环境设置:需要的set_env.sh已加入到.bashrc中。

cke_125.png

解决方案:进入/opt/package  执行 source install_and_enable_cann.sh之前就正常了,就是每次重启服务器或重启docker 都需要重复这样的操作,不知道什么原因?我理解的正常是不需要每次执行source install_and_enable_cann.sh,每次source(重装),都需要重新配置conf/config.json。

我要发帖子