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

运行app.py可以弹出二维码,但是扫码无反应

Open foz11223f opened this issue 1 year ago • 1 comments

前置确认

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

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

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

操作系统类型?

Windows

运行的python版本是?

python 3.10

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

Latest Release

运行的channel类型是?

wx(个人微信, itchat)

复现步骤 🕹

运行python app.py后可以弹出二维码,但是扫码后没反应,日志中有error

问题描述 😯

No response

终端日志 📒

[INFO][2024-03-25 13:05:25][config.py:254] - [INIT] load config: {'channel_type': 'wx', 'model': 'gpt-3.5-turbo', 'open_ai_api_key': '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', 'text_to_image': 'dall-e-2', 'voice_to_text': 'openai', 'text_to_voice': 'openai', 'proxy': '', 'hot_reload': False, 'single_chat_prefix': ['bot', '@bot'], 'single_chat_reply_prefix': 'foz', 'group_chat_prefix': ['@foz'], 'group_name_white_list': [''], 'image_create_prefix': [''], 'speech_recognition': True, 'group_speech_recognition': False, 'voice_reply_voice': False, 'conversation_max_tokens': 2500, 'expires_in_seconds': 3600, 'temperature': 0.7, 'use_linkai': False, 'linkai_api_key': '', 'linkai_app_code': ''} [INFO][2024-03-25 13:05:25][config.py:202] - [Config] User datas loaded. [WARNING][2024-03-25 13:05:25][audio_convert.py:9] - import pysilk failed, wechaty voice message will not be supported. [INFO][2024-03-25 13:05:25][plugin_manager.py:50] - Loading plugins config... [INFO][2024-03-25 13:05:25][plugin_manager.py:88] - Scaning plugins ... [INFO][2024-03-25 13:05:25][plugin_manager.py:41] - Plugin Banwords_v1.0 registered, path=./plugins\banwords [INFO][2024-03-25 13:05:25][plugin_manager.py:41] - Plugin BDunit_v0.1 registered, path=./plugins\bdunit [INFO][2024-03-25 13:05:25][plugin_manager.py:41] - Plugin Dungeon_v1.0 registered, path=./plugins\dungeon [INFO][2024-03-25 13:05:25][plugin_manager.py:41] - Plugin Finish_v1.0 registered, path=./plugins\finish [INFO][2024-03-25 13:05:25][plugin_manager.py:41] - Plugin Godcmd_v1.0 registered, path=./plugins\godcmd [INFO][2024-03-25 13:05:25][plugin_manager.py:41] - Plugin Hello_v0.1 registered, path=./plugins\hello [INFO][2024-03-25 13:05:25][plugin_manager.py:41] - Plugin Keyword_v0.1 registered, path=./plugins\keyword [INFO][2024-03-25 13:05:25][plugin_manager.py:41] - Plugin linkai_v0.1.0 registered, path=./plugins\linkai [INFO][2024-03-25 13:05:25][plugin_manager.py:41] - Plugin Role_v1.0 registered, path=./plugins\role [WARNING][2024-03-25 13:05:25][plugin_manager.py:113] - Failed to import plugin tool: No module named 'chatgpt_tool_hub' [INFO][2024-03-25 13:05:25][godcmd.py:194] - [Godcmd] ▒▒δ▒▒▒ÿ▒▒▒▒▒ε▒▒▒ʱ▒▒▒▒Ϊ2568▒▒ [INFO][2024-03-25 13:05:25][godcmd.py:210] - [Godcmd] inited [INFO][2024-03-25 13:05:25][keyword.py:40] - [keyword] {} [INFO][2024-03-25 13:05:25][keyword.py:42] - [keyword] inited. [INFO][2024-03-25 13:05:25][linkai.py:33] - [LinkAI] inited, config={'group_app_map': {'▒▒▒▒Ⱥ▒▒1': 'default', '▒▒▒▒Ⱥ▒▒2': 'Kv2fXJcH'}, 'midjourney': {'enabled': False, 'auto_translate': True, 'img_proxy': True, 'max_tasks': 3, 'max_tasks_per_user': 1, 'use_image_create_prefix': True}, 'summary': {'enabled': False, 'group_enabled': True, 'max_file_size': 5000, 'type': ['FILE', 'SHARING']}} [INFO][2024-03-25 13:05:25][role.py:69] - [Role] inited [INFO][2024-03-25 13:05:25][dungeon.py:56] - [Dungeon] inited [INFO][2024-03-25 13:05:25][hello.py:24] - [Hello] inited [INFO][2024-03-25 13:05:25][finish.py:23] - [Finish] inited Ready to login. Getting uuid of QR code. Downloading QR code. You can also scan QRCode in any website below: https://api.pwmqr.com/qrcode/create/?url=https://login.weixin.qq.com/l/IeapyiQXVw== https://my.tv.sohu.com/user/a/wvideo/getQRCode.do?text=https://login.weixin.qq.com/l/IeapyiQXVw== https://api.qrserver.com/v1/create-qr-code/?size=400▒▒400&data=https://login.weixin.qq.com/l/IeapyiQXVw== https://api.isoyu.com/qr/?m=1&e=L&p=20&url=https://login.weixin.qq.com/l/IeapyiQXVw== ▒▒[ERROR][2024-03-25 13:05:26][wechat_channel.py:135] - 'gbk' codec can't encode character '\u2580' in position 0: illegal multibyte sequence

foz11223f avatar Mar 25 '24 05:03 foz11223f

我也是一样的问题,你怎么解决的

angwz avatar May 01 '24 01:05 angwz

应该改动了文件编码。重新调为utf-8格式

6vision avatar Jul 18 '24 14:07 6vision