Description
Using example from README:
syntax = "proto3";
package hello;
// Greeting represents a message you can tell a user.
message Greeting {
string message = 1;
}
Setup virtualenv with
pip install grpcio{,-tools} betterproto[compiler]==2.0.0b4
Gives:
python -m grpc_tools.protoc -I . --python_betterproto_out=lib example.proto
--python_betterproto_out: protoc-gen-python_betterproto: Plugin failed with status code 1.
I noticed that grpcio and grpcio-tools pip packages both were updated to 1.44.0 yesterday and suspected this was the culprit, however when I setup the virtualenv with:
pip install grpcio{,-tools}==1.43.0 betterproto[compiler]==2.0.0b4
I still get the same error.
This was working fine 2 days ago when I last regenerated my protobufs with a script that set's up the virtualenv's as described above. I'm very confused why using version grpcio 1.43.0 gives the same error here as I thought this was the exact setup that was working for me 2 days ago.. has anything else changed that I'm missing?
Thanks
Edit: using betterproto 1.2.5 with grpcio-tools 1.44.0 works, but this isn't ideal as it generates files with bad imports