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 <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fgoogle%2Fprotobuf%2Fblob%2Fmaster%2Fsrc%2FREADME.md&sa=D&sntz=1&usg=AFQjCNG2r1BsKNbsZQp7Tx0dL3_pTM1fNg> and then I followed these instructions <https://github.com/google/protobuf/blob/master/python/README.md> to use the C++ implementation. But when I use api_implementation.Type() <https://cs.corp.google.com/piper///depot/google3/net/proto2/python/internal/api_implementation.py?is_navigation=1&q=package:%5E(piper)$+file:(%5E)//depot/google3/net/proto2/python/internal/api_implementation(%5C.(swig%7Cpy%7Cspt)$%7C/(__init__%5C.(swig%7Cpy%7Cspt))?$)&l=79>, it still returns 'python'. Why is it still using the python implementation?
On Thursday, July 21, 2016 at 5:13:07 PM UTC-6, Jie Luo wrote: > > Sorry, the link should be: > https://github.com/google/protobuf/blob/master/python/google/protobuf/internal/api_implementation.py > > <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fgoogle%2Fprotobuf%2Fblob%2Fmaster%2Fpython%2Fgoogle%2Fprotobuf%2Finternal%2Fapi_implementation.py&sa=D&sntz=1&usg=AFQjCNEQ8OhX-7K_zR7REL1HWrg9nsx_Mg> > > On Thu, Jul 21, 2016 at 3:51 PM, Jie Luo <[email protected] <javascript:>> > wrote: > >> Try api_implementation.Type() >> <https://cs.corp.google.com/piper///depot/google3/net/proto2/python/internal/api_implementation.py?is_navigation=1&q=package:%5E(piper)$+file:(%5E)//depot/google3/net/proto2/python/internal/api_implementation(%5C.(swig%7Cpy%7Cspt)$%7C/(__init__%5C.(swig%7Cpy%7Cspt))?$)&l=79> >> >> which returns 'python' or 'cpp'? >> >> On Thu, Jul 21, 2016 at 1:09 PM, Oi Lee <[email protected] <javascript:>> >> wrote: >> >>> 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 Google >>> Groups "Protocol Buffers" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected] <javascript:>. >>> To post to this group, send email to [email protected] >>> <javascript:>. >>> Visit this group at https://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 https://groups.google.com/group/protobuf. For more options, visit https://groups.google.com/d/optout.
