Hi ,

I am facing the same problem ParseFromString returning None ,how to solve 
this

BR

Nagesh

On Thursday, September 26, 2013 at 5:58:41 AM UTC-6, Li Qian wrote:
>
> I posted an answer here:
>
> http://lqian.net/b/why-does-google-protobufs-api-parsefromstring-always-return-none/
>
> In short, you were using the API in a wrong way.
>
> 在 2011年5月21日星期六UTC+8下午4时22分27秒,jsia写道:
>>
>> Hi, 
>>
>> I created a proto file and did something like this 
>>
>> data = test_pb2.Payload() 
>> data.id = 1234 
>>
>> output = data.SerializeToString() 
>>
>> print data.ParseFromString(output) 
>>
>> The output is always None 
>>
>> I tried deserializing it in java and it worked  , is this a bug?
>
>

-- 
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/d/optout.

Reply via email to