Hi,
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):
File
"/Users/lotte/dev/Studium/maniacWorkspace/maniacBackbone/maniacBackbone/packetBuilder.py",
line 53, in parse
self.packetMessage.ParseFromString(payload)
File "/Library/Python/2.7/site-packages/google/protobuf/message.py", line
182, in ParseFromString
self.MergeFromString(serialized)
File
"/Library/Python/2.7/site-packages/google/protobuf/internal/python_message.py",
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?
Best,
Lotte
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/groups/opt_out.