I'm seeing the same issue.  It's self referential.  Any idea of the 
solution?

On Wednesday, January 30, 2013 2:47:24 PM UTC-5, Roger Michoud wrote:
>
> Hi Kenton,
>
> I did the c++ install, it is clean and it works.
>
> I follow the README in python folder for installing python. When I run 
> python setup.py test I got this following output:
>     file google/protobuf/descriptor_pb2.py (for module 
> google.protobuf.descriptor_pb2) not found
>     error: package directory 'google/protobuf/compiler' does not exist
>
> That leads me to no choice than generating the descriptor_pb2.py manually 
> with protoc and python compiler.
>
> When I try to import I have the same problem than Nick. Descriptor_pb2.py 
> import itself, and it generates this error :
>     file 
> "path/protobuf-2.5.0rc1/python/google/protobuf/descriptor_pb2.py", line 7, 
> in <module>
>     from google.protobuf import descriptor_pb2
> ImportError: cannot import name descriptor_pb2
>
> CentOS 6.3 32 bit
>
>
>
>
> On Tuesday, December 1, 2009 1:37:44 PM UTC-8, Kenton Varda wrote:
>>
>> As I posed there, you have to actually install the protobuf library as 
>> directed in the readme.  Part of the installation process is building 
>> descriptor_pb2.py.
>>
>> On Tue, Dec 1, 2009 at 11:39 AM, Nick Bolton <nick.bolton.uk@
>> googlemail.com> wrote:
>>
>>> 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 
>>> Groups "Protocol Buffers" group.
>>> To post to this group, send email to prot...@googlegroups.com.
>>> To unsubscribe from this group, send email to 
>>> protobuf+u...@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 unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to