All Questions
7 questions
0
votes
1
answer
149
views
Incorrect Protobuf classes are getting generated
I am trying out my first Protobuf sample code from the Protobuf documentation for Python.
https://protobuf.dev/getting-started/pythontutorial/
This is my .proto file.
syntax = "proto2";
...
0
votes
0
answers
121
views
Protobuf message from CPP to python
I have define my protobuf message that is serialize in CPP and send to Python program thank to a wrapper. On CPP side, the protobuf message is generate as std::string
Here is how I generate in cpp my ...
5
votes
2
answers
2k
views
Python class generated by protoc cannot be imported in the code because of unresolved references (Mac OS)
I tried to use protocol buffers on my project and the problem I have is that when I use protoc to generate the python class. The file that's generated looks nothing like in the example provided by ...
2
votes
1
answer
4k
views
Protocol Buffer ParseFromString function not reading complete binary file in Python
I am testing out Protocol buffers and trying to read a csv file, serialize it and write the output to a binary file and then read the binary file using ParseFromString. I am able to serialize and ...
2
votes
3
answers
4k
views
Using python compiled protobuf pb2 as key and value serializer
I am trying to read data from a kafka topiv which has been serialized using google's protobuf.
I compiled the proto files using protoc which generated pb2 files.
Now i am trying to use faust and ...
0
votes
1
answer
595
views
Apache Flink Stateful Function - Serialization problem?
I'm trying to build a project using an Apache Flink Stateful Function in Python, but I can't seem to get it to work. What I've narrowed the issue down to is that it seems when I send the request to ...
24
votes
2
answers
12k
views
Relative imports with ProtoBuf: Generating Python classes with ProtoBuf gives ModuleNotFoundError
Does protobuf support relative imports for python?
I have been unsuccessful in creating a protobuf build script that supports this. When generating python-classes from my .proto-files, I am only able ...