So I install protobuf on my MAC(10.11.6) and I use it to read a proto 
file(.proto), I use this function, ParseFromString(), but I always got 
error, this time, i followed your suggestion to install protobuf from 
source, not pip or brew, so I got another error:

> *  File 
>> "/Users/junhao.wen/anaconda2/lib/python2.7/site-packages/protobuf-3.1.0-py2.7.egg/google/protobuf/internal/",
>> line 820, in _RaiseInvalidWireType*
> *    raise _DecodeError('Tag had invalid wire type.')*
> *google.protobuf.message.DecodeError: Tag had invalid wire type.*
Here is my code

  f = open(sys.argv[1], "rb")

 I dont really understand where is the problem, I can import 
google.protobuf and the verison of protoc is 3.1.0

I rarely got answer from this group or the github, this is really 

Thanks in advance

You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
To post to this group, send email to
Visit this group at
For more options, visit

Reply via email to