Traceback (most recent call last):
File "main.py", line 744, in
MainLoop(level=level)
File "main.py", line 724, in MainLoop
aiWrapper.recvFromMajsoul()
File "main.py", line 124, in recvFromMajsoul
result = self.liqiProto.parse(flow_msg)
File "D:\maj\MajsoulAI-master\majsoul_wrapper\liqi.py", line 66, in parse
action_proto_obj = getattr(pb, dict_obj['name']).FromString(B)
File "C:\python\lib\site-packages\google\protobuf\internal\python_message.py", line 812, in FromString
message.MergeFromString(s)
File "C:\python\lib\site-packages\google\protobuf\internal\python_message.py", line 1145, in MergeFromString
if self._InternalParse(serialized, 0, length) != length:
File "C:\python\lib\site-packages\google\protobuf\internal\python_message.py", line 1198, in InternalParse
(data, new_pos) = decoder._DecodeUnknownField(
File "C:\python\lib\site-packages\google\protobuf\internal\decoder.py", line 993, in _DecodeUnknownField
raise _DecodeError('Wrong wire type in tag.')
google.protobuf.message.DecodeError: Wrong wire type in tag.
能启动, 进入放见后, 就报这个错误, 我怀疑是protobuf版本问题, 我用3.10.0编译出来配合protobuf==3.10.0 , 与3.14.0编译出来配合protobuf==3.14.0报同样的错误,不知道是不是 pbjs的问题,我用的是[protobufjs提供的最新的pbjs,之前用旧版本的也是报同样的错误, 可以传一份新的liqi.proto与liqi_pb2 试试吗,谢谢
用python 配合protobuf==3.10.0 ,用3.10.0编译后,报错
Traceback (most recent call last):
File "main.py", line 744, in
MainLoop(level=level)
File "main.py", line 724, in MainLoop
aiWrapper.recvFromMajsoul()
File "main.py", line 124, in recvFromMajsoul
result = self.liqiProto.parse(flow_msg)
File "D:\maj\MajsoulAI-master\majsoul_wrapper\liqi.py", line 66, in parse
action_proto_obj = getattr(pb, dict_obj['name']).FromString(B)
google.protobuf.message.DecodeError: Error parsing message
Traceback (most recent call last): File "main.py", line 744, in
MainLoop(level=level)
File "main.py", line 724, in MainLoop
aiWrapper.recvFromMajsoul()
File "main.py", line 124, in recvFromMajsoul
result = self.liqiProto.parse(flow_msg)
File "D:\maj\MajsoulAI-master\majsoul_wrapper\liqi.py", line 66, in parse
action_proto_obj = getattr(pb, dict_obj['name']).FromString(B)
File "C:\python\lib\site-packages\google\protobuf\internal\python_message.py", line 812, in FromString
message.MergeFromString(s)
File "C:\python\lib\site-packages\google\protobuf\internal\python_message.py", line 1145, in MergeFromString
if self._InternalParse(serialized, 0, length) != length:
File "C:\python\lib\site-packages\google\protobuf\internal\python_message.py", line 1198, in InternalParse
(data, new_pos) = decoder._DecodeUnknownField(
File "C:\python\lib\site-packages\google\protobuf\internal\decoder.py", line 993, in _DecodeUnknownField
raise _DecodeError('Wrong wire type in tag.')
google.protobuf.message.DecodeError: Wrong wire type in tag.
能启动, 进入放见后, 就报这个错误, 我怀疑是protobuf版本问题, 我用3.10.0编译出来配合protobuf==3.10.0 , 与3.14.0编译出来配合protobuf==3.14.0报同样的错误,不知道是不是 pbjs的问题,我用的是[protobufjs提供的最新的pbjs,之前用旧版本的也是报同样的错误, 可以传一份新的liqi.proto与liqi_pb2 试试吗,谢谢