On Tue, Aug 26, 2014 at 11:03 AM, Dave Hirschfeld <novi...@gmail.com> wrote:
> I get the aforementioned error message when trying to use the cpp backend
> for python with the new version 2.6.0:
> 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>
> "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']
> >>> os.environ['PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION_VERSION']
> >>> import google.protobuf as pb
> >>> pb
> <module 'google.protobuf' from
> Is this a bug? It seems _net_proto2___python may be a leftover from a
> previous version?
Why do you import "cpp_message"? I think it's a leftover from the previous
version and we forgot to remove it...
> Also, to compile with VS2008 (required for Python 2.7) I had to change the
> iterator below to a const_iterator
This needs to be fixed. Could you help file an issue?
> 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 email@example.com.
> Visit this group at http://groups.google.com/group/protobuf.
> For more options, visit https://groups.google.com/d/optout.
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 post to this group, send email to firstname.lastname@example.org.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.