Closed kettly1260 closed 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)
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
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
有個折中的方法,先在a18上/link 聯繫人到Group,再更新到a20.... a18無法發送表情還是麻煩了點。
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
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
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.
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
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 restartehforwarderbot
, 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',)
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 restartehforwarderbot
, 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
感谢汇报,目前已于 3678e6d (alpha 22) 里面修复了这一问题。
Thanks, it works now.
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
, 我也遇到了相同的问题
版本信息
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)/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' ```