Skip to content
New issue

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

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
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.

None yet

1 participant