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

Replace deprecated msgpack-python with msgpack + python3 compatibility #23

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

Conversation

tbelhalfaoui
Copy link

@tbelhalfaoui tbelhalfaoui commented May 13, 2020

Hi @repeatedly!

I really like this lib, and I have found no equivalent of it: it is both very easy to use and very fast (the fastest Python lib I know of).
Sadly, there is one point that make it unusable for us: it depends on msgpack-python, which is deprecated, and incompatible with the new msgpack (which we use in the same code).

So I tried #22 (only replacing the package name in requirements), but it does not work, because the encoding parameter has been removed from Packer and Unpacker in msgpack==1.0.0 (since it now uses UTF-8 by default).

Hence this pull request, which ensures compatibility with msgpack 1.0.0 (tested only with python 3.6). I simply removed everything related to encodings.

Thanks!

* Ensure Python 3 compatibility
* Remove all encoding options (not needed with msgpack in Python 3)
@wangwwno1
Copy link

@repeatedly Hello, could you review this PR and merge it?

@stevenjackson121
Copy link

This project hasn't been updated in years; @tbelhalfaoui would you be able to publish your version as a new pypi module? The very old dependencies are an issue for me as well.

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.

3 participants