I'm looking to upgrade to the new protobuf version 4.21.0. I am sharing messages between python and c++, on the release page they mention that this capability breaks, unless I set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp
, and ensure that the Python/C++ extension is installed.
How do I ensure that the Python/C++ extension is installed? Where do I find it? What is meant by this Python/C++ extension?
Also does the env var need to be set when generating *_pb2.py out of *.proto files or also when running python/c++ programs which are using protobuf?
Asked
Active
Viewed 124 times
3

Hakaishin
- 2,550
- 3
- 27
- 45
-
Very good question. I have the same problem. I can send data from C++ to Python, but it crashes on deserialization on the way back.. I'm thinking it could be due to this extension.. but there is no link to it or other information – Avrdan Feb 15 '23 at 08:17
-
Nevermind, my problem was not related to the extension. – Avrdan Feb 17 '23 at 10:29