Protoc not recognized command

1,719 views
Skip to first unread message

saba anjum

unread,
Oct 1, 2020, 7:17:14 AM10/1/20
to Protocol Buffers
Hello every one,

I am trying to compile .proto file using python, 
steps i followed
1.installed python,
2. installed protobuff
3.create myproto.proto
4. protoc --python3_out=gen smy proto.proto
5protoc --js_out=import_style=commonjs,binary:. myproto.proto

after step 4, , error on console, protoc the following :
 The term 'protoc' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path  
was included, verify that the path is correct and try again.
At line:1 char:1
+ protoc --python3_out=gen station_heart_beat_msg.proto
+ ~~~~~~
    + CategoryInfo          : ObjectNotFound: (protoc:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException


Help would be more appreciated
 

Matt Maloney

unread,
Oct 12, 2020, 12:15:34 PM10/12/20
to Protocol Buffers
It looks like protoc needs to be added to your path environment variable.
Reply all
Reply to author
Forward
0 new messages