Skip to content

fix: pin lance-namespace<0.7 in pylance dependencies#6604

Open
LuciferYang wants to merge 1 commit intolance-format:mainfrom
LuciferYang:fix-pin-lance-namespace-upper-bound
Open

fix: pin lance-namespace<0.7 in pylance dependencies#6604
LuciferYang wants to merge 1 commit intolance-format:mainfrom
LuciferYang:fix-pin-lance-namespace-upper-bound

Conversation

@LuciferYang
Copy link
Copy Markdown
Contributor

@LuciferYang LuciferYang commented Apr 24, 2026

Summary

  • Add upper bound <0.7 to lance-namespace dependency in python/pyproject.toml to prevent released pylance wheels from breaking when lance-namespace>=0.7 is installed

Root cause

lance-namespace 0.7.0 removed CreateEmptyTableRequest / CreateEmptyTableResponse symbols. Released pylance wheels (e.g. 2.0.1, 4.0.0b1) still import these symbols in lance/namespace.py, causing ImportError when users pip install an old pylance version and pip resolves lance-namespace>=0.7.

PR #6597 fixed this for CI compat tests by pinning in venv_manager.py, but real users installing from PyPI are still affected.

Ref: #6597 (comment)

Test plan

  • Existing CI jobs remain green
  • Users installing older pylance wheels resolve lance-namespace<0.7 and avoid ImportError

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: lance-format#6597 (comment)
Copy link
Copy Markdown

@claude claude Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@github-actions github-actions Bot added bug Something isn't working python labels Apr 24, 2026
@LuciferYang
Copy link
Copy Markdown
Contributor Author

cc @jackye1995 FYI

@jackye1995
Copy link
Copy Markdown
Contributor

I already created a patch in 4.0.0, will publish 4.0.1 with it: #6603.

The API is already depreacted for one release, so the plan is to fully remove it in 5.0.0+

@jackye1995
Copy link
Copy Markdown
Contributor

For the main branch, I am raising a PR for bumping the lance-namespace verson

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants