Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
protobuf-2.3.0 : Problem generating python files with protoc
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
dear chap  
View profile  
 More options Apr 7 2010, 2:27 pm
From: dear chap <dear.c...@gmail.com>
Date: Wed, 7 Apr 2010 11:27:52 -0700 (PDT)
Local: Wed, Apr 7 2010 2:27 pm
Subject: protobuf-2.3.0 : Problem generating python files with protoc
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 must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jason Hsueh  
View profile  
 More options Apr 7 2010, 3:01 pm
From: Jason Hsueh <jas...@google.com>
Date: Wed, 7 Apr 2010 12:01:53 -0700
Local: Wed, Apr 7 2010 3:01 pm
Subject: Re: [protobuf] protobuf-2.3.0 : Problem generating python files with protoc

What error do you get when trying to use the generated class? With python
2.5.2 I was able to execute the sample add_person.py program.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
dear chap  
View profile  
 More options Apr 8 2010, 4:22 pm
From: dear chap <dear.c...@gmail.com>
Date: Thu, 8 Apr 2010 13:22:13 -0700 (PDT)
Local: Thurs, Apr 8 2010 4:22 pm
Subject: Re: protobuf-2.3.0 : Problem generating python files with protoc
  File "/home/bingo/protobuf-2.3.0/examples/addressbook_pb2.py", line
10, in <module>
    DESCRIPTOR = descriptor.FileDescriptor(
AttributeError: 'module' object has no attribute 'FileDescriptor'

On Apr 7, 3:01 pm, Jason Hsueh <jas...@google.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kenton Varda  
View profile  
 More options Apr 8 2010, 5:21 pm
From: Kenton Varda <ken...@google.com>
Date: Thu, 8 Apr 2010 14:21:43 -0700
Local: Thurs, Apr 8 2010 5:21 pm
Subject: Re: [protobuf] Re: protobuf-2.3.0 : Problem generating python files with protoc

It sounds like you installed the new version of protoc but forgot to install
the new version of the python protobuf package.  You have to actually follow
the installation instructions in python/README.txt.

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

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
dear chap  
View profile  
 More options Apr 9 2010, 8:43 am
From: dear chap <dear.c...@gmail.com>
Date: Fri, 9 Apr 2010 05:43:22 -0700 (PDT)
Local: Fri, Apr 9 2010 8:43 am
Subject: Re: protobuf-2.3.0 : Problem generating python files with protoc
Looks like that. Works fine now. Thanks Kenton

On Apr 8, 5:21 pm, Kenton Varda <ken...@google.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »