2.0.3 is pretty old, and I think it had an endianness issue in Python.  Use
2.3.0 instead.

On Sun, Feb 28, 2010 at 5:33 PM, metapieman <s.d.c.w...@googlemail.com>wrote:

> Hi,
>
> I'm having a problem reading messages produced in Java using Python.
> I'm using version 2.0.3 on a PowerPC Mac (OS X 10.4.11). I wrote a
> Java program that saves a series of messages to a file. Also using
> Java, I've succeeded in reading the messages back in from the file
> with the parseFrom() method. The problem arises when I try to read
> them in using Python. When I do this, using the ParseFromString()
> method, I get partially correct messages, but all the double fields
> are completely wrong, e.g., instead of the number 1.25 I get
> 3.08924426375e-319. Apart from the double fields, the messages are
> read in correctly.
>
> I'd be very grateful for any ideas about what could be going wrong
> here. Thanks!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To post to this group, send email to proto...@googlegroups.com.
> To unsubscribe from this group, send email to
> protobuf+unsubscr...@googlegroups.com<protobuf%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/protobuf?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to proto...@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to