Skip to content

Use uv run python for grant_permissions.py#210

Open
mh-avant wants to merge 1 commit into
databricks-solutions:mainfrom
mh-avant:fix/grant-permissions-uv
Open

Use uv run python for grant_permissions.py#210
mh-avant wants to merge 1 commit into
databricks-solutions:mainfrom
mh-avant:fix/grant-permissions-uv

Conversation

@mh-avant

@mh-avant mh-avant commented May 19, 2026

Copy link
Copy Markdown

Summary

  • grant_permissions.py imports from genie_space_optimizer.optimization.ddl import _ALL_DDL, which requires the project venv
  • It was being called with bare python3, which uses system Python and doesn't have the venv deps — causing a missing-dependency failure at deploy time
  • Changed to uv run python, matching the pattern already used for setup_lakebase.py

Test plan

  • Run ./scripts/deploy.sh or ./scripts/deploy.sh --update on a workspace where the venv is not pre-activated — grants step should complete without import errors

🤖 Generated with Claude Code

grant_permissions.py imports from the local genie_space_optimizer package
and needs the project venv. system python3 doesn't have the deps, causing
the missing-dependency failure at deploy time.

Matches the existing uv run python pattern already used for setup_lakebase.py.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants