Closed Magnoliar closed 3 months ago
呃,Docker他是在他们那边创建了一个镜像,然后Docker实际上,不管你Python版本或者源代码的安装啥的
你这里的错误是conf和logger未定义,他们这个代码也不是拿过去就直接用的,哥们你得全看过一遍知道什么代码或者文件夹对应什么功能
然后我自己这里运行的话,我没改过代码,没啥问题,你看你自己有没有改过代码或者移动过文件导致相对路径检索不到,或者改过文件名导致导入功能的时候找不到对应的文件
同一个问题,我复现了,只要我挂载了plugins文件夹到容器外部,安装了插件就会报这个错。卸载了插件也不行了。
前置确认
⚠️ 搜索issues中是否已存在类似问题
操作系统类型?
Docker
运行的python版本是?
python 3.10
使用的chatgpt-on-wechat版本是?
Latest Release
运行的
channel
类型是?wxy(个人微信, wechaty)
复现步骤 🕹
拉取最新docker更新后,无法正常启动
问题描述 😯
拉取最新docker更新后,无法正常启动,日志显示: [INFO][2024-05-14 03:30:25][config.py:210] - [Config] User datas file not found, ignore. Traceback (most recent call last): File "/app/app.py", line 53, in run channel_name = conf().get("channel_type", "wx") NameError: name 'conf' is not defined. Did you mean: 'const'?
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/app/app.py", line 71, in
run()
File "/app/app.py", line 66, in run
logger.error("App startup failed!")
NameError: name 'logger' is not defined
终端日志 📒