From 086d7b59825c8d2076c3416135e7724fcd264668 Mon Sep 17 00:00:00 2001 From: Jeroen Veen Date: Wed, 29 Apr 2026 08:50:52 +0200 Subject: [PATCH 1/2] Declare packaging as install requirement `weaviate.exceptions` and `weaviate.proto.v1.__init__` import `from packaging import version` at module load. The dependency was previously satisfied transitively through `deprecation`, which was removed in v4.20.5 (#1999). Slim Python images that don't pre-install `packaging` now fail with `ModuleNotFoundError: No module named 'packaging'` on the first `import weaviate`. Adds `packaging>=21.0` to install_requires. Closes #2022. --- setup.cfg | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.cfg b/setup.cfg index a9d61e7bd..857a7d308 100644 --- a/setup.cfg +++ b/setup.cfg @@ -40,6 +40,7 @@ install_requires = pydantic>=2.12.0,<3.0.0 grpcio>=1.59.5,<1.80.0 protobuf>=4.21.6,<7.0.0 + packaging>=21.0 python_requires = >=3.10 [options.extras_require] From ffcbf3a27af6bb578b1792ee9901e82f3041aa25 Mon Sep 17 00:00:00 2001 From: Jeroen Veen Date: Wed, 29 Apr 2026 09:21:24 +0200 Subject: [PATCH 2/2] Add packaging to requirements-devel.txt --- requirements-devel.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements-devel.txt b/requirements-devel.txt index 5e929631f..0f48469f4 100644 --- a/requirements-devel.txt +++ b/requirements-devel.txt @@ -5,6 +5,7 @@ grpcio==1.75.1 grpcio-tools==1.75.1 grpcio-health-checking==1.75.1 pydantic==2.12.0 +packaging==26.2 build twine