Skip to content

from grpc_tools import _protoc_compiler fails on grpcio-tools v1.0.3 #9108

@oc243

Description

@oc243

With a clean install of grpcio-tools v1.0.3 from pypi imports that have a transitive import of from grpc_tools import _protoc_compiler fail:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/grpc_tools/protoc.py", line 35, in <module>
    from grpc_tools import _protoc_compiler
ImportError: cannot import name _protoc_compiler

>>> from grpc_tools import protoc
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/grpc_tools/protoc.py", line 35, in <module>
    from grpc_tools import _protoc_compiler
ImportError: cannot import name _protoc_compiler

>>> from grpc.tools import command
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/grpc_tools/command.py", line 35, in <module>
    from grpc_tools import protoc
  File "/usr/local/lib/python2.7/dist-packages/grpc_tools/protoc.py", line 35, in <module>
    from grpc_tools import _protoc_compiler
ImportError: cannot import name _protoc_compiler

I suspect this bug was introduced in fb261bf.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions