From 35f15ab05952399d2964fe1aba8b85b12a997765 Mon Sep 17 00:00:00 2001 From: yangjie01 Date: Fri, 24 Apr 2026 08:23:42 +0800 Subject: [PATCH] fix: pin lance-namespace<0.7 in pylance dependencies lance-namespace 0.7.0 removed CreateEmptyTableRequest/CreateEmptyTableResponse symbols. Released pylance wheels (e.g. 2.0.1, 4.0.0b1) import these symbols, causing ImportError when users pip install an old pylance version and resolve lance-namespace>=0.7. Add an upper bound to prevent this breakage. Ref: https://github.com/lance-format/lance/pull/6597#issuecomment-4306020639 --- python/pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/pyproject.toml b/python/pyproject.toml index 613ff5b8d5b..3daf4a47246 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "pylance" dynamic = ["version"] -dependencies = ["pyarrow>=14", "numpy>=1.22", "lance-namespace>=0.6.1"] +dependencies = ["pyarrow>=14", "numpy>=1.22", "lance-namespace>=0.6.1,<0.7"] description = "python wrapper for Lance columnar format" authors = [{ name = "Lance Devs", email = "dev@lance.org" }] license = { file = "LICENSE" }