Re: [protobuf] Re: Uninstalling Proto3 and Installing Proto2

2016-06-17 Thread Oi Lee
ear-bashs-cache-of-paths-to-executables > > On Fri, Jun 17, 2016 at 11:59 AM Oi Lee <lee...@gmail.com > > wrote: > >> [oi.lee@localhost protobuf-2.6.1]$ protoc --version >> bash: /usr/local/bin/protoc: No such file or directory >> >> I tried reinstall via

[protobuf] Re: Uninstalling Proto3 and Installing Proto2

2016-06-17 Thread Oi Lee
[oi.lee@localhost protobuf-2.6.1]$ protoc --version bash: /usr/local/bin/protoc: No such file or directory I tried reinstall via the first link above but the above command still does not work. On Friday, June 17, 2016 at 12:36:01 PM UTC-6, Oi Lee wrote: > > Hello, so I am pret

[protobuf] How to tell which implementation I am using, pure python or python compiled using c++?

2016-07-21 Thread Oi Lee
I'm curious to find out how to tell which implementation of protobuffs I am using. I recently installed using the C++ library but I just want to make sure it is the one I am using. I'm currently on Protocol Buffers 2.6.1. Thanks! -- You received this message because you are subscribed to the

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
l 29, 2016 at 12:30 PM, Feng Xiao <xiao...@google.com > > wrote: > >> +Jie >> >> On Fri, Jul 29, 2016 at 10:10 AM, Oi Lee <lee...@gmail.com > >> wrote: >> >>> I initially used a pure python implementation of protocol buffers, but I >>>

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
uld 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_apput

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

2016-08-02 Thread Oi Lee
wing environment variables per README file in the python folder. $ export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp $ export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION_VERSION=2 On Friday, July 29, 2016 at 11:10:08 AM UTC-6, Oi Lee wrote: > > I initially used a pure python implementation of protoco

Re: [protobuf] Re: What are some protobufs security measures?

2016-07-13 Thread Oi Lee
BTW, I'm on CENTOS7, if that helps. On Wednesday, July 13, 2016 at 2:44:46 PM UTC-6, Oi Lee wrote: > > When I try to run that from protobuf/python, I get an error. > > distutils.errors.DistutilsError: Could not find suitable distribution for > Requirement.parse('

Re: [protobuf] Re: What are some protobufs security measures?

2016-07-13 Thread Oi Lee
When I try to run that from protobuf/python, I get an error. distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('google-apputils') On Wednesday, July 13, 2016 at 2:08:46 PM UTC-6, Feng Xiao wrote: > > > > On Wed, Jul 13, 2016 at 1:03 PM,

Re: [protobuf] Re: What are some protobufs security measures?

2016-07-13 Thread Oi Lee
If I used the make install from github instructions <https://github.com/google/protobuf/blob/master/src/README.md>, is that compiled using the C++ protobuf library? On Monday, July 11, 2016 at 5:55:19 PM UTC-6, Feng Xiao wrote: > > > > On Mon, Jul 11, 2016 at 3:39 PM, Oi Lee

Re: [protobuf] Re: What are some protobufs security measures?

2016-07-13 Thread Oi Lee
at 6:57:11 PM UTC-6, Feng Xiao wrote: > > Can you create a github issue for this? > > On Wed, Jul 13, 2016 at 1:55 PM, Oi Lee <lee...@gmail.com > > wrote: > >> BTW, I'm on CENTOS7, if that helps. >> >> On Wednesday, July 13, 2016 at 2:44:46 PM UTC-

Re: [protobuf] Re: What are some protobufs security measures?

2016-07-18 Thread Oi Lee
I did not add an issue to github because I follow the instructions in the readme.txt in the python folder. On Wednesday, July 13, 2016 at 7:13:42 PM UTC-6, Oi Lee wrote: > > Yes I can. :) > But just so you know, I did not clone the master from github, instead I > downloaded

[protobuf] Re: Error when I run: python setup.py test --cpp_implementation

2016-07-19 Thread Oi Lee
Solution: pip install pytz --upgrade On Tuesday, July 19, 2016 at 9:24:32 AM UTC-6, Oi Lee wrote: > > Had to install python setuptools. But I now have a version conflict. > > pkg_resources.VersionConflict: (pytz 2012d (/usr/lib/python2.7/site- > packages), Requirement.pa

[protobuf] Re: What are some protobufs security measures?

2016-07-11 Thread Oi Lee
he parsing code is pure-Python in > this case, it shouldn't generally be possible to SEGV the program just by > sending unexpected input. > > On Friday, July 8, 2016 at 9:34:23 AM UTC-7, Oi Lee wrote: >> >> Hello, >> I saw this post Are protocol buffers hardened? >> <

[protobuf] Re: What are some protobufs security measures?

2016-07-11 Thread Oi Lee
s are enforced (for example, maximum size or > maximum message depth). However, since the parsing code is pure-Python in > this case, it shouldn't generally be possible to SEGV the program just by > sending unexpected input. > > On Friday, July 8, 2016 at 9:34:23 AM UTC-7, Oi

[protobuf] What are some protobufs security measures?

2016-07-08 Thread Oi Lee
Hello, I saw this post Are protocol buffers hardened? , but I noticed the response only mentioned safeguards for C++ and Java. May we assume that these safeguards are in place for other languages

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
e does not under protobuf/python (DO NOT in the same > directory as setup.py) > > On Fri, Jul 29, 2016 at 12:30 PM, Feng Xiao <xiao...@google.com > > wrote: > >> +Jie >> >> On Fri, Jul 29, 2016 at 10:10 AM, Oi Lee <lee...@gmail.com > >> wrote: >&

[protobuf] Does Protobuf v2.6.1 have a protobuf to json library?

2016-07-21 Thread Oi Lee
I know C++ does for proto3 but I was wondering about proto2. Do I need to use 3rd party software? -- 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] 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