Fix Builder App setup (pin Python version and run uvicorn via uv)#208
Open
balazsgaspar wants to merge 2 commits intodatabricks-solutions:mainfrom
Open
Fix Builder App setup (pin Python version and run uvicorn via uv)#208balazsgaspar wants to merge 2 commits intodatabricks-solutions:mainfrom
balazsgaspar wants to merge 2 commits intodatabricks-solutions:mainfrom
Conversation
- 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #117. The Databricks Builder App out-of-the-box setup was failing when using Python 3.14 as
pyarrow==18.1.0has no pre-built wheel for 3.14, souv synctried to build it from source and failed (e.g. missing CMake). Additionally,start_dev.shcould fail with "uvicorn: command not found" when the project venv was not activated.Changes
Python constraint (pyarrow / Databricks Visual App Builder install failed #117)
requires-python = ">=3.11,<3.14"indatabricks-builder-app/pyproject.tomlso installs use a Python version that has pyarrow wheels (3.11–3.13), avoiding source build and CMake.databricks-builder-app/.python-versionwith3.12souvuses 3.12 by default in this app.start_dev.sh
uv run uvicorn ...so the script uses the project venv and finds uvicorn without requiring an activated environment.Testing
./scripts/setup.shindatabricks-builder-appon macOS (arm64). Backend and frontend dependencies were installed successfully../scripts/start_dev.sh; backend and frontend started without "uvicorn: command not found".