yngzMiao / protobuf-parser-tool

Create/parse proto binary files
MIT License
31 stars 13 forks source link

运行python example 会报错 #1

Open chen-98 opened 2 years ago

chen-98 commented 2 years ago

Traceback (most recent call last): File "D:\Files\tool_dev\toolDev\data_format\protobuf-parser-tool-master\protobuf-parser-tool-master\python\example_person.py", line 44, in reader = PersonRead.GeneralProtoReader(protofile, GeneralProto.Person) File "D:\Files\tool_dev\toolDev\data_format\protobuf-parser-tool-master\protobuf-parser-tool-master\python\proto_buf\General_buf_read.py", line 21, in init self.version = self.parseBindata(self.protofile.read(4)) File "D:\Files\tool_dev\toolDev\data_format\protobuf-parser-tool-master\protobuf-parser-tool-master\python\proto_buf\General_buf_read.py", line 87, in parseBindata binval = [int(struct.unpack('b', temp_len[0])[0]), TypeError: a bytes-like object is required, not 'int'

Process finished with exit code 1

yngzMiao commented 2 years ago

您的邮件已经收到,我会尽快查看处理的,谢谢! This is an automatic reply, confirming that your e-mail was received. Thank you!                                                   

aawuliliaa commented 1 year ago

python2,不能用python3,我测通了

yngzMiao commented 1 year ago

您的邮件已经收到,我会尽快查看处理的,谢谢! This is an automatic reply, confirming that your e-mail was received. Thank you!