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/decoder.py",
>>  
>> line 820, in _RaiseInvalidWireType*
>
> *    raise _DecodeError('Tag had invalid wire type.')*
>
> *google.protobuf.message.DecodeError: Tag had invalid wire type.*
>
>
>
Here is my code

try:
  f = open(sys.argv[1], "rb")
  address_book.ParseFromString(f.read())
  f.close()


 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 
frustrated..

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 protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to