Re: [protobuf] Trying to use C++ implementation of python but api_implementation.Type() still returns 'python' instead of 'cpp'

2016-08-02 Thread Oi Lee
Thanks. That worked. However, when I run my testfile.py I get the following error: [localhost git]$ python testfile.py Traceback (most recent call last): File "testfile.py", line 4, in import test File "[...]/Documents/git/test.py", line 4, in import proto.DSMessagesv3_pb2 as msg

Re: [protobuf] Trying to use C++ implementation of python but api_implementation.Type() still returns 'python' instead of 'cpp'

2016-08-01 Thread Paul Johnston
"--cpp_implementaion" misspelled, should be "--cpp_implementation" On Monday, August 1, 2016 at 1:28:29 PM UTC-6, Oi Lee wrote: > > When I do > [localhost python]$ sudo python setup.py build --cpp_implementaion > > Installed [...]/protobuf-2.6.1/python/.eggs/google_apputils-0.4.2-py2.7.egg >

Re: [protobuf] Trying to use C++ implementation of python but api_implementation.Type() still returns 'python' instead of 'cpp'

2016-08-01 Thread Oi Lee
When I do [localhost python]$ sudo python setup.py build --cpp_implementaion Installed [...]/protobuf-2.6.1/python/.eggs/google_apputils-0.4.2-py2.7.egg Searching for python-gflags>=1.4 Reading https://pypi.python.org/simple/python-gflags/ Best match: python-gflags 3.0.5 Downloading

Re: [protobuf] Trying to use C++ implementation of python but api_implementation.Type() still returns 'python' instead of 'cpp'

2016-07-29 Thread Oi Lee
My .py file that checks for implementation is in a completely different folder. I'll try re-installing again. On Friday, July 29, 2016 at 3:25:10 PM UTC-6, Jie Luo wrote: > > I tried and it returns 'cpp' as expected. > > First, make sure you use the correct commands: > python setup.py build

Re: [protobuf] Trying to use C++ implementation of python but api_implementation.Type() still returns 'python' instead of 'cpp'

2016-07-29 Thread 'Jie Luo' via Protocol Buffers
I tried and it returns 'cpp' as expected. First, make sure you use the correct commands: python setup.py build --cpp_implementaion python setup.py install --cpp_implementaion Second, Where do you put your .py file to check api_implementation.Type()? Make sure your file does not under

Re: [protobuf] Trying to use C++ implementation of python but api_implementation.Type() still returns 'python' instead of 'cpp'

2016-07-29 Thread 'Feng Xiao' via Protocol Buffers
+Jie On Fri, Jul 29, 2016 at 10:10 AM, Oi Lee wrote: > I initially used a pure python implementation of protocol buffers, but I > changed it later to use the c++ library implementation. So I installed > protobuf using these github instructions >

[protobuf] Trying to use C++ implementation of python but api_implementation.Type() still returns 'python' instead of 'cpp'

2016-07-29 Thread Oi Lee
I initially used a pure python implementation of protocol buffers, but I changed it later to use the c++ library implementation. So I installed protobuf using these github instructions