Thanks, that fixed the problem. On Sun, Feb 28, 2010 at 11:44:53PM -0800, Kenton Varda wrote: > 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 <[email protected]>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 [email protected]. > > To unsubscribe from this group, send email to > > [email protected]<protobuf%[email protected]> > > . > > 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.
