We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
简要说明、截图、复现步骤等,也可以是需求或想法 拉取最新代码后,改了图片规格,加了配置"group_at_off": true, "group_chat_reply_prefix": "[bot] ",然后运行python3 app.py报错;
:~/chatgpt-on-wechat $ python3 app.py [ERROR][2023-03-06 09:25:31][app.py:19] - App startup failed! [ERROR][2023-03-06 09:25:31][app.py:20] - Expecting ',' delimiter: line 10 column 3 (char 326) Traceback (most recent call last): File "/home/pi/chatgpt-on-wechat/app.py", line 11, in config.load_config() File "/home/pi/chatgpt-on-wechat/config.py", line 18, in load_config config = json.loads(config_str) File "/usr/lib/python3.9/json/init.py", line 346, in loads return _default_decoder.decode(s) File "/usr/lib/python3.9/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python3.9/json/decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) json.decoder.JSONDecodeError: Expecting ',' delimiter: line 10 column 3 (char 326)
[在此处粘贴终端日志]
python3 -V
pip3 -V
The text was updated successfully, but these errors were encountered:
看报错应该是配置文件格式问题 "group_at_off": "true",
Sorry, something went wrong.
我把添加的配置文件里的 "group_chat_reply_prefix": "[bot] "这句删除了,然后"group_at_off": "true",加了这句,可以正常运行了 感谢
No branches or pull requests
前置确认
问题描述
:~/chatgpt-on-wechat $ python3 app.py
[ERROR][2023-03-06 09:25:31][app.py:19] - App startup failed!
[ERROR][2023-03-06 09:25:31][app.py:20] - Expecting ',' delimiter: line 10 column 3 (char 326)
Traceback (most recent call last):
File "/home/pi/chatgpt-on-wechat/app.py", line 11, in
config.load_config()
File "/home/pi/chatgpt-on-wechat/config.py", line 18, in load_config
config = json.loads(config_str)
File "/usr/lib/python3.9/json/init.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.9/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.9/json/decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Expecting ',' delimiter: line 10 column 3 (char 326)
终端日志 (如有报错)
环境
python3 -V
):pip3 -V
):The text was updated successfully, but these errors were encountered: