Status: New
Owner: liuj...@google.com
Labels: Type-Defect Priority-Medium

New issue 438 by pmiddel...@gmail.com: missing enum_type_wrapper from python setup
http://code.google.com/p/protobuf/issues/detail?id=438

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?
import addressbook_pb2.py
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "addressbook_pb2.py", line 6, in <module>
    from google.protobuf import reflection as _reflection
File "/usr/lib/python2.6/site-packages/protobuf-2.5.0rc1-py2.6.egg/google/protobuf/reflection.py", line 68, in <module>
    from google.protobuf.internal import python_message
File "/usr/lib/python2.6/site-packages/protobuf-2.5.0rc1-py2.6.egg/google/protobuf/internal/python_message.py", line 65, in <module>
    from google.protobuf.internal import enum_type_wrapper
ImportError: cannot import name enum_type_wrapper


expect: prompt.


What version of the product are you using? On what operating system?
2.5.0.rc1

Please provide any additional information below.
easily fixed by adding 'google.protobuf.internal.enum_type_wrapper', to python/setup.py around line 168.

--- python/setup.py.old 2012-12-07 08:46:26.081427508 +0100
+++ python/setup.py     2012-12-07 08:27:30.086589917 +0100
@@ -165,6 +165,7 @@
           'google.protobuf.internal.cpp_message',
           'google.protobuf.internal.decoder',
           'google.protobuf.internal.encoder',
+          'google.protobuf.internal.enum_type_wrapper',
           'google.protobuf.internal.message_listener',
           'google.protobuf.internal.python_message',
           'google.protobuf.internal.type_checkers',


--
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to