iuiaoin / wechat-gptbot

A wechat robot based on ChatGPT with no risk, very stable! 🚀
MIT License
595 stars 116 forks source link

[Bug]: 突然不行了。私聊、群聊都不行 #53

Closed jjyyfff closed 1 year ago

jjyyfff commented 1 year ago

Search for answers in existing issues

Python version

other

Issue description

[INFO][2023-07-15 14:06:54][wechat.py:40] - App startup successfully! [INFO][2023-07-15 14:06:54][wechat.py:178] - [Websocket] connected [ERROR][2023-07-15 14:07:20][wechat.py:184] - [Websocket] Error: "Message" object has no field "_raw_msg" [ERROR][2023-07-15 14:07:37][wechat.py:184] - [Websocket] Error: "Message" object has no field "_raw_msg" [ERROR][2023-07-15 14:08:10][wechat.py:184] - [Websocket] Error: "Message" object has no field "_raw_msg" [ERROR][2023-07-15 14:08:36][wechat.py:184] - [Websocket] Error: "Message" object has no field "_raw_msg"

Repro steps

No response

Relevant log output

No response

iuiaoin commented 1 year ago

@jjyyfff 无法复现,你的python版本是在3.8~3.10之间吗?#47 之后没有_raw_msg相关的改动啊

jjyyfff commented 1 year ago

呃,我的是3.11.4,最新稳定版。

可奇怪的是,之前都行啊

iuiaoin commented 1 year ago

@jjyyfff 3.11不保证能work,因为有些依赖对python版本有要求,要不你切到3.10试试?

jjyyfff commented 1 year ago

好,我试试

jjyyfff commented 1 year ago

安装3.0.11,

然后 pip install -r requirements.txt

问题解决。

谢谢

luoshui-coder commented 1 year ago

安装3.0.11,

然后 pip install -r requirements.txt

问题解决。

谢谢

亲,你是安装的3.10.11的python版本可以了么,我装的3.10.12不行,也是报这个错,不知道是python版本问题还是包的版本问题

luoshui-coder commented 1 year ago

image image 重新建立了python3.10.11的虚拟环境,然后安装依赖报错(之前的也会),然后删了几个的版本号,自己解决冲突,启动后发消息还是会报这个错,请教大神是什么原因呢

iuiaoin commented 1 year ago

@ghjimlee 我更新了依赖版本, 再试下?

git pull
pip install -r requirements.txt
luoshui-coder commented 1 year ago

可以啦,非常感谢!