ehForwarderBot / efb-wechat-slave

A channel for EH Forwarder Bot.
GNU Affero General Public License v3.0
459 stars 62 forks source link

更新到最新版无法chat联系人或者link联系人 #56

Closed kettly1260 closed 5 years ago

kettly1260 commented 5 years ago

版本信息

EH Forwarder Bot Version: 2.0.0b15 Python version: 3.6.5 (default, Apr 1 2018, 05:46:30) [GCC 7.3.0] Master channel: Telegram Master (blueset.telegram) 2.0.0b22 # Default instance Slave channel: WeChat Slave (blueset.wechat) # Default instance Middlewares: No middleware is enabled. ### 问题描述 chat和link命令都无法使用,一直显示在处理中 ### 重现步骤

/link或者/chat可出现 卸载重装无效,退回到A18正常

Verbose 日志

Verbose 日志 ``` 2019-06-03 09:23:36,041 [Level 99]: ehforwarderbot.main (main.init; main.py:96) 2019-06-03 09:23:50,087 [ERROR]: telegram.ext.dispatcher (dispatcher.process_update; dispatcher.py:301) An uncaught error was raised while processing the update Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/telegram/ext/dispatcher.py", line 279, in process_update handler.handle_update(update, self) File "/usr/local/lib/python3.6/dist-packages/telegram/ext/commandhandler.py", line 173, in handle_update return self.callback(dispatcher.bot, update, **optional_args) File "/usr/local/lib/python3.6/dist-packages/efb_telegram_master/chat_binding.py", line 665, in start_chat_list return self.chat_head_req_generate(bot, target, pattern=" ".join(args), chats=chats) File "/usr/local/lib/python3.6/dist-packages/efb_telegram_master/chat_binding.py", line 714, in chat_head_req_generate source_chats=chats) File "/usr/local/lib/python3.6/dist-packages/efb_telegram_master/chat_binding.py", line 318, in slave_chats_pagination slave_chats = slave.get_chats() File "/usr/local/lib/python3.6/dist-packages/efb_wechat_slave/init.py", line 584, in get_chats return self.chats.get_chats() File "/usr/local/lib/python3.6/dist-packages/efb_wechat_slave/chats.py", line 109, in get_chats l = [self.wxpy_chat_to_efb_chat(self.bot.file_helper)] File "/usr/local/lib/python3.6/dist-packages/efb_wechat_slave/chats.py", line 103, in wxpy_chat_to_efb_chat efb_chat.vendor_specific.update(self.generate_vendor_specific(chat)) File "/usr/local/lib/python3.6/dist-packages/efb_wechat_slave/chats.py", line 172, in generate_vendor_specific contact_flag = raw['ContactFlag'] KeyError: 'ContactFlag' ```
ChandelierX commented 5 years ago

Yes I can reproduce the same issue on my machine with efb-telegram-master (2.0.0b22) efb-wechat-slave (2.0.0a20)

concurrentz commented 5 years ago

Same as my situation. Showed 'Key_error' / contact_flag missing. Then i uninstall efb-wechat-slave (2.0.0a20). It became functional by Installing version 2.0.0a18

leelaylay commented 5 years ago

Same as my situation. Showed 'Key_error' / contact_flag missing. Then i uninstall efb-wechat-slave (2.0.0a20). It became functional by Installing version 2.0.0a18

Thank you. I just do what you say and it works.

# uninstall 2.0.0a20 version 
pip3 uninstall efb-wechat-slave
# install 2.0.0a18 version 
pip3 install efb-wechat-slave==2.0.0a18
ghost commented 5 years ago

有個折中的方法,先在a18上/link 聯繫人到Group,再更新到a20.... a18無法發送表情還是麻煩了點。

concurrentz commented 5 years ago

You could send the stickers via middleware EFB Sticker2Img. But the downside of this is gonna be that the stickers will be sent as photos in jpg

kettly1260 commented 5 years ago

You could send the stickers via middleware EFB Sticker2Img. But the downside of this is gonna be that the stickers will be sent as photos in jpg

@concurrentz 按照您给的这个中间件,安装之后出现了如下问题:

Traceback (most recent call last): File "/usr/local/bin/ehforwarderbot", line 10, in sys.exit(main()) File "/usr/local/lib/python3.6/dist-packages/ehforwarderbot/main.py", line 260, in main conf = config.load_config() File "/usr/local/lib/python3.6/dist-packages/ehforwarderbot/config.py", line 71, in load_config raise ValueError("\"%s\" is not found." % i) ValueError: "catbaron.sticker2img" is not found.

concurrentz commented 5 years ago

You could send the stickers via middleware EFB Sticker2Img. But the downside of this is gonna be that the stickers will be sent as photos in jpg

@concurrentz 按照您给的这个中间件,安装之后出现了如下问题:

Traceback (most recent call last): File "/usr/local/bin/ehforwarderbot", line 10, in sys.exit(main()) File "/usr/local/lib/python3.6/dist-packages/ehforwarderbot/main.py", line 260, in main conf = config.load_config() File "/usr/local/lib/python3.6/dist-packages/ehforwarderbot/config.py", line 71, in load_config raise ValueError(""%s" is not found." % i) ValueError: "catbaron.sticker2img" is not found.

Show me the screenshot of the config.yaml as well as the location(relative path). Beside, you need to restart ehforwarderbot, too.

ghost commented 5 years ago

You could send the stickers via middleware EFB Sticker2Img. But the downside of this is gonna be that the stickers will be sent as photos in jpg

Thank You,It works

kettly1260 commented 5 years ago

You could send the stickers via middleware EFB Sticker2Img. But the downside of this is gonna be that the stickers will be sent as photos in jpg

@concurrentz 按照您给的这个中间件,安装之后出现了如下问题: Traceback (most recent call last): File "/usr/local/bin/ehforwarderbot", line 10, in sys.exit(main()) File "/usr/local/lib/python3.6/dist-packages/ehforwarderbot/main.py", line 260, in main conf = config.load_config() File "/usr/local/lib/python3.6/dist-packages/ehforwarderbot/config.py", line 71, in load_config raise ValueError(""%s" is not found." % i) ValueError: "catbaron.sticker2img" is not found.

Show me the screenshot of the config.yaml as well as the location(relative path). Beside, you need to restart ehforwarderbot, too.

@concurrentz Hello, I have solved it. But I met another problem. Is this the content of the GIF library that cannot be sent, the bot prompts Message is not sent. ValueError('bad transparency mask',)

concurrentz commented 5 years ago

You could send the stickers via middleware EFB Sticker2Img. But the downside of this is gonna be that the stickers will be sent as photos in jpg

@concurrentz 按照您给的这个中间件,安装之后出现了如下问题: Traceback (most recent call last): File "/usr/local/bin/ehforwarderbot", line 10, in sys.exit(main()) File "/usr/local/lib/python3.6/dist-packages/ehforwarderbot/main.py", line 260, in main conf = config.load_config() File "/usr/local/lib/python3.6/dist-packages/ehforwarderbot/config.py", line 71, in load_config raise ValueError(""%s" is not found." % i) ValueError: "catbaron.sticker2img" is not found.

Show me the screenshot of the config.yaml as well as the location(relative path). Beside, you need to restart ehforwarderbot, too.

@concurrentz Hello, I have solved it. But I met another problem. Is this the content of the GIF library that cannot be sent, the bot prompts Message is not sent. ValueError('bad transparency mask',)

Yes, it is. No substitute for sending gif now

blueset commented 5 years ago

感谢汇报,目前已于 3678e6d (alpha 22) 里面修复了这一问题。

concurrentz commented 5 years ago

Thanks, it works now.

l-we commented 5 years ago

感谢汇报,目前已于 3678e6d (alpha 22) 里面修复了这一问题。

Webhook 依然无法chat联系人或者link联系人

zsbai commented 2 years ago

You could send the stickers via middleware EFB Sticker2Img. But the downside of this is gonna be that the stickers will be sent as photos in jpg

@concurrentz 按照您给的这个中间件,安装之后出现了如下问题:

Traceback (most recent call last): File "/usr/local/bin/ehforwarderbot", line 10, in sys.exit(main()) File "/usr/local/lib/python3.6/dist-packages/ehforwarderbot/main.py", line 260, in main conf = config.load_config() File "/usr/local/lib/python3.6/dist-packages/ehforwarderbot/config.py", line 71, in load_config raise ValueError(""%s" is not found." % i) ValueError: "catbaron.sticker2img" is not found.

请教如何解决ValueError: "catbaron.sticker2img" is not found, 我也遇到了相同的问题