-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"protoc-gen-python_betterproto: program not found or is not executable" #363
Comments
Please can you try installing with the --pre flag in pip? |
@Gobot1234 thanks for the prompt reply! Force reinstalling with However, running the generator now fails with the error |
Can you run pip show? |
Yep:
|
Oh sorry my bad I meant pip freeze |
|
Can you try with grpc's compiler |
Just tried with both
Regarding
Is there any way to get additional logs out of the protoc invocation that would be helpful to debug? |
I'm sorry I don't know then. This is one of the main reasons I've been working on #165 (which completely removes protoc's CLI from the compilation process), unfortunately the accompanying module which that PR needs doesn't compile on anything other than macOS for reasons I haven't been able to figure out. |
Got it. Could it be that this is because I'm using a machine with an M1 chip? I'm curious to know if you've seen the plugin work properly on that hardware |
If that's what you think it could be you could try compiling the protobuf to a standard google.protobuf package. betterproto's plugin doesn't interact with any c-api so if it isn't compiling due to protoc it's likely the compiler itself is the issue. |
Thanks a bunch for all the help with this @Gobot1234. It looks like this was an issue with gRPC on M1 machines. I ended up getting this working again thanks to this tip: grpc/grpc#25082 (comment) For future reference, here's what I did:
|
Hello! I've been using
python-betterproto
for quite some time, but after setting up the installation on a new machine (M1 MacBook Pro), I am getting the following errors when using the compiler. It seems to be exclusive to this plugin, as I've been able to successfully invokeprotoc
with other output plugins. Myprotoc
installation was done with Homebrew.Could there be something misconfigured with my installation? Any tips would be greatly appreciated.
The text was updated successfully, but these errors were encountered: