get_model got an error
Description
from syft.proto.lib.python.list_pb2 import List as ListPB pb.ParseFromString(req.content) got an error
How to Reproduce
- run examples/federated-learning/model-centric/mcfl_create_plan.ipynb
- Download model step
- execute get_model()
Expected Behavior
A clear and concise description of what you expected to happen.
Screenshots

System Information
- OS Version: ubuntu18.04
- Language Version: python 3.9
- PySyft-0.5.0rc2
- PyGrid-0.5.0rc1
DecodeError Traceback (most recent call last)
DecodeError: Error parsing message
new problem
When I solved the last error there is another error
ValueError Traceback (most recent call last)
~/anaconda3/envs/syft_python3.9/lib/python3.9/site-packages/syft/core/common/serde/deserialize.py in _deserialize(blob, from_proto, from_bytes) 87 traceback_and_raise(deserialization_error) 88 ---> 89 res = _proto2object(proto=blob) 90 return res
~/anaconda3/envs/syft_python3.9/lib/python3.9/site-packages/syft/lib/python/list.py in _proto2object(proto) 156 @staticmethod 157 def proto2object(proto: List_PB) -> "List": --> 158 id: UID = deserialize(blob=proto.id) 159 value = [] 160 # list comprehension doesn't work since it results in a
~/anaconda3/envs/syft_python3.9/lib/python3.9/site-packages/syft/core/common/serde/deserialize.py in _deserialize(blob, from_proto, from_bytes) 87 traceback_and_raise(deserialization_error) 88 ---> 89 res = _proto2object(proto=blob) 90 return res
~/anaconda3/envs/syft_python3.9/lib/python3.9/site-packages/syft/core/common/uid.py in _proto2object(proto) 189 if you wish to deserialize an object. 190 """ --> 191 return UID(value=uuid.UUID(bytes=proto.value)) 192 193 @staticmethod
~/anaconda3/envs/syft_python3.9/lib/python3.9/uuid.py in init(self, hex, bytes, bytes_le, fields, int, version, is_safe) 184 if bytes is not None: 185 if len(bytes) != 16: --> 186 raise ValueError('bytes is not a 16-char string') 187 assert isinstance(bytes, bytes_), repr(bytes) 188 int = int_.from_bytes(bytes, byteorder='big')
ValueError: bytes is not a 16-char string
Hi, I've got the same problem. Did anybody manage to solve this ?
Hi, I am facing same error bytes is not a 16-char string in return deserialize(pb) line of get_model(...) function. Has anyone been able to solve it?
0.5 is no longer supported.