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

二维码中间有乱码,扫描没有反应 #74

Closed
heyanfeng opened this issue Feb 7, 2023 · 15 comments
Closed

二维码中间有乱码,扫描没有反应 #74

heyanfeng opened this issue Feb 7, 2023 · 15 comments

Comments

@heyanfeng
Copy link

程序应该是启动成功了,二维码失效,间隔一段时间更新一个新的二维码,但是扫描都没反应。
image

@zhayujie
Copy link
Owner

zhayujie commented Feb 7, 2023

什么系统上运行的,换个终端程序试试?

@1195458334
Copy link

什么系统上运行的,换个终端程序试试?

我也遇到了,windows,cmd 、powershell、git、idea 都试过了 都是乱码

换成ConEmu 可以

@zhayujie
Copy link
Owner

zhayujie commented Feb 7, 2023

ws,cmd 、powe

你的python版本是多少

@Yan0789
Copy link

Yan0789 commented Feb 8, 2023

您好,我的系统是win10,python3.8,运行后二维码显示不全,请问怎么调试

@zhayujie
Copy link
Owner

zhayujie commented Feb 8, 2023

您好,我的系统是win10,python3.8,运行后二维码显示不全,请问怎么调试

如果是本地环境的话,可以改一行代码试试:
https://github.com/zhayujie/chatgpt-on-wechat/blob/master/channel/wechat/wechat_channel.py

把37行括号里的 enableCmdQR=2 去掉试试
image

@Yan0789
Copy link

Yan0789 commented Feb 8, 2023

您好,我的系统是win10,python3.8,运行后二维码显示不全,请问怎么调试

如果是本地环境的话,可以改一行代码试试: https://github.com/zhayujie/chatgpt-on-wechat/blob/master/channel/wechat/wechat_channel.py

把37行括号里的 enableCmdQR=2 去掉试试 image

您好,我按您的指导去掉了,虽然可以在弹出的“画图”显示二维码,扫描后,程序又重新生成了张二维码让我扫描,是哪里死循环了吗,怎么解决呢

@Yan0789
Copy link

Yan0789 commented Feb 8, 2023

您好,我的系统是win10,python3.8,运行后二维码显示不全,请问怎么调试

如果是本地环境的话,可以改一行代码试试: https://github.com/zhayujie/chatgpt-on-wechat/blob/master/channel/wechat/wechat_channel.py
把37行括号里的 enableCmdQR=2 去掉试试 image

您好,我按您的指导去掉了,虽然可以在弹出的“画图”显示二维码,扫描后,程序又重新生成了张二维码让我扫描,是哪里死循环了吗,怎么解决呢
上面问题出现的原因:用的微X小号扫描,下号没有实名绑定,换了个号扫描可以了。显示“Login successfully as Start auto replying.”,但是我用别的账号发起@bot没有应答,咋了。

@Yan0789
Copy link

Yan0789 commented Feb 8, 2023

您好,我的系统是win10,python3.8,运行后二维码显示不全,请问怎么调试

如果是本地环境的话,可以改一行代码试试: https://github.com/zhayujie/chatgpt-on-wechat/blob/master/channel/wechat/wechat_channel.py
把37行括号里的 enableCmdQR=2 去掉试试 image

您好,我按您的指导去掉了,虽然可以在弹出的“画图”显示二维码,扫描后,程序又重新生成了张二维码让我扫描,是哪里死循环了吗,怎么解决呢
上面问题出现的原因:用的微X小号扫描,下号没有实名绑定,换了个号扫描可以了。显示“Login successfully as Start auto replying.”,但是我用别的账号发起@bot没有应答,咋了。

这里跟其它的分享下:如果添加了唤醒bot前缀,不能只发bot@bot,还得连着你想问的问题一起发,就有相应,刚开始我理解程序是可以比如像叫它 小A同学,它也能回我,后面试着 bot+问题,就可以。

@heyanfeng
Copy link
Author

什么系统上运行的,换个终端程序试试?

之前是用腾讯云控制台内置的终端登录的,换成本地终端可以了

@zheng96
Copy link

zheng96 commented Feb 8, 2023

我用的也是腾讯云终端,同样的问题,只有腾讯云服务器,大家有解决的吗

@zhayujie
Copy link
Owner

zhayujie commented Feb 8, 2023

我用的也是腾讯云终端,同样的问题,只有腾讯云服务器,大家有解决的吗

换个本地的终端吧,这种软件很多, mac下自带的terminal, windows 的 xshell 等等

@AndyHuyidi
Copy link

去掉了37行的“EmnabledCmd=2", 二维码可以弹出来了,但仍然出错,错误信息如下:

Please scan the QR code to log in.
Please press confirm on your phone.
[ERROR][2023-03-08 23:49:24][app.py:19] - App startup failed!
[ERROR][2023-03-08 23:49:24][app.py:20] - mismatched tag: line 64, column 4
Traceback (most recent call last):
File "/Users/macbook/PycharmProjects/pythonProject/chatgpt-on-wechat/app.py", line 17, in
channel.startup()
File "/Users/macbook/PycharmProjects/pythonProject/chatgpt-on-wechat/channel/wechat/wechat_channel.py", line 37, in startup
itchat.auto_login()
File "/Users/macbook/.conda/envs/untitled/lib/python3.8/site-packages/itchat/components/register.py", line 35, in auto_login
self.login(enableCmdQR=enableCmdQR, picDir=picDir, qrCallback=qrCallback,
File "/Users/macbook/.conda/envs/untitled/lib/python3.8/site-packages/itchat/components/login.py", line 53, in login
status = self.check_login()
File "/Users/macbook/.conda/envs/untitled/lib/python3.8/site-packages/itchat/components/login.py", line 137, in check_login
if process_login_info(self, r.text):
File "/Users/macbook/.conda/envs/untitled/lib/python3.8/site-packages/itchat/components/login.py", line 172, in process_login_info
for node in xml.dom.minidom.parseString(r.text).documentElement.childNodes:
File "/Users/macbook/.conda/envs/untitled/lib/python3.8/xml/dom/minidom.py", line 1969, in parseString
return expatbuilder.parseString(string)
File "/Users/macbook/.conda/envs/untitled/lib/python3.8/xml/dom/expatbuilder.py", line 925, in parseString
return builder.parseString(string)
File "/Users/macbook/.conda/envs/untitled/lib/python3.8/xml/dom/expatbuilder.py", line 223, in parseString
parser.Parse(string, True)
xml.parsers.expat.ExpatError: mismatched tag: line 64, column 4

Process finished with exit code 0

  1. 尝试用新的微信号登陆,仍然不行
  2. 在Chrome中打开wx.qq.com, 用网页版微信登陆,扫二维码后出现 :

image

这是啥情况?
首先肯定不是微信号的问题,因为我换了几个新号来试
用新号来登陆网页版微信 也不行了,
这有点怪了

@KevinJun2017
Copy link

time out 无限循环 弹登陆码

@zhayujie
Copy link
Owner

@AndyHuyidi 看下依赖
pip3 show itchat-uos

@zhayujie
Copy link
Owner

@KevinJun2017 see #8

rhinewg pushed a commit to rhinewg/chatgpt-on-wechat that referenced this issue Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants