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.
On Thu, Jun 16, 2016 at 8:40 AM, Parveen Kumar <[email protected]> wrote: > Hi Menghan, > > It is still giving the same error for relative paths as well. Am i > missing any other installation? > > Regards, > Parveen Kumar > > On Thu, Jun 16, 2016 at 12:02 AM, Menghan Li <[email protected]> wrote: >> 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 >> >> On Tue, Jun 14, 2016 at 10:37 PM, <[email protected]> wrote: >>> >>> 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. >>> >>> >>> >>> >>> -- >>> 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 [email protected]. >>> To post to this group, send email to [email protected]. >>> 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. >> >> > > > > -- > > Warm Regards, > Parveen Kumar > +91-9890333270 -- Warm Regards, Parveen Kumar +91-9890333270 -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/CABr-Styky--s8t%2BTnYRxeLG1JktAm2q42e0%3DTeadpDqW_SyjTQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
