Skip to main content

All 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"; ...
HENSEL WILSON GOVEAS's user avatar
0 votes
0 answers
122 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 ...
macchina001's user avatar
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 ...
Piotr BG's user avatar
  • 403
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 ...
Code_Jamer's user avatar
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 ...
Yuv Joodhisty's user avatar
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 ...
Ertai87's user avatar
  • 1,346
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 ...
ViggoTW's user avatar
  • 766