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
0 answers

protoc-gen-go cannot run in terminal but can run in GoLand IDE

I want to ask, I'm learning about generating protobuf for golang. But I have a little bit problem. I can generate it when I use GoLand, but I can't when use the terminal. Even I try which protoc-gen-go in terminal it said not found. Why it does…
Arif
  • 3
  • 2
0
votes
2 answers

Is LabVIEW one of the supported languages for protocol buffers for gRPC?

I'm currently working on creating a LabVIEW server and LabVIEW client for gRPC. I would like to know if LabVIEW is one of the supported languages for protocol buffers for gRPC?
Unknown
  • 17
  • 6
0
votes
1 answer

How can I resolve external package dependencies in Go generated by protobuf?

I am following a guide on creating and using protocol buffers and gRPC for Golang. I have got up to the point where I have the generated Go files in an output directory, but I am faced with a few issues: The imports in all 3 files start like…
zkscpqm
  • 69
  • 1
  • 5
0
votes
1 answer

Cannot run Object Detector issues on Windows (ImportError: cannot import name 'string_int_label_map_pb2' from 'object_detection.protos')

I'm trying to setup the tensorflow OD package and I tried installing it from the repo, but it doesn't seem to be working. I followed the installation steps (object_detection) and tried running the test files…
0
votes
0 answers

Not able to override go module protoc version when using the golang docker image

The docker image named golang:1.15 contains everything I require to generate grpc code using protoc. The only problem is that I want the output to be stable, by pinning the version of few packages (protoc-gen-go, protoc-gen-go-grpc, grpc,…
David Gourde
  • 3,709
  • 2
  • 31
  • 65
0
votes
1 answer

protoc : The term 'protoc' is not recognized as the name of a cmdlet, function, script file, or operable program

Im attempting to install tensorflow for object detection with anaconda and python and I need to use protoc for some stuff but keep getting an error when attempting to run the command protoc \object_detection/protos/*.proto --python_out=. but I…
0
votes
1 answer

protoc generated grpc files and gateway files end up in different paths?

I'm a bit baffled about this. File structure: /Project generate.sh gateway/ cmd/ main.go pkg/ gatewaypb/ proto/ service.proto My generate.sh appears as such: set…
cbll
  • 6,499
  • 26
  • 74
  • 117
0
votes
2 answers

Android Studio - Can't load kernel bindary, invalid SDK hash??(protoc and dart)

Snipit of the issue in AS I can generate other code from proto files, but dart will not play nicely. Any thoughts? Thank you!
0
votes
3 answers

ERROR: PROTOC FAILED: google/protobuf/wrappers.proto: File not found. (Error in Maven build)

I was trying to build a grpc service using the following plugin. Seems like the plugin is not able to use protoc utility. OS : MAC Maven version : 3.6.3 Error : [ERROR] PROTOC FAILED: google/protobuf/wrappers.proto: File not found. order-mgmt.proto:…
Nilotpal
  • 3,237
  • 4
  • 34
  • 56
0
votes
0 answers

How to solve problem with compile protobuf in scala project on Windows10?

I have simple code with example protobuf on scala proto file syntax = "proto3"; package grpc.example; message HelloRequest { string msg = 1; int32 code = 2; } message HelloResponse { string msg = 1; } service HelloWorld { rpc hello…
John
  • 103
  • 1
  • 11
0
votes
1 answer

Not able to install protobuf-compiler on macOS Big Sur

I am trying to execute sudo apt install protobuf-compiler on macOS, but I am not able to install the protobuf-compiler, nor to update the apt. So far I tried, installing JDK, adding path to ./zshrc and a few other things I searched on Google but no…
roxhens
  • 508
  • 6
  • 22
0
votes
0 answers

How to Deserialize binary protobuf to json with bash script

I have developed a bash script to deserialize binary protobuf to json but output is look like json but no true json Code: #!/bin/bash ... binaryMsg= .. echo binaryMsg > /tmp/di.bin protoc --decode=my.proto.PkgDiStatus…
ImranRazaKhan
  • 1,955
  • 5
  • 33
  • 74
0
votes
1 answer

grpc doesnt compile my messages correctly

I am trying to compile my .proto file: syntax = "proto3"; package chat; message Person { string name = 1; string family = 2; int32 age = 3; } message SearchPerson { string name = 1; } service PersonService { rpc GetPerson…
erfanmorsali
  • 155
  • 7
0
votes
1 answer

can't install mysql_xdevapi on ami linux2

I need mysql_xdevapi extension. trying through sudo pecl install mysql_xdevapi error: C++ preprocessor "/lib/cpp" fails sanity check - fixed. error: boost not found - fixed. error: protobuf not found - this is the main problem(( ...bla bla…
0
votes
1 answer

How to run protoc correctly with different file import?

My main file to generate has these import : import "protos/google_annotations.proto"; import "protos/nakama_annotations.proto"; import "protos/nakama_api.proto"; The folder structure : ├── lib ├── protos ├── google_annotations.proto …
O.Chounry
  • 304
  • 4
  • 16