cc004 / pcrjjc2

本插件是pcrjjc插件的重置版,可以独立于后端api运行
GNU Affero General Public License v3.0
156 stars 51 forks source link

有没有大佬知道这是什么问题 #71

Closed Ratten-fanger closed 2 years ago

Ratten-fanger commented 2 years ago

[2022-03-01 15:29:03,448 竞技场推送] ERROR: <class 'TypeError'> occured when wrapper handling message -527960032. [2022-03-01 15:29:03,448 竞技场推送] ERROR: init() got an unexpected keyword argument 'strict_map_key' Traceback (most recent call last): File "C:\Users\Administrator\Desktop\coolQ\HoshinoBot\hoshino\msghandler.py", line 28, in handle_message await service_func.func(bot, event) File "C:\Users\Administrator\Desktop\coolQ\HoshinoBot\hoshino\modules\pcrjjc2\safeservice.py", line 25, in wrapper return await func(*args, kwargs) File "C:\Users\Administrator\Desktop\coolQ\HoshinoBot\hoshino\modules\pcrjjc2__init.py", line 172, in on_query_arena res = await query(id) File "C:\Users\Administrator\Desktop\coolQ\HoshinoBot\hoshino\modules\pcrjjc2\init__.py", line 105, in query await client.login() File "C:\Users\Administrator\Desktop\coolQ\HoshinoBot\hoshino\modules\pcrjjc2\pcrclient.py", line 192, in login lres = await self.callapi('/tool/sdk_login', { File "C:\Users\Administrator\Desktop\coolQ\HoshinoBot\hoshino\modules\pcrjjc2\pcrclient.py", line 140, in callapi response = pcrclient.unpack(response)[0] if crypted else loads(response) File "C:\Users\Administrator\Desktop\coolQ\HoshinoBot\hoshino\modules\pcrjjc2\pcrclient.py", line 124, in unpack return unpackb(dec[:-dec[-1]], File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38-32\lib\site-packages\msgpack\fallback.py", line 118, in unpackb unpacker = Unpacker(None, kwargs) TypeError: init() got an unexpected keyword argument 'strict_map_key'

CYDXDianXian commented 2 years ago

依赖问题,需要将msgpack回滚到1.0.2版本,按如下方法操作:

pip uninstall msgpack

pip install msgpack==1.0.2