Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
36 views

I am unable to use the print(tf.version.VERSION) to check the tensorflow version. Reason being tensorflow looks for runtime_version in protobuf (from what I have learnt) and that is only supported in ...
sunny's user avatar
  • 683
1 vote
0 answers
51 views

I have a project set up like this with protos/ as a top level directory and the project that actually builds it under services/common-py. ├── protos │   ├── common.proto │   ├── doodad.proto └── ...
Paul C's user avatar
  • 8,429
0 votes
0 answers
89 views

We are trying to consume Protobuf-encoded messages from a Kafka topic using PyFlink. However, we are encountering message parsing errors when attempting to decode the messages later in our pipeline. ...
NOUFAL RIJAL's user avatar
2 votes
2 answers
2k views

I'm running a Python application on Ubuntu 22 with Python 3.13.0. Since upgrading Python from 3.12, I get this error when running the application: TypeError: Couldn't build proto file into descriptor ...
Bktrout47's user avatar
1 vote
1 answer
208 views

I was looking at a code base (GCP SDK's monitoring API) trying to drill down to get familiar with some methods, but I hit a wall here: https://cloud.google.com/monitoring/custom-metrics/creating-...
red888's user avatar
  • 32.3k
0 votes
1 answer
162 views

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
141 views

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
1 vote
0 answers
590 views

I created a Poetry environment with following toml file: [tool.poetry] ... [tool.poetry.dependencies] python = "^3.10" mlrun = "1.4.1" pyyaml = {file = "PyYAML-5.4.1-cp39-...
George Liu's user avatar
  • 3,613
2 votes
1 answer
916 views

I would like to decode protobuf. Example of the protobuf data: 0a06282c0241057a10011805220d080510bea3f493062a03010c1628f1a6f493063002382b4001481482010f383634333233303532343736343839 I can Decoding ...
henrry's user avatar
  • 643
3 votes
1 answer
4k views

My directory structure is as follows: test |-test.py |-test.proto |-test_pb2.py |-__init__.py |-comm |-comm.proto |-comm_pb2.py |-__init__.py both __init__.py is empty and test....
charlie's user avatar
  • 357
0 votes
0 answers
1k views

I am attempting to use MessageToJSON and MessageToDict with the including_default_value_fields argument to generate a Pandas Dataframe that then gets written to Parquet. I have a deeply nested data ...
AlexLordThorsen's user avatar
1 vote
2 answers
352 views

I installed scann on colab with code !pip uninstall protobuf>=3.20.3 but I had a error like that: "ERROR: pip's dependency resolver does not currently take into account all the packages that ...
vinh nguyen's user avatar
0 votes
1 answer
540 views

I'm using pb_2 and want to consturct instances of a message but keep facing positional argument error. I can construct instances from all other messages but when it comes to the following example, I ...
mahb's user avatar
  • 59
3 votes
0 answers
725 views

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. google-api-core 2.11.0 ...
Qiblatain Fatima's user avatar
0 votes
0 answers
988 views

I'm using a Mac/Linux and I'm trying to get python code generated from a .proto file. When I run the protoc --version command in my terminal it returns libprotoc 22.5. When I run a terminal command ...
Jed's user avatar
  • 2,138
0 votes
1 answer
879 views

Disclaimer: I am relatively new to Protocol Buffers, and python is not my language of choice. Most of my knowledge of protocol buffers has used them without compiling them, or having an IDE handle it ...
John Doe's user avatar
  • 101
2 votes
2 answers
1k views

I have a .proto file defining a message called 'DeviationCreate'. syntax = "proto3"; package proto; option go_package = "proto"; option java_package = "deviationalert"; ...
Mohsen's user avatar
  • 21
1 vote
1 answer
498 views

Let's say that I have dumped a protobuf message to a file called packet.bin . Let's also say that I have the .proto files which describes many message types of which one is the type of the dumped ...
Some nerd who does not have a 's user avatar
2 votes
1 answer
2k views

I have a a protobuf message in the form of: message CustomMessage { SubMessageTypeA a_msg = 1; SubMessageTypeB b_msg = 2; SubMessageTypeC c_msg = 3; } I have several objects (assume 3)...
Amir's user avatar
  • 541
0 votes
1 answer
368 views

I feel like I had this figured out before but it's not working again, I am developing some code based on protobuf and grpc and in the documentation all of the types come out really messily: ...
iluvcapra's user avatar
  • 9,464
1 vote
1 answer
239 views

I get a message from rocket mq, it's like the string show in the pic above or the below: b'\x08\xd2\t\x12\x03Tim\x1a(\x08\x04\x12\x18Test ProtoBuf for Python\x1a\n31.10.2019' The message from rocket ...
Steve's user avatar
  • 59
0 votes
1 answer
73 views

I have some tox project that processes some protobuf in the install-deps phase and outputs some *pb.py codecs (custom script executed as install_command option in the config). When I'm updating my ...
murison's user avatar
  • 4,055
0 votes
1 answer
324 views

Our application workflow uses protobuf for cross-language IPC. We have a C++ application publishing data over Linux shared memory to various clients on the same host. Data is published to shared ...
Itzik Ben Zaken's user avatar
0 votes
1 answer
398 views

can we define regular expression in protobuf field name? I send the request as list of dictinary in client.py file "cur_cur_bin" : [{"cur_cur_bin1_bin3_bin1" : 4,"...
PRAJAKTA DHIVAR's user avatar
1 vote
1 answer
390 views

If protoc.py is called from powershell, the compiled file is missing about half of the code as opposed to when protoc.py is called from natively from python. I have a powershell script and a python ...
George Gayton's user avatar
0 votes
1 answer
1k views

I am trying to implement a validation for protobuf files in Python. I don't want to use an external package. I tried: desc_set = descriptor_pb2.FileDescriptorSet() descriptor_bytes = str.encode(...
Shoham Roditi's user avatar
2 votes
1 answer
2k views

I have a protobuf timestamp message that I'm trying to parse from a Python dictionary. The target Protobuf message looks like this: message LogStatusSnapshot { google.protobuf.Timestamp time = 1; ...
Tommy Clare's user avatar
5 votes
2 answers
2k views

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
3 votes
2 answers
3k views

For my GAE app, I was updating the libs in my requirements.txt, and after doing so, I get error messages relating to protobuf. TypeError: Descriptors cannot not be created directly. If this call came ...
minou's user avatar
  • 16.6k
1 vote
1 answer
1k views

In Java, libraries like protostuff allow you to generate buffers from a Java POJO approximately like so: Schema<Foo> schema = RuntimeSchema.getSchema(Foo.class); ... protostuff = ...
zerohedge's user avatar
  • 3,855
6 votes
1 answer
12k views

I'm working with a protobuf message that has some of the fields marked for deprecation with [deprecated = true]. To my understanding the field can still be used by some part of the code (maybe with a ...
Amir's user avatar
  • 541
0 votes
1 answer
934 views

My python gcld3 package broke recently because it is linked against libprotobuf.30.dylib and a recent homebrew update replaced this lib with a newer version. The package [email protected] has libprotobuf....
Barney Szabolcs's user avatar
6 votes
0 answers
684 views

I have a .proto file, describing a given schema and following proto2 syntax. I would like to read this file in python, and generate a structure that I can then manipulate (can be JSON, a python data ...
Kestemont Max's user avatar
4 votes
1 answer
2k views

I have a proto file defined as: syntax = "proto3"; import "google/protobuf/struct.proto"; package generic.name; message Message { uint32 increment = 1; google.protobuf.Value ...
Charlie Miller's user avatar
1 vote
1 answer
3k views

I have a kafka topic that has protobuf message of format: message CreditTransaction { string date = 1; float amount = 2; } message DebitTransaction { string date = 1; float amount = 2;...
aiman's user avatar
  • 1,115
0 votes
1 answer
1k views

I defined .proto file like: syntax = "proto3"; message networkSliceArray { int32 DRB.UEThpDl.SNSSAI = 1; int32 DRB.UEThpUl.SNSSAI = 2; string networkSliceIdentifier = 3; } I want ...
PRAJAKTA DHIVAR's user avatar
0 votes
1 answer
362 views

I am reading protobuf messages from kafka topic using py-spark streaming. While using the msg.WhichOneOf gives error AttributeError: 'bytearray' object has no attribute 'WhichOneof'. The schema ...
aiman's user avatar
  • 1,115
6 votes
1 answer
4k views

I'm currently trying to generate python code from a proto file. My proto file looks like this: syntax = "proto3"; package display; message Hello { uint32 version = 1; uint32 value = 2; ...
Tekuu59's user avatar
  • 63
0 votes
1 answer
115 views

I've found this GTFS data that I want to use, but IDK how to set up protobuf (preferably in Python) to read the data. Any help would be greatly appreciated. Thanks. https://gtfsrt.api.translink.com.au/...
flying_loaf_3's user avatar
3 votes
3 answers
2k views

I have a grpc repo included in a python project repo as a submodule at src/grpc/protobuf with the following example structure: protobuf/ | |-data_structs/ | |-example_structA.proto | |-...
cma0014's user avatar
  • 1,599
1 vote
0 answers
2k views

I'm using Google's Int32Value protobuf in python. I'm wondering what the proper way to set the value is. If we do it during initialization, then we can do my_int_32_value = Int32Value(value=123) If we ...
information_interchange's user avatar
2 votes
1 answer
2k views

I am trying to get header of the gRPC response with the following code, and it doesn't work: response = stub.GetAccounts(users_pb2.GetAccountsRequest(), metadata=metadata) header = response.header() ...
Драбышевский Никита's user avatar
0 votes
1 answer
326 views

I'm creating a python file to read in some json data. Then assigning that data to my protobuf messages. I want to pass in "start_hour": 8 and receive 8 and not EIGHT from my enum. Perhaps I'...
YourMomsDataEngineer's user avatar
0 votes
1 answer
590 views

I have created a grpc python client with round robin load-balancing policy self.channel = grpc.insecure_channel(self.host,options=[("grpc.lb_policy_name", ...
Deepu Varma's user avatar
6 votes
1 answer
4k views

Is it possible to get proto files from generated pb2.py with protoc? Will be the same reverse engineering possible for gRPC?
Serge Platonov's user avatar
1 vote
2 answers
6k views

This is all about and issue when using the latest Python Protobuf (3.19.1) and Python 3.10, in Linux (tested in Fedora 35 and Ubuntu 20.04. It broke our library but it can easily tested using the ...
Nuno Mariz's user avatar
0 votes
1 answer
2k views

I'm a newbie to protobufs and I can't seem to get it. I have a proto file like this. message Address{ string Home=1; State state=2; string Name=3; enum State{ STATE_UNKNOWN=...
hiuoi's user avatar
  • 3
4 votes
2 answers
1k views

I have a package that looks like this: setup.py requirements.txt alphausblue/ api/ ripple/ org_pb2.py org/ v1/ org_pb2_grpc.py In org_pb2_grpc.py I ...
Woody1193's user avatar
  • 8,202
2 votes
1 answer
4k views

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
0 votes
1 answer
1k views

I am following the tutorial of protobuf using Python (there isn't one for JavaScript). It doesn't work... and I think it might be outdated as proto2 and as a Python 2 program. How to make it work? So ...
nonopolarity's user avatar