question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

protoc-gen-grpckt: program not found or is not executable

See original GitHub issue

After following the steps in the README.md file I am not able to generate the proto files from the command line

git clone git@github.com:grpc/grpc-kotlin.git
cd grpc-kotlin/
./gradlew build
vi test.proto // make some test proto file
mkdir testDir
protoc --plugin=protoc-gen-grpc-kotlin=build/artifacts/protoc-gen-grpc-kotlin --grpckt_out=testDir --proto_path=. test.proto

And the result from this is

protoc-gen-grpckt: program not found or is not executable
Please specify a program using absolute path or make sure the program is available in your PATH system variable
--grpckt_out: protoc-gen-grpckt: Plugin failed with status code 1.

protoc version - 3.11.4

image

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:27

github_iconTop GitHub Comments

3reactions
nbazteccommented, Nov 19, 2020

@jamesward alternatively you can prepend the shebang on *nix systems:

$ cat <(echo '#!/usr/bin/java -jar') protoc-gen-grpc-kotlin-0.2.1-jdk7.jar > protoc-gen-grpc-kotlin.jar
$ ./protoc-gen-grpc-kotlin.jar
3reactions
mgenovcommented, Oct 7, 2020

0.1.5 is working as binary but the build jar for 0.2.0 is not working.

Download URL: https://repo1.maven.org/maven2/io/grpc/protoc-gen-grpc-kotlin/0.2.0/protoc-gen-grpc-kotlin-0.2.0-jdk7.jar

Tried chmod +x on the jar file without success.

root@8526a5721d90:/check# ls /usr/local/bin/
 acountry   ahost   grpc_cpp_plugin      grpc_node_plugin          grpc_php_plugin      grpc_ruby_plugin   omniproto   protoc-3.13.0.0   protoc-gen-go        protoc-gen-gogo       protoc-gen-grpc-java         protoc-gen-lint   protoc-gen-scala  ''$'\377\200'
 adig       buf     grpc_csharp_plugin   grpc_objective_c_plugin   grpc_python_plugin   grpc_web_plugin    protoc      protoc-gen-doc    protoc-gen-go-grpc   protoc-gen-gogofast   protoc-gen-grpc-kotlin.jar   protoc-gen-rbi    protoc-gen-ts
root@8526a5721d90:/check#


root@8526a5721d90:/check# protoc --grpc-kotlin_out=testDir --proto_path=. test.proto
protoc-gen-grpc-kotlin: program not found or is not executable
Please specify a program using absolute path or make sure the program is available in your PATH system variable
--grpc-kotlin_out: protoc-gen-grpc-kotlin: Plugin failed with status code 1.
root@8526a5721d90:/check#


root@8526a5721d90:/check# protoc --plugin=protoc-gen-grpc-kotlin="java -jar /usr/bin/protoc-gen-grpc-kotlin.jar" --grpc-kotlin_out=testDir --proto_path=. test.proto
java -jar /usr/bin/protoc-gen-grpc-kotlin.jar: program not found or is not executable
Please specify a program using absolute path or make sure the program is available in your PATH system variable
--grpc-kotlin_out: protoc-gen-grpc-kotlin: Plugin failed with status code 1.
root@8526a5721d90:/check#

Here are some execution tests:

root@8526a5721d90:/usr/local/bin# chmod +x protoc-gen-grpc-kotlin.jar
root@8526a5721d90:/usr/local/bin# ./protoc-gen-grpc-kotlin.jar
./protoc-gen-grpc-kotlin.jar: line 1: $'PK\003\004': command not found
./protoc-gen-grpc-kotlin.jar: line 2: $'\b\bY0Q\002': command not found
K-*ϳR03-IM+I,: No such file or directory]nMETA-INF/MANIFEST.MFMLK-.
./protoc-gen-grpc-kotlin.jar: line 12: Q4ȴ No such file or directory
./protoc-gen-grpc-kotlin.jar: line 13: $'\215x\353v\a\303~_\240nH\r\250!O8\030\252\333\200\336\346': command not found
./protoc-gen-grpc-kotlin.jar: line 12: $'@[\3154\257=\030\032\252\333\245\206\373C\036_@\253\363\004\002\301\260\361\266\2563\030\356\214\370\375\030%k\306J\026\2620\235e\202\3365:\347\v\204\325P\300\343\257s\005\302!\314\367y5\231\024\246\323\274': command not found
./protoc-gen-grpc-kotlin.jar: line 12: $'U\357\356\315XhX\305\b\227f\302b\232_\335\276\3133\352\251\363{\002Cu]\375\273ToxuR\217[\200\031Z\275': command not found
@Ҿy9Vtoc-gen-grpc-kotlin.jar: line 12: $
zEz%9yzyE%Ez0VPiPK
\Y0Qio/PK
\Y0io/grpc/PK
\Y0Qio/grpc/kotlin/PK
\Y0Qio/grpc/kotlin/generator/PK
21ShWmISio/grpc/kotlin/generator/GrpcCoroutineServerGenerator.class[    (       [
C~n$
F0A4$V/hϸ^=TP)MaZϦ*: No such file or directory
./protoc-gen-grpc-kotlin.jar: line 13: syntax error near unexpected token `)'
./protoc-gen-grpc-kotlin.jar: line 13: `z3|uLdFәJ|#fGӘmOR##&f#A5\׳DuVI)$g`@`>S:f*;bZR'{t@L>r =ӊ(
o46}yu-Vj!Ζi    Z`b4JLhB                                                                        pV*=-L*cr]Y.i0MHMZz|djF͢0gvB7eZ4eH
                        0q}GXT'LV2){}oSk$PujV$lwHiȥ-}ZKG'
root@8526a5721d90:/usr/local/bin#

Read more comments on GitHub >

github_iconTop Results From Across the Web

protoc-gen-go-grpc: program not found or is not executable
the missing plugin has been implemented at https://github.com/grpc/grpc-go. command below should fix it
Read more >
protoc-gen-grpc: program not found or is not executable #1
Try executing protoc manually on your files and see if that works. Or check the generated makefile to see which commands are generated...
Read more >
protoc-gen-go: program not found or is not executable macos
Solution: First, add option go to the proto file_package = “/proto”; Second, the old version of proto Gen go is adopted, and the...
Read more >
protoc & protoc-gen-go installation | go-zero
protoc is a tool written in C++, which can translate proto files into codes in the specified language. In the go-zero microservices, we...
Read more >
Quick start | Go - gRPC
This guide gets you started with gRPC in Go with a simple working example. ... Fatalf("could not greet: %v", err) } log.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found