wechaty -error - internal error<>
Open
KsAlone
opened this issue 2 years ago
•
11 comments
前置确认
- 运行于国内网络环境,未开代理
- python 已安装:版本在 3.7 ~ 3.10 之间,依赖已安装
- 在已有 issue 中未搜索到类似问题
- FAQS 中无类似问题
问题描述
简要说明、截图、复现步骤等,也可以是需求或想法
启动之后wechaty报错
终端日志 (如有报错)
[在此处粘贴终端日志]
[INFO][2023-02-23 17:52:12][wechaty_channel.py:49] - success
2023-02-23 17:52:12,415 - Wechaty - INFO - or you can scan qrcode from: https://wechaty.js.org/qrcode/http://weixin.qq.com/x/IdubzL6-bP8RFq4vGgjh
2023-02-23 17:52:12,415 - Wechaty - ERROR - internal error <>
环境
- 操作系统类型 (Mac/Windows/Linux):
- Python版本 ( 执行
python3 -V ):
- pip版本 ( 依赖问题此项必填,执行
pip3 -V):
ERROR - internal error <>
日志可以提供一下,这个什么错误也看不到
Feb 24
'23 07:02
ZQ7
D:\develop\environment\python\python.exe D:/develop/workspace/pycharmworkspace/chatgpt-on-wechat/app.py
[INFO][2023-02-24 15:19:16][config.py:19] - [INIT] load config: {'open_ai_api_key': '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', 'wechaty_puppet_service_token': 'bd6e5627-19c2-4b66-9f4c-2285f20ec309', 'single_chat_prefix': ['bot', '@bot'], 'single_chat_reply_prefix': '[bot] ', 'group_chat_prefix': ['@bot'], 'group_name_white_list': ['ChatGPT测试群', 'ChatGPT测试群2'], 'image_create_prefix': ['画', '看', '找'], 'conversation_max_tokens': 1000, 'character_desc': '你是ChatGPT, 一个由OpenAI训练的大型语言模型, 你旨在回答并解决人们的任何问题,并且可以使用多种语言与人交流。'}
2023-02-24 15:19:21,718 - PuppetService - WARNING - there are endpointxxxxxxxx:9001 and token, and the endpoint will be used for service ...
2023-02-24 15:19:21,809 - Wechaty - INFO - on() listen event with <<bound method WechatyChannel.on_scan of <channel.wechat.wechaty_channel.WechatyChannel object at 0x000001BE431EF970>>>
2023-02-24 15:19:21,809 - Wechaty - INFO - on() listen event with <<bound method WechatyChannel.on_login of <channel.wechat.wechaty_channel.WechatyChannel object at 0x000001BE431EF970>>>
2023-02-24 15:19:21,809 - Wechaty - INFO - on() listen event with <<bound method WechatyChannel.on_message of <channel.wechat.wechaty_channel.WechatyChannel object at 0x000001BE431EF970>>>
2023-02-24 15:19:21,810 - Wechaty - INFO - init_puppet_event_bridge() <<wechaty_puppet_service.puppet.PuppetService object at 0x000001BE47566C10>>
2023-02-24 15:19:21,810 - Wechaty - INFO - initPuppetEventBridge() puppet.on(dong) (listenerCount:1) registering...
2023-02-24 15:19:21,810 - Wechaty - INFO - initPuppetEventBridge() puppet.on(error) (listenerCount:1) registering...
2023-02-24 15:19:21,810 - Wechaty - INFO - initPuppetEventBridge() puppet.on(heart-beat) (listenerCount:1) registering...
2023-02-24 15:19:21,810 - Wechaty - INFO - initPuppetEventBridge() puppet.on(ready) (listenerCount:1) registering...
2023-02-24 15:19:21,810 - Wechaty - INFO - receive event <%s>
2023-02-24 15:19:21,810 - Wechaty - INFO - initPuppetEventBridge() puppet.on(reset) (listenerCount:0) registering...
2023-02-24 15:19:21,810 - Wechaty - INFO - initPuppetEventBridge() puppet.on(friendship) (listenerCount:1) registering...
2023-02-24 15:19:21,810 - Wechaty - INFO - initPuppetEventBridge() puppet.on(login) (listenerCount:1) registering...
2023-02-24 15:19:21,810 - Wechaty - INFO - initPuppetEventBridge() puppet.on(logout) (listenerCount:1) registering...
2023-02-24 15:19:21,810 - Wechaty - INFO - initPuppetEventBridge() puppet.on(message) (listenerCount:1) registering...
2023-02-24 15:19:21,810 - Wechaty - INFO - initPuppetEventBridge() puppet.on(room-invite) (listenerCount:1) registering...
2023-02-24 15:19:21,811 - Wechaty - INFO - initPuppetEventBridge() puppet.on(room-join) (listenerCount:1) registering...
2023-02-24 15:19:21,811 - Wechaty - INFO - initPuppetEventBridge() puppet.on(room-leave) (listenerCount:1) registering...
2023-02-24 15:19:21,811 - Wechaty - INFO - initPuppetEventBridge() puppet.on(room-topic) (listenerCount:1) registering...
2023-02-24 15:19:21,811 - Wechaty - INFO - initPuppetEventBridge() puppet.on(scan) (listenerCount:1) registering...
2023-02-24 15:19:21,811 - Wechaty - INFO - starting puppet ...
2023-02-24 15:19:21,811 - PuppetService - INFO - init puppet ...
2023-02-24 15:19:21,818 - PuppetService - INFO - starting the puppet ...
2023-02-24 15:19:21,957 - PuppetService - INFO - puppet has started ...
2023-02-24 15:19:21,958 - PuppetService - INFO - listening the event from the puppet ...
2023-02-24 15:19:21,970 - Wechaty - INFO - receive event <EventScanPayload(status=<ScanStatus.Waiting: 2>, qrcode='http://weixin.qq.com/x/QcNaad5mhVSq2a85LYjS', data=None)>
█████████████████████████████████████
██ ▄▄▄▄▄ █▀█ █ ▄██▄▄▀█▀▄▄█ █ ▄▄▄▄▄ ██
██ █ █ █ ▀▀ ██ ▄ █▀ ▄ ▀█ █ █ ██
██ █▄▄▄█ ██▀ ▄ █ ▄▄▀▀▄▀ ▀▀█ █▄▄▄█ ██
██▄▄▄▄▄▄▄█ ▀ █▄█ ▀ █ ▀ █▄▀▄█▄▄▄▄▄▄▄██
██▄▀▀▀█▀▄▀ ▄█ █ ▀█ ▀▀▄ ▄ ▄▀▀ ▀██
██▀▀▀ ▀ ▄▀▄ ▄▀█ ▄▄▄ ▀█ ▀▄█▀ █▀ ▀ ▄▀██
██▀ ▀██ ▄ ▀▄▄█▀ █▄█ ▀██▄██ █▄███▀▀ ██
██ ██▀██▄ ▄█▀ ▄▀▀▄ ▄██ ▄█▀▀ █▄█ ▀▄▀██
██ █▀▀▄▀▄ █▀▄▄██ ▀██▀▀█ ▀▄▄▀▄▄ ▀▀▄██
██▄▀ ▀▄▀▄ ██▀▄▄▄█▄█▄▄ ▀▄ ▄ ██▀▀ █▄██
██ ▄███▄▀ █▀ ▄█ ▄██▄▄█▄█▄█ ▀█ ▄▀█▄██
██ █▄ ▀ ▄▀ ██▀▀█▀▀█▄ ▀▄▀▀ ███▄ ▀██
██▄▄▄███▄▄ ▀ ▄▄▄▀▀ ▀▀▀ ▀▄▀ ▄▄▄ █▀▄▀██
██ ▄▄▄▄▄ ███ ▄▀ ▄ █ ▀▀ ▀ █▄█ █ ▀██
██ █ █ ██▀▄▄█▀▄█▄█▀█▄ ▄▀ ▄▄ ▄▀▄ ██
██ █▄▄▄█ ██▄ ▄ ▄██▄▄███▄█▄▀▄ ▀▄▄██
██▄▄▄▄▄▄▄█▄▄█▄▄▄▄▄██████▄▄▄▄█▄▄██▄███
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[INFO][2023-02-24 15:19:22][wechaty_channel.py:49] - success
2023-02-24 15:19:22,003 - Wechaty - INFO - or you can scan qrcode from: https://wechaty.js.org/qrcode/http://weixin.qq.com/x/QcNaad5mhVSq2a85LYjS
2023-02-24 15:19:22,004 - Wechaty - ERROR - internal error <>
2023-02-24 15:19:24,659 - Wechaty - INFO - receive event <EventScanPayload(status=<ScanStatus.Waiting: 2>, qrcode='http://weixin.qq.com/x/4fk4hjxkpOzQ6vhaSd9r', data=None)>
█████████████████████████████████████
██ ▄▄▄▄▄ █ █▄▀▀█ █▄▀█▄▄▄█ ▄█ ▄▄▄▄▄ ██
██ █ █ █▀▄ ▄ ▄▄▄▄█ ▀▄▀█ █ █ █ ██
██ █▄▄▄█ ██ ▄ ▄ █▀ █▄██ ▄ ▄█ █▄▄▄█ ██
██▄▄▄▄▄▄▄█ ▀ ▀▄█ ▀ ▀▄▀▄█▄█ █▄▄▄▄▄▄▄██
██ █ ▄▀▄▄▄█▀▀▀▄▀▄▄ ▀▀█▄▀ █▀ ██ ▀ ██
██▄██▄██▄▀▀▀ █ ▄██▀▀▄▀▀ ▄▄█▄ ▄ █▄ ██
██▀▄█▄▄▄▄▄ ▀█ ▀█ █▄██▄ ▄▄ ▄ ▀ ▄ ▀ ▄██
███▄█▀█▀▄ █▄█ ▀▀▀▀█▄▄▄▄▀ ▀▀▀▀▀ ▀ ████
███▄▄█▄▄▄███▄ ▄█▄▀██▀█ ▄▄ ▀ █ ▀█▀███
██▄▄▀▄▄█▄ ▄▄▄██▀▄▀▀ ▀▄▄▀▀▄▀█▀ █▄▄▀██
██▀▀ ██▄ ▀ ▄▄ ▀ ███▀▀ ▄█▀██▄ ▄▀██
███▀▀▀█▄▄▀ ▄▀▄▀ █▄▄▄ ██▄▄▄▄▀ ██▄ ██
██▄█▄███▄█▀▀▀▀█▀▀▀▄▄█ █▀█▄ ▄▄▄ █▀▄██
██ ▄▄▄▄▄ █ ▀▄ ▀ ██ ▄▄█ █▄█ █▀▀▀██
██ █ █ █▀█ █▄▄ ▄▄▀█▀ ▄▄▄▄▄▀▄▀▀██
██ █▄▄▄█ █▄▄▄ ▀█ ▄▄ ██ █▄█▀▀ ▄▀███▀██
██▄▄▄▄▄▄▄█▄████▄▄█▄▄▄▄█▄███▄███▄▄████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[INFO][2023-02-24 15:19:24][wechaty_channel.py:49] - success
2023-02-24 15:19:24,677 - Wechaty - INFO - or you can scan qrcode from: https://wechaty.js.org/qrcode/http://weixin.qq.com/x/4fk4hjxkpOzQ6vhaSd9r
2023-02-24 15:19:24,678 - Wechaty - ERROR - internal error <>
D:\develop\environment\python\python.exe D:/develop/workspace/pycharmworkspace/chatgpt-on-wechat/app.py
[INFO][2023-02-24 15:19:16][config.py:19] - [INIT] load config: {'open_ai_api_key': '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', 'wechaty_puppet_service_token': 'bd6e5627-19c2-4b66-9f4c-2285f20ec309', 'single_chat_prefix': ['bot', '@bot'], 'single_chat_reply_prefix': '[bot] ', 'group_chat_prefix': ['@bot'], 'group_name_white_list': ['ChatGPT测试群', 'ChatGPT测试群2'], 'image_create_prefix': ['画', '看', '找'], 'conversation_max_tokens': 1000, 'character_desc': '你是ChatGPT, 一个由OpenAI训练的大型语言模型, 你旨在回答并解决人们的任何问题,并且可以使用多种语言与人交流。'}
2023-02-24 15:19:21,718 - PuppetService - WARNING - there are endpointxxxxxxxx:9001 and token, and the endpoint will be used for service ...
2023-02-24 15:19:21,809 - Wechaty - INFO - on() listen event with <<bound method WechatyChannel.on_scan of <channel.wechat.wechaty_channel.WechatyChannel object at 0x000001BE431EF970>>>
2023-02-24 15:19:21,809 - Wechaty - INFO - on() listen event with <<bound method WechatyChannel.on_login of <channel.wechat.wechaty_channel.WechatyChannel object at 0x000001BE431EF970>>>
2023-02-24 15:19:21,809 - Wechaty - INFO - on() listen event with <<bound method WechatyChannel.on_message of <channel.wechat.wechaty_channel.WechatyChannel object at 0x000001BE431EF970>>>
2023-02-24 15:19:21,810 - Wechaty - INFO - init_puppet_event_bridge() <<wechaty_puppet_service.puppet.PuppetService object at 0x000001BE47566C10>>
2023-02-24 15:19:21,810 - Wechaty - INFO - initPuppetEventBridge() puppet.on(dong) (listenerCount:1) registering...
2023-02-24 15:19:21,810 - Wechaty - INFO - initPuppetEventBridge() puppet.on(error) (listenerCount:1) registering...
2023-02-24 15:19:21,810 - Wechaty - INFO - initPuppetEventBridge() puppet.on(heart-beat) (listenerCount:1) registering...
2023-02-24 15:19:21,810 - Wechaty - INFO - initPuppetEventBridge() puppet.on(ready) (listenerCount:1) registering...
2023-02-24 15:19:21,810 - Wechaty - INFO - receive event <%s>
2023-02-24 15:19:21,810 - Wechaty - INFO - initPuppetEventBridge() puppet.on(reset) (listenerCount:0) registering...
2023-02-24 15:19:21,810 - Wechaty - INFO - initPuppetEventBridge() puppet.on(friendship) (listenerCount:1) registering...
2023-02-24 15:19:21,810 - Wechaty - INFO - initPuppetEventBridge() puppet.on(login) (listenerCount:1) registering...
2023-02-24 15:19:21,810 - Wechaty - INFO - initPuppetEventBridge() puppet.on(logout) (listenerCount:1) registering...
2023-02-24 15:19:21,810 - Wechaty - INFO - initPuppetEventBridge() puppet.on(message) (listenerCount:1) registering...
2023-02-24 15:19:21,810 - Wechaty - INFO - initPuppetEventBridge() puppet.on(room-invite) (listenerCount:1) registering...
2023-02-24 15:19:21,811 - Wechaty - INFO - initPuppetEventBridge() puppet.on(room-join) (listenerCount:1) registering...
2023-02-24 15:19:21,811 - Wechaty - INFO - initPuppetEventBridge() puppet.on(room-leave) (listenerCount:1) registering...
2023-02-24 15:19:21,811 - Wechaty - INFO - initPuppetEventBridge() puppet.on(room-topic) (listenerCount:1) registering...
2023-02-24 15:19:21,811 - Wechaty - INFO - initPuppetEventBridge() puppet.on(scan) (listenerCount:1) registering...
2023-02-24 15:19:21,811 - Wechaty - INFO - starting puppet ...
2023-02-24 15:19:21,811 - PuppetService - INFO - init puppet ...
2023-02-24 15:19:21,818 - PuppetService - INFO - starting the puppet ...
2023-02-24 15:19:21,957 - PuppetService - INFO - puppet has started ...
2023-02-24 15:19:21,958 - PuppetService - INFO - listening the event from the puppet ...
2023-02-24 15:19:21,970 - Wechaty - INFO - receive event <EventScanPayload(status=<ScanStatus.Waiting: 2>, qrcode='http://weixin.qq.com/x/QcNaad5mhVSq2a85LYjS', data=None)>
█████████████████████████████████████
██ ▄▄▄▄▄ █▀█ █ ▄██▄▄▀█▀▄▄█ █ ▄▄▄▄▄ ██
██ █ █ █ ▀▀ ██ ▄ █▀ ▄ ▀█ █ █ ██
██ █▄▄▄█ ██▀ ▄ █ ▄▄▀▀▄▀ ▀▀█ █▄▄▄█ ██
██▄▄▄▄▄▄▄█ ▀ █▄█ ▀ █ ▀ █▄▀▄█▄▄▄▄▄▄▄██
██▄▀▀▀█▀▄▀ ▄█ █ ▀█ ▀▀▄ ▄ ▄▀▀ ▀██
██▀▀▀ ▀ ▄▀▄ ▄▀█ ▄▄▄ ▀█ ▀▄█▀ █▀ ▀ ▄▀██
██▀ ▀██ ▄ ▀▄▄█▀ █▄█ ▀██▄██ █▄███▀▀ ██
██ ██▀██▄ ▄█▀ ▄▀▀▄ ▄██ ▄█▀▀ █▄█ ▀▄▀██
██ █▀▀▄▀▄ █▀▄▄██ ▀██▀▀█ ▀▄▄▀▄▄ ▀▀▄██
██▄▀ ▀▄▀▄ ██▀▄▄▄█▄█▄▄ ▀▄ ▄ ██▀▀ █▄██
██ ▄███▄▀ █▀ ▄█ ▄██▄▄█▄█▄█ ▀█ ▄▀█▄██
██ █▄ ▀ ▄▀ ██▀▀█▀▀█▄ ▀▄▀▀ ███▄ ▀██
██▄▄▄███▄▄ ▀ ▄▄▄▀▀ ▀▀▀ ▀▄▀ ▄▄▄ █▀▄▀██
██ ▄▄▄▄▄ ███ ▄▀ ▄ █ ▀▀ ▀ █▄█ █ ▀██
██ █ █ ██▀▄▄█▀▄█▄█▀█▄ ▄▀ ▄▄ ▄▀▄ ██
██ █▄▄▄█ ██▄ ▄ ▄██▄▄███▄█▄▀▄ ▀▄▄██
██▄▄▄▄▄▄▄█▄▄█▄▄▄▄▄██████▄▄▄▄█▄▄██▄███
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[INFO][2023-02-24 15:19:22][wechaty_channel.py:49] - success
2023-02-24 15:19:22,003 - Wechaty - INFO - or you can scan qrcode from: https://wechaty.js.org/qrcode/http://weixin.qq.com/x/QcNaad5mhVSq2a85LYjS
2023-02-24 15:19:22,004 - Wechaty - ERROR - internal error <>
2023-02-24 15:19:24,659 - Wechaty - INFO - receive event <EventScanPayload(status=<ScanStatus.Waiting: 2>, qrcode='http://weixin.qq.com/x/4fk4hjxkpOzQ6vhaSd9r', data=None)>
█████████████████████████████████████
██ ▄▄▄▄▄ █ █▄▀▀█ █▄▀█▄▄▄█ ▄█ ▄▄▄▄▄ ██
██ █ █ █▀▄ ▄ ▄▄▄▄█ ▀▄▀█ █ █ █ ██
██ █▄▄▄█ ██ ▄ ▄ █▀ █▄██ ▄ ▄█ █▄▄▄█ ██
██▄▄▄▄▄▄▄█ ▀ ▀▄█ ▀ ▀▄▀▄█▄█ █▄▄▄▄▄▄▄██
██ █ ▄▀▄▄▄█▀▀▀▄▀▄▄ ▀▀█▄▀ █▀ ██ ▀ ██
██▄██▄██▄▀▀▀ █ ▄██▀▀▄▀▀ ▄▄█▄ ▄ █▄ ██
██▀▄█▄▄▄▄▄ ▀█ ▀█ █▄██▄ ▄▄ ▄ ▀ ▄ ▀ ▄██
███▄█▀█▀▄ █▄█ ▀▀▀▀█▄▄▄▄▀ ▀▀▀▀▀ ▀ ████
███▄▄█▄▄▄███▄ ▄█▄▀██▀█ ▄▄ ▀ █ ▀█▀███
██▄▄▀▄▄█▄ ▄▄▄██▀▄▀▀ ▀▄▄▀▀▄▀█▀ █▄▄▀██
██▀▀ ██▄ ▀ ▄▄ ▀ ███▀▀ ▄█▀██▄ ▄▀██
███▀▀▀█▄▄▀ ▄▀▄▀ █▄▄▄ ██▄▄▄▄▀ ██▄ ██
██▄█▄███▄█▀▀▀▀█▀▀▀▄▄█ █▀█▄ ▄▄▄ █▀▄██
██ ▄▄▄▄▄ █ ▀▄ ▀ ██ ▄▄█ █▄█ █▀▀▀██
██ █ █ █▀█ █▄▄ ▄▄▀█▀ ▄▄▄▄▄▀▄▀▀██
██ █▄▄▄█ █▄▄▄ ▀█ ▄▄ ██ █▄█▀▀ ▄▀███▀██
██▄▄▄▄▄▄▄█▄████▄▄█▄▄▄▄█▄███▄███▄▄████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[INFO][2023-02-24 15:19:24][wechaty_channel.py:49] - success
2023-02-24 15:19:24,677 - Wechaty - INFO - or you can scan qrcode from: https://wechaty.js.org/qrcode/http://weixin.qq.com/x/4fk4hjxkpOzQ6vhaSd9r
2023-02-24 15:19:24,678 - Wechaty - ERROR - internal error <>
@ZQ7
D:\develop\environment\python\python.exe D:/develop/workspace/pycharmworkspace/chatgpt-on-wechat/app.py [INFO][2023-02-24 15:19:16][config.py:19] - [INIT] load config: {'open_ai_api_key': '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', 'wechaty_puppet_service_token': 'bd6e5627-19c2-4b66-9f4c-2285f20ec309', 'single_chat_prefix': ['bot', '@bot'], 'single_chat_reply_prefix': '[bot] ', 'group_chat_prefix': ['@bot'], 'group_name_white_list': ['ChatGPT测试群', 'ChatGPT测试群2'], 'image_create_prefix': ['画', '看', '找'], 'conversation_max_tokens': 1000, 'character_desc': '你是ChatGPT, 一个由OpenAI训练的大型语言模型, 你旨在回答并解决人们的任何问题,并且可以使用多种语言与人交流。'} 2023-02-24 15:19:21,718 - PuppetService - WARNING - there are endpointxxxxxxxx:9001 and token, and the endpoint will be used for service ... 2023-02-24 15:19:21,809 - Wechaty - INFO - on() listen event with <<bound method WechatyChannel.on_scan of <channel.wechat.wechaty_channel.WechatyChannel object at 0x000001BE431EF970>>> 2023-02-24 15:19:21,809 - Wechaty - INFO - on() listen event with <<bound method WechatyChannel.on_login of <channel.wechat.wechaty_channel.WechatyChannel object at 0x000001BE431EF970>>> 2023-02-24 15:19:21,809 - Wechaty - INFO - on() listen event with <<bound method WechatyChannel.on_message of <channel.wechat.wechaty_channel.WechatyChannel object at 0x000001BE431EF970>>> 2023-02-24 15:19:21,810 - Wechaty - INFO - init_puppet_event_bridge() <<wechaty_puppet_service.puppet.PuppetService object at 0x000001BE47566C10>> 2023-02-24 15:19:21,810 - Wechaty - INFO - initPuppetEventBridge() puppet.on(dong) (listenerCount:1) registering... 2023-02-24 15:19:21,810 - Wechaty - INFO - initPuppetEventBridge() puppet.on(error) (listenerCount:1) registering... 2023-02-24 15:19:21,810 - Wechaty - INFO - initPuppetEventBridge() puppet.on(heart-beat) (listenerCount:1) registering... 2023-02-24 15:19:21,810 - Wechaty - INFO - initPuppetEventBridge() puppet.on(ready) (listenerCount:1) registering... 2023-02-24 15:19:21,810 - Wechaty - INFO - receive event <%s> 2023-02-24 15:19:21,810 - Wechaty - INFO - initPuppetEventBridge() puppet.on(reset) (listenerCount:0) registering... 2023-02-24 15:19:21,810 - Wechaty - INFO - initPuppetEventBridge() puppet.on(friendship) (listenerCount:1) registering... 2023-02-24 15:19:21,810 - Wechaty - INFO - initPuppetEventBridge() puppet.on(login) (listenerCount:1) registering... 2023-02-24 15:19:21,810 - Wechaty - INFO - initPuppetEventBridge() puppet.on(logout) (listenerCount:1) registering... 2023-02-24 15:19:21,810 - Wechaty - INFO - initPuppetEventBridge() puppet.on(message) (listenerCount:1) registering... 2023-02-24 15:19:21,810 - Wechaty - INFO - initPuppetEventBridge() puppet.on(room-invite) (listenerCount:1) registering... 2023-02-24 15:19:21,811 - Wechaty - INFO - initPuppetEventBridge() puppet.on(room-join) (listenerCount:1) registering... 2023-02-24 15:19:21,811 - Wechaty - INFO - initPuppetEventBridge() puppet.on(room-leave) (listenerCount:1) registering... 2023-02-24 15:19:21,811 - Wechaty - INFO - initPuppetEventBridge() puppet.on(room-topic) (listenerCount:1) registering... 2023-02-24 15:19:21,811 - Wechaty - INFO - initPuppetEventBridge() puppet.on(scan) (listenerCount:1) registering... 2023-02-24 15:19:21,811 - Wechaty - INFO - starting puppet ... 2023-02-24 15:19:21,811 - PuppetService - INFO - init puppet ... 2023-02-24 15:19:21,818 - PuppetService - INFO - starting the puppet ... 2023-02-24 15:19:21,957 - PuppetService - INFO - puppet has started ... 2023-02-24 15:19:21,958 - PuppetService - INFO - listening the event from the puppet ... 2023-02-24 15:19:21,970 - Wechaty - INFO - receive event <EventScanPayload(status=<ScanStatus.Waiting: 2>, qrcode='http://weixin.qq.com/x/QcNaad5mhVSq2a85LYjS', data=None)> █████████████████████████████████████ ██ ▄▄▄▄▄ █▀█ █ ▄██▄▄▀█▀▄▄█ █ ▄▄▄▄▄ ██ ██ █ █ █ ▀▀ ██ ▄ █▀ ▄ ▀█ █ █ ██ ██ █▄▄▄█ ██▀ ▄ █ ▄▄▀▀▄▀ ▀▀█ █▄▄▄█ ██ ██▄▄▄▄▄▄▄█ ▀ █▄█ ▀ █ ▀ █▄▀▄█▄▄▄▄▄▄▄██ ██▄▀▀▀█▀▄▀ ▄█ █ ▀█ ▀▀▄ ▄ ▄▀▀ ▀██ ██▀▀▀ ▀ ▄▀▄ ▄▀█ ▄▄▄ ▀█ ▀▄█▀ █▀ ▀ ▄▀██ ██▀ ▀██ ▄ ▀▄▄█▀ █▄█ ▀██▄██ █▄███▀▀ ██ ██ ██▀██▄ ▄█▀ ▄▀▀▄ ▄██ ▄█▀▀ █▄█ ▀▄▀██ ██ █▀▀▄▀▄ █▀▄▄██ ▀██▀▀█ ▀▄▄▀▄▄ ▀▀▄██ ██▄▀ ▀▄▀▄ ██▀▄▄▄█▄█▄▄ ▀▄ ▄ ██▀▀ █▄██ ██ ▄███▄▀ █▀ ▄█ ▄██▄▄█▄█▄█ ▀█ ▄▀█▄██ ██ █▄ ▀ ▄▀ ██▀▀█▀▀█▄ ▀▄▀▀ ███▄ ▀██ ██▄▄▄███▄▄ ▀ ▄▄▄▀▀ ▀▀▀ ▀▄▀ ▄▄▄ █▀▄▀██ ██ ▄▄▄▄▄ ███ ▄▀ ▄ █ ▀▀ ▀ █▄█ █ ▀██ ██ █ █ ██▀▄▄█▀▄█▄█▀█▄ ▄▀ ▄▄ ▄▀▄ ██ ██ █▄▄▄█ ██▄ ▄ ▄██▄▄███▄█▄▀▄ ▀▄▄██ ██▄▄▄▄▄▄▄█▄▄█▄▄▄▄▄██████▄▄▄▄█▄▄██▄███ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ [INFO][2023-02-24 15:19:22][wechaty_channel.py:49] - success 2023-02-24 15:19:22,003 - Wechaty - INFO - or you can scan qrcode from: https://wechaty.js.org/qrcode/http://weixin.qq.com/x/QcNaad5mhVSq2a85LYjS 2023-02-24 15:19:22,004 - Wechaty - ERROR - internal error <> 2023-02-24 15:19:24,659 - Wechaty - INFO - receive event <EventScanPayload(status=<ScanStatus.Waiting: 2>, qrcode='http://weixin.qq.com/x/4fk4hjxkpOzQ6vhaSd9r', data=None)> █████████████████████████████████████ ██ ▄▄▄▄▄ █ █▄▀▀█ █▄▀█▄▄▄█ ▄█ ▄▄▄▄▄ ██ ██ █ █ █▀▄ ▄ ▄▄▄▄█ ▀▄▀█ █ █ █ ██ ██ █▄▄▄█ ██ ▄ ▄ █▀ █▄██ ▄ ▄█ █▄▄▄█ ██ ██▄▄▄▄▄▄▄█ ▀ ▀▄█ ▀ ▀▄▀▄█▄█ █▄▄▄▄▄▄▄██ ██ █ ▄▀▄▄▄█▀▀▀▄▀▄▄ ▀▀█▄▀ █▀ ██ ▀ ██ ██▄██▄██▄▀▀▀ █ ▄██▀▀▄▀▀ ▄▄█▄ ▄ █▄ ██ ██▀▄█▄▄▄▄▄ ▀█ ▀█ █▄██▄ ▄▄ ▄ ▀ ▄ ▀ ▄██ ███▄█▀█▀▄ █▄█ ▀▀▀▀█▄▄▄▄▀ ▀▀▀▀▀ ▀ ████ ███▄▄█▄▄▄███▄ ▄█▄▀██▀█ ▄▄ ▀ █ ▀█▀███ ██▄▄▀▄▄█▄ ▄▄▄██▀▄▀▀ ▀▄▄▀▀▄▀█▀ █▄▄▀██ ██▀▀ ██▄ ▀ ▄▄ ▀ ███▀▀ ▄█▀██▄ ▄▀██ ███▀▀▀█▄▄▀ ▄▀▄▀ █▄▄▄ ██▄▄▄▄▀ ██▄ ██ ██▄█▄███▄█▀▀▀▀█▀▀▀▄▄█ █▀█▄ ▄▄▄ █▀▄██ ██ ▄▄▄▄▄ █ ▀▄ ▀ ██ ▄▄█ █▄█ █▀▀▀██ ██ █ █ █▀█ █▄▄ ▄▄▀█▀ ▄▄▄▄▄▀▄▀▀██ ██ █▄▄▄█ █▄▄▄ ▀█ ▄▄ ██ █▄█▀▀ ▄▀███▀██ ██▄▄▄▄▄▄▄█▄████▄▄█▄▄▄▄█▄███▄███▄▄████ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ [INFO][2023-02-24 15:19:24][wechaty_channel.py:49] - success 2023-02-24 15:19:24,677 - Wechaty - INFO - or you can scan qrcode from: https://wechaty.js.org/qrcode/http://weixin.qq.com/x/4fk4hjxkpOzQ6vhaSd9r 2023-02-24 15:19:24,678 - Wechaty - ERROR - internal error <>
@ZQ7
windows电脑,扫码后不能登录?如果控制台的码是坏的,点击链接的二维码也是可以的
Feb 24
'23 07:02
ZQ7
python-wechaty项目Demo试一下:
https://github.com/wechaty/python-wechaty/blob/master/examples/ding-dong-bot.py
Feb 24
'23 08:02
ZQ7
python-wechaty项目Demo试一下: https://github.com/wechaty/python-wechaty/blob/master/examples/ding-dong-bot.py
昨天报这个错之后扫码登陆,无法实现自动回答,刚刚又试了下可以了,感谢答疑
扫码之后登录没反应,看到提示的内容如下,也是这个webchaty - error -internal error <>
[INFO][2023-03-01 01:49:49][config.py:19] - [INIT] load config: {'open_ai_api_key': 'sk-YgRZy9HnSvIj6qHYT3BlbkFJzW5x4gWQ7LjVPSRF', 'wechaty_puppet_service_token': '645e-c39a-406b-9381-b6939b7f', 'single_chat_prefix': ['bot', '@bot'], 'single_chat_reply_prefix': '[bot] ', 'group_chat_prefix': ['@bot'], 'group_name_white_list': ['ChatGPT测试群', 'ChatGPT测试群2'], 'image_create_prefix': ['画', '看', '找'], 'conversation_max_tokens': 1000, 'character_desc': '你是ChatGPT, 一个由OpenAI训练的大型语言模型, 你旨在回答并解决人们的任何问题,并且可以使用多种语言与人交流。'}
2023-03-01 01:49:50,442 - Wechaty - INFO - on() listen event with <<bound method WechatyChannel.on_scan of <channel.wechat.wechaty_channel.WechatyChannel object at 0x7f7faf0fcb20>>>
2023-03-01 01:49:50,443 - Wechaty - INFO - on() listen event with <<bound method WechatyChannel.on_login of <channel.wechat.wechaty_channel.WechatyChannel object at 0x7f7faf0fcb20>>>
2023-03-01 01:49:50,443 - Wechaty - INFO - on() listen event with <<bound method WechatyChannel.on_message of <channel.wechat.wechaty_channel.WechatyChannel object at 0x7f7faf0fcb20>>>
2023-03-01 01:49:50,443 - Wechaty - INFO - init_puppet_event_bridge() <<wechaty_puppet_service.puppet.PuppetService object at 0x7f7f9e57b070>>
2023-03-01 01:49:50,444 - Wechaty - INFO - initPuppetEventBridge() puppet.on(dong) (listenerCount:1) registering...
2023-03-01 01:49:50,444 - Wechaty - INFO - initPuppetEventBridge() puppet.on(error) (listenerCount:1) registering...
2023-03-01 01:49:50,444 - Wechaty - INFO - initPuppetEventBridge() puppet.on(heart-beat) (listenerCount:1) registering...
2023-03-01 01:49:50,444 - Wechaty - INFO - initPuppetEventBridge() puppet.on(ready) (listenerCount:1) registering...
2023-03-01 01:49:50,444 - Wechaty - INFO - receive event <%s>
2023-03-01 01:49:50,444 - Wechaty - INFO - initPuppetEventBridge() puppet.on(reset) (listenerCount:0) registering...
2023-03-01 01:49:50,444 - Wechaty - INFO - initPuppetEventBridge() puppet.on(friendship) (listenerCount:1) registering...
2023-03-01 01:49:50,444 - Wechaty - INFO - initPuppetEventBridge() puppet.on(login) (listenerCount:1) registering...
2023-03-01 01:49:50,444 - Wechaty - INFO - initPuppetEventBridge() puppet.on(logout) (listenerCount:1) registering...
2023-03-01 01:49:50,445 - Wechaty - INFO - initPuppetEventBridge() puppet.on(message) (listenerCount:1) registering...
2023-03-01 01:49:50,445 - Wechaty - INFO - initPuppetEventBridge() puppet.on(room-invite) (listenerCount:1) registering...
2023-03-01 01:49:50,445 - Wechaty - INFO - initPuppetEventBridge() puppet.on(room-join) (listenerCount:1) registering...
2023-03-01 01:49:50,445 - Wechaty - INFO - initPuppetEventBridge() puppet.on(room-leave) (listenerCount:1) registering...
2023-03-01 01:49:50,445 - Wechaty - INFO - initPuppetEventBridge() puppet.on(room-topic) (listenerCount:1) registering...
2023-03-01 01:49:50,445 - Wechaty - INFO - initPuppetEventBridge() puppet.on(scan) (listenerCount:1) registering...
2023-03-01 01:49:50,445 - Wechaty - INFO - starting puppet ...
2023-03-01 01:49:50,445 - PuppetService - INFO - init puppet ...
2023-03-01 01:49:50,445 - PuppetService - INFO - fetching endpoint from chatie-server: https://api.chatie.io/v0/hosties/6934645e-c39a-406b-9381-b6939b7fcb04
2023-03-01 01:49:50,786 - PuppetService - INFO - starting the puppet ...
2023-03-01 01:49:51,522 - PuppetService - INFO - puppet has started ...
2023-03-01 01:49:51,523 - PuppetService - INFO - listening the event from the puppet ...
2023-03-01 01:49:51,527 - Wechaty - INFO - receive event <EventScanPayload(status=<ScanStatus.Waiting: 2>, qrcode='http://weixin.qq.com/x/4f2_w3mKcDXD5D0Wjpyw', data=None)>
█████████████████████████████████████
██ ▄▄▄▄▄ ██▀ ▀███▀ █▀▄ █▄ █ ▄▄▄▄▄ ██
██ █ █ █ ▄▀███▄▀██▀ ▄ ▄ ▀█ █ █ ██
██ █▄▄▄█ █ ▀ ▄▀▄ ▄▄▄▀▀▄█ ▀▀█ █▄▄▄█ ██
██▄▄▄▄▄▄▄█ █ █▄█ █ █ ▀ ▀▄▀▄█▄▄▄▄▄▄▄██
██ █▄▄ ▄███ ▄▀▄█▄ ██ ▄▀ ▄▄ ▀███
██▄█ ▄▄▄ ▄ ▀ ▀ ▄▄ ▀█ █▄█▀ ▀█ ▀ ▄███
██▄ ▀▄▄▄ ▀▄▄▀ ▀▄ ▄▀▀▄▄ ▄▄ ▄▀██▄█ ▀██
██▀█▄▄▄▀▄▀ █ ▀▀▀ ▄▄██▄ ▀▀█ ▀ █▀ ▄███
██ ▀▀▀▄ ▄█▀██▀█ ▀▄ ▄▄▀▀▀ ▀▄▄▀ ▄▀ █▄██
██▄██ ▀▄▄▀▀▀█▀ ▄▄ █▄▀ ▀█ █ █ ▀ ▀██
██▀▄▄▀▄ ▄ █▄█ █▀ ▀▀█▄▄▀ ▀ █ ▀▀▄ ▀█▀██
██ █ █▀▀▄██▀▄█ ▀██▀█▀ ▀ ▀█▀ █▄██ ▀██
██▄██▄▄█▄█ ▄▀█ ▀█▀ ▀ ▀██ ▄▄▄ ▄▀█ ██
██ ▄▄▄▄▄ █▀▄▀▄▀ ▄█ ▀▀▄█▄ █▄█ █ ▀██
██ █ █ █ █▀▀▄▄ ▄█▀█▄▄▄▀ ▄ ▀█ ██
██ █▄▄▄█ █▄▀ ▀▀ ▀ ▄▄▀█▄▀▄▀██▄ ▀ ████
██▄▄▄▄▄▄▄█▄███▄▄█▄▄▄▄███▄▄▄██▄▄█▄▄███
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
2023-03-01 01:49:51,542 - Wechaty - INFO - or you can scan qrcode from: https://wechaty.js.org/qrcode/http://weixin.qq.com/x/4f2_w3mKcDXD5D0Wjpyw
Exception in callback AsyncIOEventEmitter._emit_run..callback(<Task finishe...e 'Contact'")>) at /usr/local/lib/python3.8/site-packages/pyee/asyncio.py:65
handle: <Handle AsyncIOEventEmitter._emit_run..callback(<Task finishe...e 'Contact'")>) at /usr/local/lib/python3.8/site-packages/pyee/asyncio.py:65>
Traceback (most recent call last):
File "/usr/local/lib/python3.8/asyncio/events.py", line 81, in _run
self._context.run(self._callback, *self._args)
File "/usr/local/lib/python3.8/site-packages/pyee/asyncio.py", line 71, in callback
self.emit("error", exc)
File "/usr/local/lib/python3.8/site-packages/wechaty/wechaty.py", line 332, in emit
return super().emit(event, *args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pyee/base.py", line 179, in emit
self._emit_handle_potential_error(event, args[0] if args else None)
File "/usr/local/lib/python3.8/site-packages/pyee/base.py", line 139, in _emit_handle_potential_error
raise error
File "/root/chatgpt-on-wechat/channel/wechat/wechaty_channel.py", line 48, in on_scan
contact = self.Contact.load(self.contact_id)
AttributeError: 'WechatyChannel' object has no attribute 'Contact'
2023-03-01 01:49:51,544 - Wechaty - ERROR - internal error <>
File "/root/chatgpt-on-wechat/channel/wechat/wechaty_channel.py", line 48, in on_scan
contact = self.Contact.load(self.contact_id)
AttributeError: 'WechatyChannel' object has no attribute 'Contact'
2023-03-01 01:49:51,544 - Wechaty - ERROR - internal error <>
@ZQ7 老哥,有空看看吗?我看Contact 和 contact_id没有被声明啊,怎么引入的?