I have this weird problem when generating python files from .proto
files using protoc. I am running protoc on addressbook.proto
and in the addressbook_pb2.py I have this string

DESCRIPTOR = descriptor.FileDescriptor(
  name='addressbook.proto',
  package='tutorial',
  serialized_pb='\n\x11\x61\x64\x64ressbook.proto\x12\x08tutorial\"\xda
\x01\n\x06Person\x12\x0c\n\x04name\x18\x01 \x02(\t\x12\n\n\x02id
\x18\x02 \x02(\x05\x12\r\n\x05\x65mail\x18\x03 \x03(\t\x12+\n\x05phone
\x18\x04 \x03(\x0b\x32\x1c.tutorial.Person.PhoneNumber\x1aM\n
\x0bPhoneNumber\x12\x0e\.........'

before the _PERSON_PHONETYPE = descriptor.EnumDescriptor definitions

Due to this I am unable to use any of the generated python classes in
other scripts. I installed protobuf-2.2.0 on same machine and it does
not output that string so I am able to use the genereated files
without any issues. Version of python being used is 2.6.4.

-- 
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