Describe the bug
make proto failed with a message Error while finding module specification for 'grpc_tools.protoc' (ModuleNotFoundError: No module named 'grpc_tools').
To Reproduce
- git clone https://github.com/numaproj/numaflow-python.git
- cd numaflow-python
- git checkout 9a390a5 (latest main)
- Run
make setup
- Run
make proto
Expected behavior
make proto should success.
Screenshots
$ make proto
python3 -m grpc_tools.protoc --pyi_out=pynumaflow/proto/sinker -I=pynumaflow/proto/sinker --python_out=pynumaflow/proto/sinker --grpc_python_out=pynumaflow/proto/sinker pynumaflow/proto/sinker/*.proto
/usr/bin/python3: Error while finding module specification for 'grpc_tools.protoc' (ModuleNotFoundError: No module named 'grpc_tools')
make: *** [Makefile:29: proto] Error 1
Environment (please complete the following information):
- distro: Ubuntu 24.04
- make: GNU Make 4.3
- python3: 3.12.3
- poetry: 2.1.3
- grpcio-tools: 1.62.3
Additional context
poetry config is as follows:
$ poetry config --list
cache-dir = "/home/menjo/.cache/pypoetry"
data-dir = "/home/menjo/.local/share/pypoetry"
installer.max-workers = null
installer.no-binary = null
installer.only-binary = null
installer.parallel = true
installer.re-resolve = true
keyring.enabled = true
python.installation-dir = "{data-dir}/python" # /home/menjo/.local/share/pypoetry/python
requests.max-retries = 0
solver.lazy-wheel = true
system-git-client = false
virtualenvs.create = true
virtualenvs.in-project = null
virtualenvs.options.always-copy = false
virtualenvs.options.no-pip = false
virtualenvs.options.system-site-packages = false
virtualenvs.path = "{cache-dir}/virtualenvs" # /home/menjo/.cache/pypoetry/virtualenvs
virtualenvs.prompt = "{project_name}-py{python_version}"
virtualenvs.use-poetry-python = false
Message from the maintainers:
Impacted by this bug? Give it a 👍. We often sort issues this way to know what to prioritize.
Describe the bug
make protofailed with a messageError while finding module specification for 'grpc_tools.protoc' (ModuleNotFoundError: No module named 'grpc_tools').To Reproduce
make setupmake protoExpected behavior
make protoshould success.Screenshots
Environment (please complete the following information):
Additional context
poetry config is as follows:
Message from the maintainers:
Impacted by this bug? Give it a 👍. We often sort issues this way to know what to prioritize.