chatgpt-on-wechat icon indicating copy to clipboard operation
chatgpt-on-wechat copied to clipboard

扫码成功后手机端无反应

Open PaperMisty opened this issue 2 years ago • 1 comments

前置确认

  1. 运行于国内网络环境,未开代理
  2. python 已安装:版本在 3.7 ~ 3.10 之间,依赖已安装
  3. 在已有 issue 中未搜索到类似问题
  4. FAQS 中无类似问题

问题描述

手机扫码成功后,windows终端显示Start auto replying

tmp4AB4

但手机没有任何新增的窗口提供聊天

(已实名)

终端日志 (如有报错)

[在此处粘贴终端日志]

环境

  • 操作系统类型 (Mac/Windows/Linux):Windows10
  • Python版本 ( 执行 python3 -V ):python -3.10
  • pip版本 ( 依赖问题此项必填,执行 pip3 -V):

PaperMisty avatar Feb 09 '23 16:02 PaperMisty

扫码成功之后你的账号就是机器人了,需要在手机端发送消息来触发,电脑端的终端仅是显示日志。

手机端不会有新开的窗口, 你可以让好友给你发送消息, 也可以自己给好友发送消息, 只要能命中触发条件都可触发自动回复

  • 私聊中: 要发送以 single_chat_prefix配置作为前缀的消息, 如 "@bot 你好"
  • 群聊中: 好友艾特你就会触发, 你自己发送以 group_chat_prefix 配置为前缀的消息同样也会触发

zhayujie avatar Feb 09 '23 16:02 zhayujie

请问一下扫描二维码老是超时应该怎么解决

NardRage avatar Feb 12 '23 05:02 NardRage

请问一下扫描二维码老是超时应该怎么解决

看这个 #8

zhayujie avatar Feb 12 '23 06:02 zhayujie

多谢,已经修改源码,目前能够登录了

---原始邮件--- 发件人: @.> 发送时间: 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: @.***>

NardRage avatar Feb 12 '23 06:02 NardRage

扫码成功之后你的账号就是机器人了,需要在手机端发送消息来触发,电脑端的终端仅是显示日志。

手机端不会有新开的窗口, 你可以让好友给你发送消息, 也可以自己给好友发送消息, 只要能命中触发条件都可触发自动回复

  • 私聊中: 要发送以 single_chat_prefix配置作为前缀的消息, 如 "@bot 你好"
  • 群聊中: 好友艾特你就会触发, 你自己发送以 group_chat_prefix 配置为前缀的消息同样也会触发

想请问一下我怎么能取消掉别人在群组中@我自动回复这个功能呢

szf19951023 avatar Feb 21 '23 07:02 szf19951023

登录成功,发送消息报错 [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'

hankinsus avatar Feb 21 '23 13:02 hankinsus

扫码成功之后你的账号就是机器人了,需要在手机端发送消息来触发,电脑端的终端仅是显示日志。 手机端不会有新开的窗口, 你可以让好友给你发送消息, 也可以自己给好友发送消息, 只要能命中触发条件都可触发自动回复

  • 私聊中: 要发送以 single_chat_prefix配置作为前缀的消息, 如 "@bot 你好"
  • 群聊中: 好友艾特你就会触发, 你自己发送以 group_chat_prefix 配置为前缀的消息同样也会触发

想请问一下我怎么能取消掉别人在群组中@我自动回复这个功能呢

参考 #35

zhayujie avatar Feb 21 '23 13:02 zhayujie

登录成功,发送消息报错 [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

zhayujie avatar Feb 21 '23 13:02 zhayujie

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连不上了

MinovskyRickland avatar Mar 02 '23 15:03 MinovskyRickland

你好,我这咋回事,就会一句话“请再问我一次吧, ”

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

jiaketian avatar Mar 03 '23 14:03 jiaketian

@tianjiake @MinovskyRickland 网络问题见 #310

zhayujie avatar Mar 04 '23 10:03 zhayujie

我每次扫描二维码后,都会有下面报错。哪位大神能告诉我该怎么解决?求教 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 channel.startup() File "/root/chatgpt-on-wechat/chatgpt-on-wechat/channel/wechat/wechat_channel.py", line 37, in startup itchat.auto_login(enableCmdQR=2) File "/root/miniconda3/lib/python3.10/site-packages/itchat/components/register.py", line 35, in auto_login self.login(enableCmdQR=enableCmdQR, picDir=picDir, qrCallback=qrCallback, File "/root/miniconda3/lib/python3.10/site-packages/itchat/components/login.py", line 53, in login status = self.check_login() File "/root/miniconda3/lib/python3.10/site-packages/itchat/components/login.py", line 137, in check_login if process_login_info(self, r.text): File "/root/miniconda3/lib/python3.10/site-packages/itchat/components/login.py", line 172, in process_login_info for node in xml.dom.minidom.parseString(r.text).documentElement.childNodes: File "/root/miniconda3/lib/python3.10/xml/dom/minidom.py", line 2000, in parseString return expatbuilder.parseString(string) File "/root/miniconda3/lib/python3.10/xml/dom/expatbuilder.py", line 925, in parseString return builder.parseString(string) File "/root/miniconda3/lib/python3.10/xml/dom/expatbuilder.py", line 223, in parseString parser.Parse(string, True) xml.parsers.expat.ExpatError: mismatched tag: line 64, column 4

yinbaitao avatar Mar 05 '23 12:03 yinbaitao

@yinbaitao 执行下下面两句 pip show itchat pip show itchat-uos

zhayujie avatar Mar 05 '23 14:03 zhayujie

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

AthanaD avatar Mar 05 '23 15:03 AthanaD

@devinglaw #333

zhayujie avatar Mar 05 '23 16:03 zhayujie

扫码之后报: [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 还是无法解决

xiaozhiling2 avatar Mar 08 '23 03:03 xiaozhiling2

@xiaozhiling2

正常应该是这样: pip3 show itchat-uos # 依赖存在 pip3 show itchat # 依赖不存在

所以要把 itcaht 卸载掉, 只需要itchat-uos 依赖

zhayujie avatar Mar 08 '23 16:03 zhayujie

我卸载了,

------------------ 原始邮件 ------------------ 发件人: "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: @.***>

xiaozhiling2 avatar Mar 09 '23 08:03 xiaozhiling2

扫码之后报: [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 还是无法解决

解决了么,一直是这个问题

zhibei2000 avatar Mar 11 '23 10:03 zhibei2000

@yinbaitao 执行下下面两句 pip show itchat pip show itchat-uos

xml.parsers.expat.ExpatError: mismatched tag: line 64, column 4

这个问题执行完还是解决不了的

zhibei2000 avatar Mar 11 '23 10:03 zhibei2000

@zhibei2000 执行这两个命令只是看看依赖安装是否正常,你把执行的结果贴出来看看吧

正常应该是这样: pip3 show itchat-uos # 依赖存在 pip3 show itchat # 依赖不存在

zhayujie avatar Mar 11 '23 13:03 zhayujie

------------------ 原始邮件 ------------------ 发件人: "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: @.***>

xiaozhiling2 avatar Mar 12 '23 03:03 xiaozhiling2

扫码后就出一个请在手机确认的提示,手机确认后,终端无任何提示,微信已经实名老号且绑卡,但是直接扫码登陆网页版微信,提示为了保障你的帐号安全,暂不支持使用网页版微信。是微信号的问题吗

eshao2018 avatar Mar 18 '23 02:03 eshao2018

发送信息后报错[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'

flyleee avatar Mar 26 '23 07:03 flyleee

e界家族很好的一个交流分享、交友寻找快乐论坛。 

eshao2018 avatar Mar 26 '23 07:03 eshao2018

[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上装的,二维码出现的是?号,用不了,不知道怎么弄

jarodlong7788 avatar Mar 26 '23 17:03 jarodlong7788

[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.

jarodlong7788 avatar Mar 26 '23 17:03 jarodlong7788

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 config.load_config() File "C:\Users\wuxia\chatgpt-on-wechat\config.py", line 18, in load_config config = json.loads(config_str) ^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.752.0_x64__qbz5n2kfra8p0\Lib\json_init_.py", line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.752.0_x64__qbz5n2kfra8p0\Lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.752.0_x64__qbz5n2kfra8p0\Lib\json\decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) ^^^^^^^^^^^^^^^^^^^^^^ json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 2 column 102 (char 104)

zhurong2020 avatar Mar 26 '23 23:03 zhurong2020

我的是DOCKER上装的,二维码出现的是?号,用不了,不知道怎么弄

jarodlong7788 avatar Mar 27 '23 00:03 jarodlong7788

下载的二维码前面有^M 这个问题可能是因为在 Windows 系统中编写的代码在 Unix 系统上执行时引起的。在 Windows 上编辑文件时,行结束符是 "\r\n"(也称为 CRLF),但在 Unix 上,行结束符是 "\n"(也称为 LF)。当你在 Windows 上编辑代码并将其上传到 Unix 系统时,这些 "\r" 字符可能会在 Unix 中被解释为特殊字符,从而导致不良的行为。

解决方法是将文件中的 "\r" 字符替换为 "\n"。你可以使用 sed 命令执行此操作:是那个文件出问题了?

jarodlong7788 avatar Mar 27 '23 00:03 jarodlong7788