[protobuf] Why do I see “cannot import name descri ptor_pb2” error?

2009-12-01 Thread Nick Bolton
Hi all, I'm having some trouble using our generated Python class... I posted my question on SO: http://stackoverflow.com/questions/1828379/why-do-i-see-cannot-import-name-descriptorpb2-error-when-using-google-protocol Nick -- You received this message because you are subscribed to the Google G

Re: [protobuf] Re: Reading Multiple Protobufs from a File

2009-12-13 Thread Nick Bolton
Hi Mark, > Comments welcome. > Mark > > > class ProtocolBufferFileReader: >        def __init__(self, input_filename, message_constructor): >                self.file = open(input_filename, 'rb') >                self.message_constructor = message_constructor It may also be useful to modify this