Skip to content

Commit ce25b89

Browse files
committed
fix: pin protobuf>=5.29.6,<6.0dev to prevent gencode/runtime version mismatch
Fixes #54. grpcio-tools==1.68.0 resolves to protobuf 5.29.6. Without an explicit runtime constraint, pip may install a mismatched protobuf version causing "Detected incompatible Protobuf Gencode/Runtime versions" on import. Add protobuf>=5.29.6,<6.0dev to both setup.cfg install_requires (runtime) and pyproject.toml build-system requires (build-time), ensuring the proto files are generated and loaded with a compatible protobuf version. Co-Authored-By: Claude and aki1770-del <aki1770@gmail.com>
1 parent 96f3c68 commit ce25b89

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

kuksa-client/pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
requires = [
33
# Make sure to use the same exact version criteria in setup.cfg and update requirements.txt after changing
44
"grpcio-tools==1.68.0",
5+
# Explicit protobuf pin matching setup.cfg to avoid gencode/runtime version mismatch. Fixes #54.
6+
"protobuf>=5.29.6,<6.0dev",
57
"setuptools>=42",
68
"setuptools-git-versioning",
79
"wheel",

kuksa-client/setup.cfg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ install_requires =
2929
pygments >= 2.15
3030
# Make sure to use the same version criteria in pyproject.toml and update requirements.txt after changing
3131
grpcio-tools == 1.68.0
32+
# Explicit protobuf pin: grpcio-tools 1.68.0 resolves to protobuf 5.29.x; the
33+
# generated _pb2 files must be loaded by a compatible runtime version.
34+
# Without this constraint, pip may install a mismatched version and raise
35+
# "Detected incompatible Protobuf Gencode/Runtime versions". Fixes #54.
36+
protobuf >= 5.29.6, < 6.0dev
3237
jsonpath-ng >= 1.5.3
3338
packages = find:
3439

0 commit comments

Comments
 (0)