Triton fails to run

I’m trying to get inference from Triton server using the but I’m consistently getting the error message below:

Traceback (most recent call last):
File “./…/clients/python/”, line 37, in
import tritonclient.grpc as grpcclient
File “/usr/local/lib/python3.8/dist-packages/tritonclient/grpc/”, line 41, in
from tritonclient.grpc import model_config_pb2
File “/usr/local/lib/python3.8/dist-packages/tritonclient/grpc/”, line 33, in
File “/usr/local/lib/python3.8/dist-packages/google/protobuf/”, line 755, in new
TypeError: Descriptors cannot not be created directly.
If this call came from a file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:

  1. Downgrade the protobuf package to 3.20.x or lower.
  2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

Any clue on how to fix it


We recommend you to please reach out to the GitHub issues of the Triton server to get better help.

Thank you.