protoc buffer error

234 views
Skip to first unread message

parveenk...@gmail.com

unread,
Jun 15, 2016, 1:37:27 AM6/15/16
to grpc.io
Hi All,

I am new to gRPC. I was going through installation steps. I have golang installed 1.5v and i have installed installed protoc and protoc-gen-go.

go get -u github.com/golang/protobuf/protoc-gen-go
go get -u github.com/golang/protobuf/proto

i have also downloaded c++ protoc binary in c:\protoc\.

i created a proto file in c:\test\example dir with name person.proto.

when i run below commad. it is giving error:
C:\protoc>protoc -I=\test\example --go_out=\test\example \test\example\person.proto

that
--go_out: protoc-gen-go: The system cannot find the file specified.

but if i replace go_out with cpp_out it is working fine.

Please suggest if i missing something here.



Menghan Li

unread,
Jun 15, 2016, 2:32:14 PM6/15/16
to parveenk...@gmail.com, grpc.io
Hi,

It seems protoc is having problem finding the proto file. I'm not sure why cpp_out works.

Can you try using relative path rather than absolute path?
C:\protoc>protoc -I=..\test\example --go_out=..\test\example ..\test\example\person.proto

Thanks,
Menghan

--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+u...@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/001575cf-cd4e-4648-af12-a068ea0e07b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Parveen Kumar

unread,
Jun 15, 2016, 11:10:48 PM6/15/16
to Menghan Li, grpc.io
Hi Menghan,

It is still giving the same error for relative paths as well. Am i
missing any other installation?

Regards,
Parveen Kumar
--

Warm Regards,
Parveen Kumar
+91-9890333270

Parveen Kumar

unread,
Jun 16, 2016, 3:52:10 AM6/16/16
to Menghan Li, grpc.io
It's working now. Issue was with the environment variables.I added
protoc and protoc-gen-go path in PAth variable and it started working.

akki...@gmail.com

unread,
Nov 16, 2017, 12:07:13 PM11/16/17
to grpc.io
You need to setup protoc plugin path at windows $PATH. After that you need to run commands to generate stubs. Pls refer this link: 

Reply all
Reply to author
Forward
0 new messages