Skip to main content
1 vote
0 answers
45 views

A generated protobuf python file is unable to locate another protobuf module it generated

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

Issue Decoding Protobuf Messages from Kafka in PyFlink Due to String Conversion

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

"TypeError: Couldn't build proto file into descriptor pool" with google-cloud-compute

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

How is protobuf generating this method and is it impossible to get auto-complete for it?

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
161 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
138 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
1 vote
0 answers
583 views

protobuf installed but cannot be imported in Poetry environment

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

Decode protobuf without proto files in python

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

Failing to Import Files Compiled from Protobuf in Python

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

Python Protobuf `MessageToDict` And `MessageToJson` with `include_default_value_fields` Does Add Defaults To `google.protobuf.BoolValue` Fields

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

Having an error when installing Scann on Google Colab

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

When constructing an instance of a Python protobuf message, I keep getting positional argument error

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

Different libraries require different version of Protobuf (dependency conflict)

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

Match (lib)protoc version on Mac to Python protobuf==3.19.X

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

Compiling Protobuf to Python giving unexpected results

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

15 30 50 per page
1
2 3 4 5