Open SamYueHW opened 5 months ago
我也遇到了,解决了吗
没解决
mashagua @.***>于2024年2月19日 周一下午8:21写道:
我也遇到了,解决了吗
— Reply to this email directly, view it on GitHub https://github.com/zhayujie/chatgpt-on-wechat/issues/1748#issuecomment-1952020653, or unsubscribe https://github.com/notifications/unsubscribe-auth/A62JMPYAUWKN2PS24VK2JWDYUMKP7AVCNFSM6AAAAABDIPNBA2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJSGAZDANRVGM . You are receiving this because you authored the thread.Message ID: @.***>
我也出现这个问题了 [ERROR][2024-02-29 21:48:31][app.py:66] - App startup failed! [ERROR][2024-02-29 21:48:31][app.py:67] - 'WechatyChannel' object has no attribute 'handler_pool' Traceback (most recent call last): File "/root/chatgpt-on-wechat/app.py", line 61, in run start_channel(channel_name) File "/root/chatgpt-on-wechat/app.py", line 40, in start_channel channel.startup() File "/root/chatgpt-on-wechat/channel/wechat/wechaty_channel.py", line 42, in startup asyncio.run(self.main()) File "/usr/lib64/python3.8/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "/usr/lib64/python3.8/asyncio/base_events.py", line 616, in run_until_complete return future.result() File "/root/chatgpt-on-wechat/channel/wechat/wechaty_channel.py", line 47, in main self.handler_pool._initializer = lambda: asyncio.set_event_loop(loop) AttributeError: 'WechatyChannel' object has no attribute 'handler_pool'
遇到同样问题,有人知道怎么解决嘛?还有wechaty的个微的token是要去买嘛?免费的只有7天时间
遇到同样问题,有人知道怎么解决嘛?还有wechaty的个微的token是要去买嘛?免费的只有7天时间
对,是要去买,一个月200,一年的话打5折,这个就是不知道它对应的wechaty的版本是哪个,没有写在requirements.txt里,最新装的好像没有那个属性
from channel.chat_channel import ChatChannel, handler_pool # add
class WechatyChannel(ChatChannel):
NOT_SUPPORT_REPLYTYPE = []
def __init__(self):
super().__init__()
self.handler_pool = handler_pool # add this line
@SamYueHW 问题解决了吗?
self.handler_pool = handler_pool # add this line
添加了之后原来的问题是没有了,但是出现了 Traceback (most recent call last): File "/root/miniconda3/lib/python3.10/site-packages/wechaty/wechaty.py", line 445, in start await self.puppet.start() File "/root/miniconda3/lib/python3.10/site-packages/wechaty_puppet_service/puppet.py", line 911, in start self._init_puppet() File "/root/miniconda3/lib/python3.10/site-packages/wechaty_puppet_service/puppet.py", line 876, in _init_puppet raise WechatyPuppetGrpcError( wechaty_puppet.exceptions.WechatyPuppetGrpcError: WechatyPuppetGrpcError('can"t fetch endpoint from chatie server. You can try it later, or make sure that your pc can connect to heroku server ', None, None)
self.handler_pool = handler_pool # add this line
添加了之后原来的问题是没有了,但是出现了 Traceback (most recent call last): File "/root/miniconda3/lib/python3.10/site-packages/wechaty/wechaty.py", line 445, in start await self.puppet.start() File "/root/miniconda3/lib/python3.10/site-packages/wechaty_puppet_service/puppet.py", line 911, in start self._init_puppet() File "/root/miniconda3/lib/python3.10/site-packages/wechaty_puppet_service/puppet.py", line 876, in _init_puppet raise WechatyPuppetGrpcError( wechaty_puppet.exceptions.WechatyPuppetGrpcError: WechatyPuppetGrpcError('can"t fetch endpoint from chatie server. You can try it later, or make sure that your pc can connect to heroku server ', None, None)
是的,我的也出现了,不知道是不是wechaty的版本不对还是其它什么原因。
前置确认
⚠️ 搜索issues中是否已存在类似问题
操作系统类型?
MacOS
运行的python版本是?
python 3.7
使用的chatgpt-on-wechat版本是?
Latest Release
运行的
channel
类型是?wxy(个人微信, wechaty)
复现步骤 🕹
No response
问题描述 😯
config.json里已经改为 "channel_type": "wxy", ”wechaty_puppet_service_token": "puppet_padlocal_d6。。。“
终端日志 📒