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
"--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
>
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
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
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
+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
>
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