Is the below a bug? Python 2.7.5 |Anaconda 2.0.0 (64-bit)| (default, Jul 1 2013, 12:37:52) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> >>> from google.protobuf.internal import cpp_message Traceback (most recent call last): File "<stdin>", line 1, in <module> File "build\bdist.win-amd64\egg\google\protobuf\internal\cpp_message.py", line 39, in <module> ImportError: cannot import name _net_proto2___python >>> >>> import os >>> os.environ['PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION'] 'cpp' >>> os.environ['PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION_VERSION'] '2' >>> >>> import google.protobuf as pb >>> pb <module 'google.protobuf' from 'C:\dev\bin\Anaconda\lib\site-packages\protobuf-2.6.0-py2.7-win-amd64.egg\google\protobuf\__init__.pyc'> >>>
It seems _net_proto2___python has been left over from a previous implementation? Note: To get it to compile with VS2008 which is required for Python2 I had to change the iterator below to a const_iterator https://code.google.com/p/protobuf/source/browse/trunk/src/google/protobuf/compiler/command_line_interface.cc#1562 Let me know if there's any other information you need to help debug the problem. Thanks, Dave -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/protobuf. For more options, visit https://groups.google.com/d/optout.
