Skip to content

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant