Summary
v2.25.1 wheel ships _pb2.py files compiled with protoc 6.31.1, but does not declare protobuf as a dependency. pip can
install the package alongside an incompatible protobuf runtime, and the failure surfaces only at import.
Adding protobuf>=6.31.1,<7 to install requirements would let the resolver catch this before installation.
Repro
Run:
pip install "protobuf~=5.29.6" "nvidia-riva-client==2.25.1"
python -c "import riva.client"
Produces an error:
google.protobuf.runtime_version.VersionError: Detected incompatible Protobuf Gencode/Runtime versions when loading riva/proto/riva_asr.proto: gencode 6.31.1 runtime 5.29.6.
Summary
v2.25.1 wheel ships
_pb2.pyfiles compiled with protoc 6.31.1, but does not declareprotobufas a dependency.pipcaninstall the package alongside an incompatible
protobufruntime, and the failure surfaces only at import.Adding
protobuf>=6.31.1,<7to install requirements would let the resolver catch this before installation.Repro
Run:
Produces an error: