The reason is likely because gRPC in Python infinitely sucks as always, and it manages to interfere with regular protobuf reading somehow. I wonder if there is a way to fix this.
We had to defer grpc loading in the past when we had similar problems.
I think https://github.com/grpc/grpc/issues/16001 is likely to be relevant here. Specifically, this might explain why the deferred import appears to "help" in this case.
The following code hangs:
however this doesn't
The reason is likely because gRPC in Python infinitely sucks as always, and it manages to interfere with regular protobuf reading somehow. I wonder if there is a way to fix this.
We had to defer grpc loading in the past when we had similar problems.