Hi, You would need to generate the python client yourself from the opennlp.proto definition (ideally as part of the build process)
Gruß Richard > Am 03.02.2026 um 10:25 schrieb Jobin Sabu <[email protected]>: > > Hi Richard, > > I’m working on the Python gRPC client for OpenNLP and I’m currently stuck > at the protobuf stage. > > Repo: > https://github.com/JOBIN-SABU/opennlp-sandbox-experiments > > Issue: > My Python client cannot import opennlp_pb2. > > Error: > ModuleNotFoundError: No module named 'opennlp_client.proto.opennlp_pb2' > > What I did: > • Installed grpcio and grpcio-tools > • Installed package in editable mode (pip install -e .) > • Added src to Python path > • Confirmed proto folder exists > • But opennlp_pb2.py is not getting generated correctly > > I suspect I am misunderstanding how the OpenNLP gRPC proto is meant to be > used in Python. > > Could you clarify: > → Should we generate the Python stubs ourselves from opennlp.proto? > → Or is there an expected Python client package we should use? > > Thanks, > Jobin
