I'm kind of at a loss–
a month ago, I built some protobuf messages in python. Everything worked 
just fine. A few weeks later (now), I got back to my messages and wanted to 
use them. Suddenly, it throws the following error:

received:Traceback (most recent call last):
line 53, in parse
  File "/Library/Python/2.7/site-packages/google/protobuf/message.py", line 
182, in ParseFromString
line 793, in MergeFromString
    length = len(serialized)
AttributeError: Packet instance has no attribute '__len__'

packetMessage seems to be a proper message still, but the deserialization 
suddenly started to fail. This happens with both delimited and undelimited 
messages, built in python.
I may have re-compiled my .proto file because I wanted to add a feature 
(which I didn't end up adding) and I may have updated the software I've 
installed via MacPorts.
I tried recovering earlier versions from my git repository, but even that 
doesn't seem to help.
Does my story sound familiar to any of you?


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 http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to