tensorflow-serving-api
tensorflow-serving-api copied to clipboard
What are the exact versions for protoc-gen-go?
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
According to my local history, these are the versions I've used:
-
protoc: 3.12.3
-
protoc-gen-go:
-
google.golang.org/protobuf: [email protected] or
-
github.com/golang/protobuf: [email protected]
-
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.