Questions tagged [protoc]

protoc is the compiler for .proto files. It generates language bindings for the messages and/or RPC services from .proto files. protoc is a native executable, the scripts under this directory build and publish a protoc executable (a.k.a. artifact) to Maven repositories. The artifact can be used by build automation tools so that users would not need to compile and install protoc for their systems.

taken from google documentation

387 questions
0
votes
1 answer

Undefined name '$pb' used as an annotation

Generated .pbgrpc.dart has below code, @$pb.GrpcServiceName('') class Client extends $grpc.Client { Error - Undefined name '$pb' used as an annotation. Try defining the name or importing it from another library. My dart version is 3.0.5 and protoc…
0
votes
2 answers

How can I solve "Type com.google.protobuf.Any$1 is defined multiple times" problem on Android Studio

I am upgrading my Android app to support API 33. For that, I also upgraded protobuf & grpc libraries. Everything is upgraded and the app works if I build & run it directly from Android Studio to my phone. However, I get the following error if I try…
0
votes
0 answers

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 like protoc --python_out=.…
Jed
  • 1,823
  • 4
  • 20
  • 52
0
votes
0 answers

Building errors when building VLC media player

I am trying to build VLC media player on a Mac, but I get the following errors. All of these are installed and on the latest version. Also I tried putting them in the path etc, but nothing has helped Errors: protoc too old ninja not…
mus101
  • 1
  • 2
0
votes
2 answers

Tons of issue with protoc

I'm trying to make protoc output the generated files to a folder inside the folder where all my .proto files are. First of all, I hope we can agree that this commands are confusing and isn't very intuitive. I stumbled upon this documentation which…
rminaj
  • 560
  • 6
  • 28
0
votes
0 answers

How to make protoc include .proto comments in Python

I'm trying to figure out how to make my comments in my .proto file appear in the files generated for Python by protoc. I have a proto file service.proto. In it I have added comments on some of the messages as well as on some of the fields. So for…
ChrisH
  • 1
  • 1
0
votes
1 answer

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 as part of a deployment. I've been working on…
John Doe
  • 43
  • 3
0
votes
0 answers

How show protoc and protobuf versions that Buf is using?

In order to help integrate Buf into our workflow, I need help figuring out what versions of protoc and protobuf that Buf is depending on. I found in the repo that they are defaulting to PROTOC_VERSION := v22.0, but that doesn't seem like a…
Greg McKelvey
  • 229
  • 1
  • 8
0
votes
0 answers

Dota2 .proto files for the .dem replays

I would like to analize the logs of a dota2 replays (.dem file) but I cannot find any reliable information about it, the tutorials and git repositories are outdated and the do not work I can download the using opendota api( /matches/{match_id}…
0
votes
0 answers

How can I install protoc on Jupyter notebook

I'm running a cloud based gpu on a Linux distribution. I need to run the following: protoc --python_out=. ./mint/protos/*.proto I install protobuf with: !python -m pip install protobuf When I execute !protoc --python_out=. ./mint/protos/*.proto I…
FabricioG
  • 3,107
  • 6
  • 35
  • 74
0
votes
0 answers

how to use protobuf to encode in gem5-21.2

i use the command like this build/ARM/gem5.opt --debug-flags=ElasticTrace --debug-file=ET.out configs/example/se.py --cpu-type=DerivO3CPU --caches --cmd=a.out --options=$M5_PATH/data/bzip2/lgred/input/input.source -I 10000 --elastic-trace-en…
0
votes
1 answer

Protobuf in MinGW64 shell has trouble with absolute path

MinGW protoc is having trouble with a network share as an absolute path in a MinGW-w64 shell. cmd.exe /C "cd /D C:\PROJECT\build\common && protoc --cpp_out="C:/PROJECT/build/common/proto" --proto_path="//VBOXSVR/PROJECT/common/proto"…
gonzo
  • 442
  • 4
  • 15
0
votes
1 answer

Gradle setup for Protocol Buffer Submodule

I am trying to build a GIT repository to store common protocol buffers. What I am trying to do is minimizing the common boilerplate code across different projects. I am thinking something like the following structure. Hence, when an application…
0
votes
0 answers

Getting error after upgrading protobuf to version 3 while building project with sbt

Getting this error while building project java.lang.RuntimeException: protoc returned exit code: 1  at scala.sys.package$.error(package.scala:27)  at sbtprotobuf.ProtobufPlugin$.sbtprotobuf$ProtobufPlugin$$compile(ProtobufPlugin.scala:83)
0
votes
1 answer

Buf: Import protocol buffers from another project

I am using buf CLI to generate protos for Go via command buf generate. I am able to generate protos successfully if any imports are defined in the same directory. However, I could not import protos from another repository or even the same repository…
Harun Sasmaz
  • 119
  • 1
  • 1
  • 10