chatgpt-on-wechat
chatgpt-on-wechat copied to clipboard
扫码成功后手机端无反应
前置确认
- 运行于国内网络环境,未开代理
- python 已安装:版本在 3.7 ~ 3.10 之间,依赖已安装
- 在已有 issue 中未搜索到类似问题
- FAQS 中无类似问题
问题描述
手机扫码成功后,windows终端显示Start auto replying
但手机没有任何新增的窗口提供聊天
(已实名)
终端日志 (如有报错)
[在此处粘贴终端日志]
环境
- 操作系统类型 (Mac/Windows/Linux):Windows10
- Python版本 ( 执行
python3 -V
):python -3.10 - pip版本 ( 依赖问题此项必填,执行
pip3 -V
):
扫码成功之后你的账号就是机器人了,需要在手机端发送消息来触发,电脑端的终端仅是显示日志。
手机端不会有新开的窗口, 你可以让好友给你发送消息, 也可以自己给好友发送消息, 只要能命中触发条件都可触发自动回复
- 私聊中: 要发送以
single_chat_prefix
配置作为前缀的消息, 如 "@bot 你好" - 群聊中: 好友艾特你就会触发, 你自己发送以
group_chat_prefix
配置为前缀的消息同样也会触发
请问一下扫描二维码老是超时应该怎么解决
请问一下扫描二维码老是超时应该怎么解决
看这个 #8
多谢,已经修改源码,目前能够登录了
---原始邮件--- 发件人: @.> 发送时间: 2023年2月12日(周日) 下午2:17 收件人: @.>; 抄送: @.@.>; 主题: Re: [zhayujie/chatgpt-on-wechat] 扫码成功后手机端无反应 (Issue #142)
请问一下扫描二维码老是超时应该怎么解决
看这个 #8
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
扫码成功之后你的账号就是机器人了,需要在手机端发送消息来触发,电脑端的终端仅是显示日志。
手机端不会有新开的窗口, 你可以让好友给你发送消息, 也可以自己给好友发送消息, 只要能命中触发条件都可触发自动回复
- 私聊中: 要发送以
single_chat_prefix
配置作为前缀的消息, 如 "@bot 你好"- 群聊中: 好友艾特你就会触发, 你自己发送以
group_chat_prefix
配置为前缀的消息同样也会触发
想请问一下我怎么能取消掉别人在群组中@我自动回复这个功能呢
登录成功,发送消息报错
[ERROR][2023-02-21 22:09:59][wechat_channel.py:116] - No module named 'openai'
Traceback (most recent call last):
File "/home/ubuntu/chatgpt-on-wechat/channel/wechat/wechat_channel.py", line 112, in _do_send
reply_text = super().build_reply_content(query, context)
File "/home/ubuntu/chatgpt-on-wechat/channel/channel.py", line 31, in build_reply_content
return Bridge().fetch_reply_content(query, context)
File "/home/ubuntu/chatgpt-on-wechat/bridge/bridge.py", line 9, in fetch_reply_content
return bot_factory.create_bot("openAI").reply(query, context)
File "/home/ubuntu/chatgpt-on-wechat/bot/bot_factory.py", line 24, in create_bot
from bot.openai.open_ai_bot import OpenAIBot
File "/home/ubuntu/chatgpt-on-wechat/bot/openai/open_ai_bot.py", line 6, in
扫码成功之后你的账号就是机器人了,需要在手机端发送消息来触发,电脑端的终端仅是显示日志。 手机端不会有新开的窗口, 你可以让好友给你发送消息, 也可以自己给好友发送消息, 只要能命中触发条件都可触发自动回复
- 私聊中: 要发送以
single_chat_prefix
配置作为前缀的消息, 如 "@bot 你好"- 群聊中: 好友艾特你就会触发, 你自己发送以
group_chat_prefix
配置为前缀的消息同样也会触发想请问一下我怎么能取消掉别人在群组中@我自动回复这个功能呢
参考 #35
登录成功,发送消息报错 [ERROR][2023-02-21 22:09:59][wechat_channel.py:116] - No module named 'openai' Traceback (most recent call last): File "/home/ubuntu/chatgpt-on-wechat/channel/wechat/wechat_channel.py", line 112, in _do_send reply_text = super().build_reply_content(query, context) File "/home/ubuntu/chatgpt-on-wechat/channel/channel.py", line 31, in build_reply_content return Bridge().fetch_reply_content(query, context) File "/home/ubuntu/chatgpt-on-wechat/bridge/bridge.py", line 9, in fetch_reply_content return bot_factory.create_bot("openAI").reply(query, context) File "/home/ubuntu/chatgpt-on-wechat/bot/bot_factory.py", line 24, in create_bot from bot.openai.open_ai_bot import OpenAIBot File "/home/ubuntu/chatgpt-on-wechat/bot/openai/open_ai_bot.py", line 6, in import openai ModuleNotFoundError: No module named 'openai'
#88
Error communicating with OpenAI: HTTPSConnectionPool(host='api.openai.com', port=443): Max retries exceeded with url: /v1/completions (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fbea43ed880>: Failed to establish a new connection: [Errno 101] Network is unreachable'))
升级之后api连不上了
你好,我这咋回事,就会一句话“请再问我一次吧, ”
openai.error.APIConnectionError: Error communicating with OpenAI: HTTPSConnectionPool(host='api.openai.com', port=443): Max retries exceeded with url: /v1/chat/completions (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000001D44786DB50>: Failed to establish a new connection: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。')) [INFO][2023-03-03 22:50:27][wechat_channel.py:103] - [WX] sendMsg=[bot] 请再问我一次吧, receiver=@8ee04d0292988f4d286ea29a3c92afe5afffbc4cfca74a74962f92ab5fc0d07c
@tianjiake @MinovskyRickland 网络问题见 #310
我每次扫描二维码后,都会有下面报错。哪位大神能告诉我该怎么解决?求教
Please scan the QR code to log in.
Please press confirm on your phone.
[ERROR][2023-03-05 12:23:08][app.py:19] - App startup failed!
[ERROR][2023-03-05 12:23:08][app.py:20] - mismatched tag: line 64, column 4
Traceback (most recent call last):
File "/root/chatgpt-on-wechat/chatgpt-on-wechat/app.py", line 17, in
@yinbaitao 执行下下面两句 pip show itchat pip show itchat-uos
File "D:\Python\Python311\Lib\xml\dom\expatbuilder.py", line 223, in parseString parser.Parse(string, True) xml.parsers.expat.ExpatError: mismatched tag: line 64, column 4
@devinglaw #333
扫码之后报:
[ERROR][2023-03-08 10:57:59][app.py:19] - App startup failed!
[ERROR][2023-03-08 10:57:59][app.py:20] - mismatched tag: line 64, column 4
Traceback (most recent call last):
File "E:\chatgpt-on-wechat\chatgpt-on-wechat-master\app.py", line 17, in
@xiaozhiling2
正常应该是这样: pip3 show itchat-uos # 依赖存在 pip3 show itchat # 依赖不存在
所以要把 itcaht 卸载掉, 只需要itchat-uos 依赖
我卸载了,
------------------ 原始邮件 ------------------ 发件人: "zhayujie/chatgpt-on-wechat" @.>; 发送时间: 2023年3月9日(星期四) 凌晨0:47 @.>; @.@.>; 主题: Re: [zhayujie/chatgpt-on-wechat] 扫码成功后手机端无反应 (Issue #142)
@xiaozhiling2
正常应该是这样: pip3 show itchat-uos # 依赖存在 pip3 show itchat # 依赖不存在
所以要把 itcaht 卸载掉, 只需要itchat-uos 依赖
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>
扫码之后报: [ERROR][2023-03-08 10:57:59][app.py:19] - App startup failed! [ERROR][2023-03-08 10:57:59][app.py:20] - mismatched tag: line 64, column 4 Traceback (most recent call last): File "E:\chatgpt-on-wechat\chatgpt-on-wechat-master\app.py", line 17, in channel.startup() File "E:\chatgpt-on-wechat\chatgpt-on-wechat-master\channel\wechat\wechat_channel.py", line 37, in startup itchat.auto_login(enableCmdQR=2) File "E:\python\lib\site-packages\itchat\components\register.py", line 35, in auto_login self.login(enableCmdQR=enableCmdQR, picDir=picDir, qrCallback=qrCallback, File "E:\python\lib\site-packages\itchat\components\login.py", line 53, in login status = self.check_login() File "E:\python\lib\site-packages\itchat\components\login.py", line 137, in check_login if process_login_info(self, r.text): File "E:\python\lib\site-packages\itchat\components\login.py", line 172, in process_login_info for node in xml.dom.minidom.parseString(r.text).documentElement.childNodes: File "E:\python\lib\xml\dom\minidom.py", line 2000, in parseString return expatbuilder.parseString(string) File "E:\python\lib\xml\dom\expatbuilder.py", line 925, in parseString return builder.parseString(string) File "E:\python\lib\xml\dom\expatbuilder.py", line 223, in parseString parser.Parse(string, True) xml.parsers.expat.ExpatError: mismatched tag: line 64, column 4 也运行了: pip show itchat pip show itchat-uos 还是无法解决
解决了么,一直是这个问题
@yinbaitao 执行下下面两句 pip show itchat pip show itchat-uos
xml.parsers.expat.ExpatError: mismatched tag: line 64, column 4
这个问题执行完还是解决不了的
@zhibei2000 执行这两个命令只是看看依赖安装是否正常,你把执行的结果贴出来看看吧
正常应该是这样: pip3 show itchat-uos # 依赖存在 pip3 show itchat # 依赖不存在
------------------ 原始邮件 ------------------ 发件人: "zhayujie/chatgpt-on-wechat" @.***>;
发送时间: 2023年3月11日(星期六) 晚上9:08 @.>; @.@.***>; 主题: Re: [zhayujie/chatgpt-on-wechat] 扫码成功后手机端无反应 (Issue #142)
@zhibei2000 执行这两个命令只是看看依赖安装是否正常,你把执行的结果贴出来看看吧
正常应该是这样: pip3 show itchat-uos # 依赖存在 pip3 show itchat # 依赖不存在
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>
扫码后就出一个请在手机确认的提示,手机确认后,终端无任何提示,微信已经实名老号且绑卡,但是直接扫码登陆网页版微信,提示为了保障你的帐号安全,暂不支持使用网页版微信。是微信号的问题吗
发送信息后报错[ERROR][2023-03-26 15:06:52][wechat_channel.py:29] - Worker return exception: module 'openai.error' has no attribute 'Timeout' Traceback (most recent call last): File "/root/chatgpt-on-wechat/bot/chatgpt/chat_gpt_bot.py", line 100, in reply_text response = openai.ChatCompletion.create( AttributeError: module 'openai' has no attribute 'ChatCompletion'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/lib64/python3.6/concurrent/futures/thread.py", line 56, in run result = self.fn(*self.args, **self.kwargs) File "/root/chatgpt-on-wechat/channel/wechat/wechat_channel.py", line 210, in handle reply = super().build_reply_content(context.content, context) File "/root/chatgpt-on-wechat/channel/channel.py", line 33, in build_reply_content return Bridge().fetch_reply_content(query, context) File "/root/chatgpt-on-wechat/bridge/bridge.py", line 42, in fetch_reply_content return self.get_bot("chat").reply(query, context) File "/root/chatgpt-on-wechat/bot/chatgpt/chat_gpt_bot.py", line 55, in reply reply_content = self.reply_text(session, session_id, 0) File "/root/chatgpt-on-wechat/bot/chatgpt/chat_gpt_bot.py", line 121, in reply_text except openai.error.Timeout as e: AttributeError: module 'openai.error' has no attribute 'Timeout'
e界家族很好的一个交流分享、交友寻找快乐论坛。
[INFO][2023-03-27 01:27:46][plugin_manager.py:78] - Plugin GODCMD not found in pconfig, adding to pconfig... [INFO][2023-03-27 01:27:46][plugin_manager.py:78] - Plugin BANWORDS not found in pconfig, adding to pconfig... [INFO][2023-03-27 01:27:46][plugin_manager.py:78] - Plugin ROLE not found in pconfig, adding to pconfig... [INFO][2023-03-27 01:27:46][plugin_manager.py:78] - Plugin DUNGEON not found in pconfig, adding to pconfig... [INFO][2023-03-27 01:27:46][plugin_manager.py:78] - Plugin HELLO not found in pconfig, adding to pconfig... [INFO][2023-03-27 01:27:46][godcmd.py:135] - [Godcmd] inited [WARNING][2023-03-27 01:27:46][banwords.py:41] - Banwords init failed: [Errno 2] No such file or directory: '/root/chatgpt-on-wechat/plugins/banwords/banwords.txt', ignore or see https://github.com/zhayujie/chatgpt-on-wechat/tree/master/plugins/banwords . 我的是DOCKER上装的,二维码出现的是?号,用不了,不知道怎么弄
[INFO][2023-03-27 01:27:46][plugin_manager.py:39] - Loading plugins config... [INFO][2023-03-27 01:27:46][plugin_manager.py:55] - Scaning plugins ... [INFO][2023-03-27 01:27:46][plugin_manager.py:30] - Plugin Hello_v0.1 registered [WARNING][2023-03-27 01:27:46][plugin_manager.py:68] - Failed to import plugin sdwebui: No module named 'webuiapi' [INFO][2023-03-27 01:27:46][plugin_manager.py:30] - Plugin Godcmd_v1.0 registered [INFO][2023-03-27 01:27:46][plugin_manager.py:30] - Plugin Role_v1.0 registered [INFO][2023-03-27 01:27:46][plugin_manager.py:30] - Plugin Banwords_v1.0 registered [INFO][2023-03-27 01:27:46][plugin_manager.py:30] - Plugin Dungeon_v1.0 registered [INFO][2023-03-27 01:27:46][plugin_manager.py:78] - Plugin GODCMD not found in pconfig, adding to pconfig... [INFO][2023-03-27 01:27:46][plugin_manager.py:78] - Plugin BANWORDS not found in pconfig, adding to pconfig... [INFO][2023-03-27 01:27:46][plugin_manager.py:78] - Plugin ROLE not found in pconfig, adding to pconfig... [INFO][2023-03-27 01:27:46][plugin_manager.py:78] - Plugin DUNGEON not found in pconfig, adding to pconfig... [INFO][2023-03-27 01:27:46][plugin_manager.py:78] - Plugin HELLO not found in pconfig, adding to pconfig... [INFO][2023-03-27 01:27:46][godcmd.py:135] - [Godcmd] inited [WARNING][2023-03-27 01:27:46][banwords.py:41] - Banwords init failed: [Errno 2] No such file or directory: '/root/chatgpt-on-wechat/plugins/banwords/banwords.txt', ignore or see https://github.com/zhayujie/chatgpt-on-wechat/tree/master/plugins/banwords . [INFO][2023-03-27 01:27:46][role.py:46] - [Role] inited [INFO][2023-03-27 01:27:46][dungeon.py:43] - [Dungeon] inited [INFO][2023-03-27 01:27:46][hello.py:15] - [Hello] inited Getting uuid of QR code. Downloading QR code.
win11下安装后,出现以下错误提示,哪位能指点一下?
[ERROR][2023-03-26 19:41:24][app.py:16] - App startup failed!
[ERROR][2023-03-26 19:41:24][app.py:17] - Expecting property name enclosed in double quotes: line 2 column 102 (char 104)
Traceback (most recent call last):
File "C:\Users\wuxia\chatgpt-on-wechat\app.py", line 8, in
我的是DOCKER上装的,二维码出现的是?号,用不了,不知道怎么弄
下载的二维码前面有^M 这个问题可能是因为在 Windows 系统中编写的代码在 Unix 系统上执行时引起的。在 Windows 上编辑文件时,行结束符是 "\r\n"(也称为 CRLF),但在 Unix 上,行结束符是 "\n"(也称为 LF)。当你在 Windows 上编辑代码并将其上传到 Unix 系统时,这些 "\r" 字符可能会在 Unix 中被解释为特殊字符,从而导致不良的行为。
解决方法是将文件中的 "\r" 字符替换为 "\n"。你可以使用 sed 命令执行此操作:是那个文件出问题了?