We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
环境: 宿主机:ubuntu 20.04 Docker Debian10 (buster) python 3.8.7
原 requirements.txt 如下 ,其中 msgpack_python 最后更新日期为 2018年3月,对python3支持可能不是很好?在按照readme.md部署加载moduel时,所有jjc查询功能失效。报错如下面error.log部分。
谷歌后找到了一个issue,提示与 msgpack 有关,检查后在源码requirement.txt里找到相关设置。 我这边尝试了两个步骤,升级msgpack到1.0.4未能解决问题。卸载msgpack_python后,功能恢复正常,也没有错误日志了
msgpack_python==0.5.6 msgpack==1.0.2 nonebot==1.8.4 Pillow==9.0.1 pycryptodome==3.14.1 python_dateutil==2.8.2 requests==2.27.1 zhconv==1.4.3
error log如下:
[2022-06-13 00:16:31,827 竞技场推送] ERROR: <class 'TypeError'> occured when wrapper handling message -20*********5. [2022-06-13 00:16:31,827 竞技场推送] ERROR: __init__() got an unexpected keyword argument 'strict_map_key' Traceback (most recent call last): File "/HoshinoBot/hoshino/msghandler.py", line 28, in handle_message await sf.func(bot, event) File "/HoshinoBot/hoshino/modules/pcrjjc2/safeservice.py", line 25, in wrapper return await func(*args, **kwargs) File "/HoshinoBot/hoshino/modules/pcrjjc2/__init__.py", line 195, in on_query_arena res = await query(id) File "/HoshinoBot/hoshino/modules/pcrjjc2/__init__.py", line 125, in query await client.login() File "/HoshinoBot/hoshino/modules/pcrjjc2/pcrclient.py", line 205, in login lres = await self.callapi('/tool/sdk_login', { File "/HoshinoBot/hoshino/modules/pcrjjc2/pcrclient.py", line 146, in callapi response = pcrclient.unpack(response)[0] if crypted else loads(response) File "/HoshinoBot/hoshino/modules/pcrjjc2/pcrclient.py", line 130, in unpack return unpackb(dec[:-dec[-1]], File "/usr/local/lib/python3.8/site-packages/msgpack/fallback.py", line 118, in unpackb unpacker = Unpacker(None, **kwargs) TypeError: __init__() got an unexpected keyword argument 'strict_map_key'
The text was updated successfully, but these errors were encountered:
类似的问题issue #65 #66 #71 #90 都有反应过,给出的建议都是保持msgpack==1.0.2不变,而且根据反馈某些野生包源的1.0.2版本缺少strict_map_key导致上述报错。
Sorry, something went wrong.
安装的时候用的清华源,以往经验来看一直很稳定。在python module 目录搜索strict_map_key也是有的。 问题很奇怪,尝试复现的话,卸载msgpack_python后会缺失另一个东西。目前的状态是卸载msgpack_python(可能是移除了部分同名文件夹下文件?)后升级到1.0.4,稳定运行
终于有时间了,我测试了一下,升级到1.0.4,并卸载msgpack_python运行正常,并未出现错误。感谢反馈,这里将依赖更新一下。
c12a9ed
No branches or pull requests
环境:
宿主机:ubuntu 20.04
Docker Debian10 (buster)
python 3.8.7
原 requirements.txt 如下 ,其中 msgpack_python 最后更新日期为 2018年3月,对python3支持可能不是很好?在按照readme.md部署加载moduel时,所有jjc查询功能失效。报错如下面error.log部分。
谷歌后找到了一个issue,提示与 msgpack 有关,检查后在源码requirement.txt里找到相关设置。 我这边尝试了两个步骤,升级msgpack到1.0.4未能解决问题。卸载msgpack_python后,功能恢复正常,也没有错误日志了
error log如下:
The text was updated successfully, but these errors were encountered: