69 questions
-1
votes
0
answers
37
views
AWS Redshift VARCHAR argument inside Scalar Python UDF inconsistency
I am trying to create a Scalar Python UDF (https://docs.aws.amazon.com/redshift/latest/dg/udf-creating-a-scalar-udf.html ) to parse a VARBYTE column in Redshift.
Sample code:
CREATE OR REPLACE ...
0
votes
0
answers
46
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.
...
2
votes
2
answers
1k
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 ...
1
vote
1
answer
140
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-...
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 ...
1
vote
0
answers
496
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-...
2
votes
1
answer
806
views
Decode protobuf without proto files in python
I would like to decode protobuf.
Example of the protobuf data: 0a06282c0241057a10011805220d080510bea3f493062a03010c1628f1a6f493063002382b4001481482010f383634333233303532343736343839
I can Decoding ...
3
votes
1
answer
3k
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....
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 ...
1
vote
2
answers
305
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 ...
0
votes
1
answer
506
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 ...
2
votes
0
answers
608
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 ...
0
votes
0
answers
904
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 ...
0
votes
1
answer
815
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 ...