From 6ae9f4b7d16a2f4d074dee8d355a0e03fa51a7c7 Mon Sep 17 00:00:00 2001 From: Daniil Anfimov Date: Wed, 8 Jul 2026 13:05:34 +0200 Subject: [PATCH] Pin immudb-py<1.5 and protobuf<4 immudb-py 1.5 resolves protobuf to 6.x, whose PEP420 `google` namespace is shadowed by the bogus `google-api` package immudb-py depends on, so consumers fail at `from google.protobuf import ...`. Cap immudb-py at <1.5 and keep protobuf on the 3.x line (pkg_resources namespace), which coexists with google-api. Bump version to 0.1.9. --- setup.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 4557360..172ae6c 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name='immudb_wrapper', - version='0.1.8', + version='0.1.9', author='Daniil Anfimov', author_email='anfimovdan@gmail.com', description=( @@ -24,7 +24,12 @@ scripts=['immudb_wrapper.py'], install_requires=[ 'GitPython>=3.1.20', - 'immudb-py>=1.4.0', + # immudb-py 1.5 pulls protobuf>=4, whose PEP420 `google` namespace is + # broken by the stray `google-api` package immudb-py depends on, so + # `import google.protobuf` fails. Cap at <1.5 and keep protobuf on the + # 3.x line (pkg_resources namespace) which tolerates google-api. + 'immudb-py>=1.4.0,<1.5', + 'protobuf<4', ], python_requires='>=3.7', )