Skip to content

Build failure on type check #225

@wcs1only

Description

@wcs1only

Expected Behavior

Build should pass

Actual Behavior

dapr/clients/grpc/_response.py:10: error: Library stubs not installed for "google.protobuf.any_pb2" (or incompatible with Python 3.7)  [import]
dapr/clients/grpc/_response.py:11: error: Library stubs not installed for "google.protobuf.message" (or incompatible with Python 3.7)  [import]
dapr/clients/grpc/_request.py:11: error: Library stubs not installed for "google.protobuf.any_pb2" (or incompatible with Python 3.7)  [import]
dapr/clients/grpc/_request.py:12: error: Library stubs not installed for "google.protobuf.message" (or incompatible with Python 3.7)  [import]
dapr/clients/grpc/_helpers.py:11: error: Library stubs not installed for "google.protobuf.any_pb2" (or incompatible with Python 3.7)  [import]
dapr/clients/grpc/_helpers.py:12: error: Library stubs not installed for "google.protobuf.message" (or incompatible with Python 3.7)  [import]
dapr/serializers/json.py:14: error: Library stubs not installed for "dateutil" (or incompatible with Python 3.7)  [import]
dapr/serializers/json.py:14: note: Hint: "python3 -m pip install types-python-dateutil"
ext/dapr-ext-grpc/dapr/ext/grpc/_servicier.py:12: error: Library stubs not installed for "google.protobuf" (or incompatible with Python 3.7)  [import]
ext/dapr-ext-grpc/dapr/ext/grpc/_servicier.py:13: error: Library stubs not installed for "google.protobuf.message" (or incompatible with Python 3.7)  [import]
dapr/clients/grpc/client.py:23: error: Library stubs not installed for "google.protobuf.message" (or incompatible with Python 3.7)  [import]
dapr/clients/grpc/client.py:24: error: Library stubs not installed for "google.protobuf.empty_pb2" (or incompatible with Python 3.7)  [import]
dapr/clients/__init__.py:16: error: Library stubs not installed for "google.protobuf.message" (or incompatible with Python 3.7)  [import]
dapr/clients/__init__.py:16: note: Hint: "python3 -m pip install types-protobuf"
dapr/clients/__init__.py:16: note: (or run "mypy --install-types" to install all missing stub packages)
dapr/clients/__init__.py:16: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

I don't know why we never hit this before, but fix should be pretty straightforward.

Steps to Reproduce the Problem

Release Note

RELEASE NOTE:

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions