Skip to content

make proto looks broken #234

@tmenjo

Description

@tmenjo

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

  1. git clone https://github.com/numaproj/numaflow-python.git
  2. cd numaflow-python
  3. git checkout 9a390a5 (latest main)
  4. Run make setup
  5. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions