Python google.protobuf.message.DecodeError: Error parsing message

2,725 views
Skip to first unread message

Junhao Wen

unread,
Oct 24, 2016, 4:56:07 PM10/24/16
to Protocol Buffers
When I use the protobuf(3.1.0) on my mac to read the .proto file, I alwats got the error: 
 
 google.protobuf.message.DecodeError: Error parsing message


Here is my code:
f = open('/Users/junhao.wen/Hao/tutorial/Protocol_buffers_tutorial/tutorial/Protocol_buffers_basic_python/address_book/test.proto', 'rb')
address_book.ParseFromString(f.read())

Can you give me a help??
what does that mean?????


Reply all
Reply to author
Forward
0 new messages