ehForwarderBot / efb-qq-plugin-go-cqhttp

Go-cqhttp Plugin for EFB QQ Slave.
GNU Affero General Public License v3.0
32 stars 20 forks source link

初始化客户端报错 KeyError: 'Client' #14

Closed StirrerCymbal5zn closed 3 years ago

StirrerCymbal5zn commented 3 years ago

从端是go-cqhttp并配置完成,启动go-cqhttp没有问题且可以正常接收群消息,错误日志如下 guys@guys-virtual-machine:~/.ehforwarderbot/profiles/default$ ehforwarderbot 2021-10-14 11:17:17,425 [Level 99]: ehforwarderbot.main (main.init; main.py:129) 正在初始化从端 milkice.qq#default… Traceback (most recent call last): File "/usr/local/bin/ehforwarderbot", line 8, in sys.exit(main()) File "/usr/local/lib/python3.8/dist-packages/ehforwarderbot/main.py", line 335, in main init(conf) File "/usr/local/lib/python3.8/dist-packages/ehforwarderbot/main.py", line 135, in init coordinator.add_channel(cls(instance_id=instance_id)) File "/usr/local/lib/python3.8/dist-packages/efb_qq_slave/init.py", line 44, in init self.init_client_manager() File "/usr/local/lib/python3.8/dist-packages/efb_qq_slave/init.py", line 73, in init_client_manager self.QQClientMgr = ClientMgr(self.config['Client'], self.config, self) KeyError: 'Client'

python3.9版本,唯独最后一步启动EFB出错了

XYenon commented 3 years ago

检查一下 ~/.ehforwarderbot/profiles/default/milkice.qq/config.yaml 的格式和 README 是否一致

StirrerCymbal5zn commented 3 years ago

检查一下~/.ehforwarderbot/profiles/default/milkice.qq/config.yaml的格式和README是否一致

抱歉,小白仔细查对了一下,还是没有发现格式问题。我还用文本编辑器手打了一遍。如图 Snipaste_2021-10-21_20-22-16 Snipaste_2021-10-22_20-36-24 Snipaste_2021-10-22_20-41-26

XYenon commented 3 years ago

可能是没读到配置文件,带 --verbose 启动看看日志呢

StirrerCymbal5zn commented 3 years ago

可能是没读到配置文件,带 --verbose 启动看看日志呢

似乎是一样的: guys@guys-virtual-machine:~/Desktop$ ehforwarderbot --verbose 2021-10-23 09:17:16,149 [Level 99]: ehforwarderbot.main (main.init; main.py:129) 正在初始化从端 milkice.qq#default… Traceback (most recent call last): File "/usr/local/bin/ehforwarderbot", line 8, in sys.exit(main()) File "/usr/local/lib/python3.8/dist-packages/ehforwarderbot/main.py", line 335, in main init(conf) File "/usr/local/lib/python3.8/dist-packages/ehforwarderbot/main.py", line 135, in init coordinator.add_channel(cls(instance_id=instance_id)) File "/usr/local/lib/python3.8/dist-packages/efb_qq_slave/init.py", line 44, in init self.init_client_manager() File "/usr/local/lib/python3.8/dist-packages/efb_qq_slave/init.py", line 73, in init_client_manager self.QQClientMgr = ClientMgr(self.config['Client'], self.config, self) KeyError: 'Client'

这是版本号: guys@guys-virtual-machine:~/.ehforwarderbot/profiles/default/milkice.qq$ ehforwarderbot -V EH Forwarder Bot 版本: 2.1.1 Python 版本: 3.8.10 (default, Sep 28 2021, 16:10:42) [GCC 9.3.0] 正在使用配置文件「default」。

主端: Telegram Master (blueset.telegram) 2.2.4 # 默认实例

从端: QQ Slave (milkice.qq) 2.0.1-dev # default

中间件: 尚未启用任何中间件。