Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tritonclient protobuf / grpcio version mismatch #787

Closed
tonyay163 opened this issue Sep 27, 2024 · 1 comment · Fixed by #788
Closed

tritonclient protobuf / grpcio version mismatch #787

tonyay163 opened this issue Sep 27, 2024 · 1 comment · Fixed by #788

Comments

@tonyay163
Copy link
Contributor

tritonclient for Python uses _registered_method, which was added in 1.63.0 so tritonclient's deps are not correctly reflected. Additionally, grpcio 1.63.0 requires protobuf>=5, but tritonclient requires <5 strictly, which conflicts

The latest version of protobuf < 5 is 1.62.3, which gives the following error:

  File "/__w/venv/lib/python3.10/site-packages/tritonclient/grpc/aio/__init__.py", line 120, in __init__
    self._client_stub = service_pb2_grpc.GRPCInferenceServiceStub(self._channel)
  File "/__w/venv/lib/python3.10/site-packages/tritonclient/grpc/service_pb2_grpc.py", line 47, in __init__
    self.ServerLive = channel.unary_unary(
TypeError: Channel.unary_unary() got an unexpected keyword argument '_registered_method'
@tonyay163
Copy link
Contributor Author

Added a PR to fix: #788

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant