mars2cbh opened a new pull request, #77424:
URL: https://github.com/apache/airflow/pull/77424

   
   Airflow does not support Python 3.15 yet, but on machines where 3.15 is the 
default
   interpreter (for example a recent Homebrew Python on macOS), 
`dev/ide_setup/setup_idea.py`
   lets uv pick the interpreter and reuses a `.venv` built on 3.15. The root 
`uv sync` then
   tries to build `pyodbc` from source, since `uv.lock` has no cp315 wheels, 
and fails:
   
   ```
   error: Failed to build `pyodbc==5.3.0`
     ValueError: not enough values to unpack (expected 2, got 0)
   hint: `pyodbc` was included because `apache-airflow[all]` depends on 
`apache-airflow-providers-odbc`
   ```
   
   New contributors hit this on their first setup with no hint on how to 
recover. This adds a
   note under the IDE setup step of the beginners quick start guide, telling 
them to pass a
   supported version explicitly (`--python 3.14`), which recreates `.venv` and
   `dev/breeze/.venv`.
   
   Verified locally on macOS arm64 with Python 3.15.2 as the default 
interpreter:
   `uv run dev/ide_setup/setup_idea.py --python 3.14 --confirm` succeeds and 
both venvs
   are recreated on 3.14.8. `prek` checks on the changed file pass.
   
   Note: the underlying reason uv accepts the 3.15 venv is that 
`requires-python = ">=3.11,!=3.15"`
   excludes only `3.15.0` under PEP 440 (`!=3.15.*` would exclude all of 3.15). 
That is out
   of scope here, since PR #74557 is already changing those lines.
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes (please specify the tool below)
   
   Generated-by: Claude Code (Opus 5.5) following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
   
   ---
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to