On Tue, Aug 26, 2014 at 11:03 AM, Dave Hirschfeld <[email protected]> wrote:

> Hi,
> 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>
>   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'>
> >>>
>
>
> 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
>
>
> https://code.google.com/p/protobuf/source/browse/trunk/src/google/protobuf/compiler/command_line_interface.cc#1562
>
This needs to be fixed. Could you help file an issue?


>
>
>
> Regards,
> 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.
>

-- 
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.

Reply via email to