tensorflow-serving-api icon indicating copy to clipboard operation
tensorflow-serving-api copied to clipboard

What are the exact versions for protoc-gen-go?

Open H-Shafiei opened this issue 3 years ago • 2 comments

Hi, The new versions of protoc-gen-go don't support grpc plugins and have some changes which makes your repo not work. I have an issue regarding this problem here too.

Have you done this recently?

Thanks, Hamed

H-Shafiei avatar Apr 27 '21 09:04 H-Shafiei

According to my local history, these are the versions I've used:

  1. protoc: 3.12.3

  2. protoc-gen-go:

    1. google.golang.org/protobuf: [email protected] or

    2. github.com/golang/protobuf: [email protected]

AlexanderJLiu avatar Apr 27 '21 09:04 AlexanderJLiu

Thanks for the response. For protoc-gen-go if I install google.golang.org/[email protected], it doesn't support the grpc plugin which I should install protoc-gen-go-grpc as well which then I encounter this error:

--go_out: protoc-gen-go: plugins are not supported; use 'protoc --go-grpc_out=...' to generate gRPC

I then switched to github.com/golang/[email protected] but when I want to install the protoc-gen-go package from this module, for some weird reason it downloads google.golang.org/[email protected] which again raises the same error!

So what I did was I ran go get -u github.com/golang/[email protected] and NOT go get -u github.com/golang/protobuf/[email protected] and then manually build the protoc-gen-go package.

Now it builds successfully and I'm trying to call my model from the tf serving grpc endpoint.

If this is successful, I would let you know and close the issue.

H-Shafiei avatar Apr 28 '21 13:04 H-Shafiei