Skip to content

Fix Builder App setup (pin Python version and run uvicorn via uv)#208

Open
balazsgaspar wants to merge 2 commits intodatabricks-solutions:mainfrom
balazsgaspar:fix/117-builder-app-setup-pyarrow
Open

Fix Builder App setup (pin Python version and run uvicorn via uv)#208
balazsgaspar wants to merge 2 commits intodatabricks-solutions:mainfrom
balazsgaspar:fix/117-builder-app-setup-pyarrow

Conversation

@balazsgaspar
Copy link

Summary

Fixes #117. The Databricks Builder App out-of-the-box setup was failing when using Python 3.14 as pyarrow==18.1.0 has no pre-built wheel for 3.14, so uv sync tried to build it from source and failed (e.g. missing CMake). Additionally, start_dev.sh could fail with "uvicorn: command not found" when the project venv was not activated.

Changes

  1. Python constraint (pyarrow / Databricks Visual App Builder install failed #117)

    • Set requires-python = ">=3.11,<3.14" in databricks-builder-app/pyproject.toml so installs use a Python version that has pyarrow wheels (3.11–3.13), avoiding source build and CMake.
    • Added databricks-builder-app/.python-version with 3.12 so uv uses 3.12 by default in this app.
  2. start_dev.sh

    • Run uvicorn via uv run uvicorn ... so the script uses the project venv and finds uvicorn without requiring an activated environment.

Testing

  • Ran ./scripts/setup.sh in databricks-builder-app on macOS (arm64). Backend and frontend dependencies were installed successfully.
  • Ran ./scripts/start_dev.sh; backend and frontend started without "uvicorn: command not found".

- Set requires-python = ">=3.11,<3.14" so uv uses a version with
  pre-built pyarrow wheels (avoids source build and CMake dependency)
- Add .python-version pin to 3.12 for consistent local and CI installs

Fixes databricks-solutions#117
uvicorn is installed in the project venv by uv sync. Running it via
uv run ensures the script finds it without activating the venv.
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.

Databricks Visual App Builder install failed

1 participant