Automate compilation of protobuf specs into python classes in setup.py

I have a python project that uses google protobufs as a message format for communicating over the network. Generating python files from the .proto files is straight-forward using the protoc...

How to get Google Protobuf working in Matlab?

So if one was to want to use Google protocol buffers in Matlab and using a Windows computer what would be the best way to do that since Matlab is not in the list of supported languages?

Kotlin to override protobuf types toString

Suppose we have some data classes which are generated with protoc. Google's toString() sucks for multiple reasons, it's not very human-readable, and even puts line breaks in representation which...

Reading a protobuf3 custom option from C#

TL;DR According to the doc, if I were doing C++, I could read the value of a custom option using string value = MyMessage::descriptor()->options().GetExtension(my_option);. There are similar...

Installing Bazel on Raspberry pi 3

I am trying to build Bazel from source for Raspberry Pi 3 (Model B). I encounter error Protobuf compiler not found in third_party/protobuf/protoc-linux-arm32.exe Earlier I tried downloading the...

Is there a way compile protocol buffers into pure python code?

I am looking into using protocol buffers to communicate with some custom devices we have. The problem is that these devices run an embedded python interpreter and we cannot install extra libraries...

Overwriting a repeated field in protobuf MergeFrom vs. MergeFromString

Suppose I have a proto defined as: MyProto { optional MyWrapper wrapper = 1; } where: MyWrapper { repeated int32 data = 1; } When I call MergeFromString on two text specifications of...

How to define an optional field in protobuf 3

I need to specify a message with an optional field in protobuf (proto3 syntax). In terms of proto 2 syntax, the message I want to express is something like: message Foo { required int32 bar =...

gogo.proto: File not found

protoc --gogofaster_out=. image.proto I get this error message /home/abc/src/github.com/gogo/protobuf/gogoproto/gogo.proto: File not found. image.proto: Import...

Tensorflow import error: No module named 'tensorflow'

I installed TensorFlow on my Windows Python 3.5 Anaconda environment The validation was successful (with a warning) (tensorflow) C:\>python Python 3.5.3 |Intel Corporation| (default, Apr 27...

Is there a way to generate Thrift structure from a json string without having a .thrift file? Is it possible for protobuf?

We are trying to write a microservice system in golang. To that end we needed to define some transports for inter-service communication. One of the ideas was to have the services communicate just...

ImportError: cannot import name 'rcParams' from 'matplotlib'

I have tried to uninstall and reinstall matplotlib in my tf-gpu enviornment I made but I keep getting this error: ImportError: cannot import name 'rcParams' from 'matplotlib' This is the entire...

How to install python dependencies for dataflow

I have a very small python dataflow package, the structure of package looks like this . ├── __pycache__ ├── pubsubtobigq.py ├── requirements.txt └── venv the content of...

Referencing external protos like google/rpc/status.proto

I'm wondering how to properly reference external proto files. Say I've got a .proto file which references standard protobuf types such as Timestamp: syntax = "proto3"; package api; import...

Execution failed for task ':app:minifyReleaseWithR8'.java.lang.NullPointerException (no error message)

when id update android studio to 3.6 android gradle tools to 3.6.0 ,there is a problem.when I generate sign apk,I got an exception,it is like this Execution failed for task...

Does removing existing field from protobuf message cause issues?

I am having one protobuf message - message Sample{ string field1 = 1; string field2 = 2; string field3 = 3; } These messages are stored in datastore in binary format. So if I want to...

Copy decimal into byte array without allocations

The Dream I'm looking for a way to copy a decimal value into a byte array buffer and then be able to read those bytes back into a decimal without any heap allocations. Ideally this wouldn't...

Getting error "CUDA backend requires cuDNN" when configuring OpenCV cmake build with cuda backend turned on

My goal: My goal is to configure a build of OpenCV 4.5.1-dev with support for cuda, tesseract and QT without any cmake error.. The problem I am having: I am getting the following error when I...

Heroku SSL connection error unsupported protocol

I have been using Heroku for a while to host my Discord bot. It has been connecting to a MySQL database hosted on ClearDB successfully. However, very recently, whenever I use the bot and it tries...

Using apache-airflow-providers-snowflake on airflow (no module named Snowflake)

I have installed package apache-airflow-providers-snowflake on airflow on docker and i am getting error No module named Snowflake Please refer attachment (check the error mentioned for the...

dyld: lazy symbol binding failed: Symbol not found: _grpc_set_ssl_roots_override_callback

Mac Book Air(M1) OS: macOS BigSur(11.2) Rails version: 5.2.3 ruby version: 2.5.3p105 bundle list: google-protobuf (3.15.5) googleapis-common-protos-types (1.0.6) grpc (1.36.0) $ rails c dyld:...

Im trying to build mediapipe on my jetson nano

So Im trying to build a mediapipe whl file for my jetson nano by following this guide https://github.com/jiuqiant/mediapipe_python_aarch64 I am successful on building it with my raspberry pi 4. By...

How do you install the Protobuf Compiler (Protocol Buffers / protoc) on Mac M1 ARM?

Here is the link to the Protocol Buffers / Protobuf Github https://github.com/protocolbuffers/protobuf Should I follow the C++ installation instructions? There is no pre-built binary for Mac M1...

BROWNIE - installation issue

I am trying to install Brownie and get the following error " PS C:\Python39> pip install eth-brownie Collecting eth-brownie Using cached eth_brownie-1.14.6-py3-none-any.whl (207 kB) ...

Hash protobuf object to a string as the key for redis database

I have some sort of complex protobuf object. It's a request sent to my GRPC endpoint. I want to just process it if I didn't before. So I want to hash the object to some string and store it in my...

Getting NoClassDefFoundError while running my Cucumber Automation

I am facing the following issue while running my automation. This is what I am getting on the console. io.cucumber.core.exception.CucumberException: java.lang.NoClassDefFoundError:...

Firebase Deploy Cloud Functions - 60 errors all at once

I haven't made any updates to my Firebase Cloud Functions for a while. I was just making a simple change to a String, so I know it can't be a code issue in the index.ts file. When I tried to...

Tensorflow on M1

Importing Tensorflow gives this error This is my "code": import tensorflow as tf My versions: protoc --version libprotoc 3.15.8 pip show protobuf Name: protobuf Version: 3.19.1 Tensorflow...

PIP failed to build package cytoolz

I'm trying to install eth-brownie using 'pipx install eth-brownie' but I get an error saying pip failed to build package: cytoolz Some possibly relevant errors from pip install: ...

Missing bounds checking elimination in String constructor?

Looking into UTF8 decoding performance, I noticed the performance of protobuf's UnsafeProcessor::decodeUtf8 is better than String(byte[] bytes, int offset, int length, Charset charset) for the...