HEX
Server: Apache/2.4.41 (FreeBSD) OpenSSL/1.0.2s mod_fcgid/2.3.9
System: FreeBSD salazo 12.0-RELEASE-p1303-ZFS hostBSD 12.0-RELEASE-p1303-ZFS DMR amd64
User: admin (1000)
PHP: 7.4.3
Disabled: NONE
Upload Files
File: /usr/ports/misc/veles/files/patch-python_veles_proto_msgpackwrap.py
- workaround for the incompatibility with newer python's msgpack package:
- TypeError: __init__() got an unexpected keyword argument 'encoding'

--- python/veles/proto/msgpackwrap.py.orig	2021-04-01 00:13:20 UTC
+++ python/veles/proto/msgpackwrap.py
@@ -33,7 +33,7 @@ class MsgpackWrapper(pep487.NewObject):
         self.packer = msgpack.Packer(
             use_bin_type=True, default=MsgpackWrapper.pack_obj)
         self.unpacker = msgpack.Unpacker(
-            encoding='utf-8', ext_hook=MsgpackWrapper.load_obj, max_buffer_size=sys.maxsize)
+            ext_hook=MsgpackWrapper.load_obj, max_buffer_size=sys.maxsize)
 
     @classmethod
     def pack_obj(cls, obj):