When I generate grpc files from python (running python -m grpc_tools.protoc
), I get 2 files for each one of the X proto files, X_pb2.py
and X_pb2_grpc.py
.
However by using compile-python maven goal from protobuf-maven-plugin (0.6.1), I only get the X_pb2.py files and not the grpc files. The problem that I have with this is that the services are missing from the pb2.py files. So how can I get the grpc.py files to be built?
From pip list
grpcio 1.23.0
grpcio-tools 1.23.0
protobuf 3.9.1
$ python --version
Python 3.7.3
$ pip --version
pip 19.2.3 from /blahblahblah/lib/python3.7/site-packages/pip (python 3.7)