grpc go install error

360 views
Skip to first unread message

jawr...@gmail.com

unread,
Jun 9, 2017, 10:38:43 PM6/9/17
to grpc.io
Not as simple as the grpc website indicates.  I am getting an install error.  I assume it's a library conflict, but with what?  It's a brand new Ubuntu 16 VM.

root@server:~/go/src# go version
go version go1.8.3 linux/amd64

root@server:~/go/src# echo $GOPATH
/root/go

root@server:~/go/src# go get google.golang.org/grpc
# google.golang.org/grpc/transport
google.golang.org/grpc/transport/http_util.go:466: f.fr.SetReuseFrames undefined (type *http2.Framer has no field or method SetReuseFrames)

root@server:~/go/src#

I know go is installed correctly because hello-world works.

root@server:~/go/src# cd hw
root@server:~/go/src/hw# go build
root@server:~/go/src/hw# ./hw
hello, world
root@server:~/go/src/hw#

It must be something simple that I am missing.  the grpc website says the only thing needed is go and then run "go get google.golang.org/grpc".

ma...@neoos.ch

unread,
Jun 20, 2017, 5:57:02 AM6/20/17
to grpc.io
I have the same problem on macOS.

../../google.golang.org/grpc/transport/http_util.go:466: f.fr.SetReuseFrames undefined (type *http2.Framer has no field or method SetReuseFrames)

go version go1.8 darwin/amd64

ma...@neoos.ch

unread,
Jun 20, 2017, 6:15:49 AM6/20/17
to grpc.io, ma...@neoos.ch
This fixed it for me:
1) remove folder golang.org/x/net from $GOPATH/src
2) reinstall http2 and grpc:
Reply all
Reply to author
Forward
0 new messages