Skip to content
New issue

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

不能启动chatGPTonwechat #1484

Closed
2 tasks done
AlphaGoMax opened this issue Oct 21, 2023 · 2 comments
Closed
2 tasks done

不能启动chatGPTonwechat #1484

AlphaGoMax opened this issue Oct 21, 2023 · 2 comments

Comments

@AlphaGoMax
Copy link

前置确认

  • 我确认我运行的是最新版本的代码,并且安装了所需的依赖,在FAQS中也未找到类似问题。

⚠️ 搜索issues中是否已存在类似问题

  • 我已经搜索过issues和disscussions,没有跟我遇到的问题相关的issue

操作系统类型?

Linux

运行的python版本是?

python 3.8

使用的chatgpt-on-wechat版本是?

Latest Release

运行的channel类型是?

wx(个人微信, itchat)

复现步骤 🕹

[3] 856239
nohup: load_config()
File "/root/chatgpt-on-wechat/config.py", line 200, in load_config
config = Config(json.loads(config_str))
File "/usr/lib/python3.8/json/init.py", line 357, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.8/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 17 column 3 (char 350)
ignoring input and appending output to 'nohup.out'
[ERROR][2023-10-21 12:18:21][app.py:52] - App startup failed!
[ERROR][2023-10-21 12:18:21][app.py:53] - Expecting value: line 17 column 3 (char 350)
Traceback (most recent call last):
File "app.py", line 29, in run
load_config()
File "/root/chatgpt-on-wechat/config.py", line 200, in load_config
config = Config(json.loads(config_str))
File "/usr/lib/python3.8/json/init.py", line 357, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.8/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 17 column 3 (char 350)

问题描述 😯

[3] 856239
nohup: load_config()
File "/root/chatgpt-on-wechat/config.py", line 200, in load_config
config = Config(json.loads(config_str))
File "/usr/lib/python3.8/json/init.py", line 357, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.8/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 17 column 3 (char 350)
ignoring input and appending output to 'nohup.out'
[ERROR][2023-10-21 12:18:21][app.py:52] - App startup failed!
[ERROR][2023-10-21 12:18:21][app.py:53] - Expecting value: line 17 column 3 (char 350)
Traceback (most recent call last):
File "app.py", line 29, in run
load_config()
File "/root/chatgpt-on-wechat/config.py", line 200, in load_config
config = Config(json.loads(config_str))
File "/usr/lib/python3.8/json/init.py", line 357, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.8/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 17 column 3 (char 350)

终端日志 📒

<此处粘贴终端日志>
@zhayujie
Copy link
Owner

启动报错JSONDecodeError 的原因一般是 config.json 中配置文件的json格式错误,报错中会提示哪一行出现问题。你可以去 https://www.json.cn/ 进行在线验证

@AlphaGoMax
Copy link
Author

AlphaGoMax commented Oct 23, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants