Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

ValueError: int is not allowed for map key when using msgpack 1.0.0 #233

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

naviot
Copy link

@naviot naviot commented Dec 9, 2020

Bug:
"ValueError: int is not allowed for map key" will be raised when using msgpack 1.0.0 for some messages

Explanation:
This is to the fact that they changed their default setting for msgpack.unpackb see: msgpack/msgpack-python#411 which they also discuss as major braking points in https://github.com/msgpack/msgpack-python#major-breaking-changes-in-msgpack-10

Solution:
adding strict_map_key=False as argument whenever msgpack.unpackb or msgpack.loads is called

so mainly solution I take from pupil-labs/pupil#1830

Base automatically changed from master to main March 3, 2021 18:21
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant