Skip to content

CI and pip install fail on Windows with Python 3.14: lxml 6.2.1 has no cp314 Windows wheel #792

Backlog

Description

Found: 2026-11-30, while reviewing #791

What happens

The test (windows-latest, 3.14) job of the Build workflow fails in "Install dependencies", before any test runs. GitHub then cancels every other test job of the matrix, so no pull request currently gets test results.

setup.py requires lxml>=4.9.0. pip now resolves it to lxml 6.2.1 (released 2026-11-29), which publishes Windows wheels for CPython 3.8 to 3.13 but none for CPython 3.14 (cp314-win_amd64). pip falls back to the source archive lxml-6.2.1.tar.gz, and building it fails:

fatal error C1083: Cannot open include file: 'libxml/xmlversion.h': No such file or directory
ERROR: Failed building wheel for lxml

The last master Build (Nov 27) installed lxml-6.2.0-cp314-cp314-win_amd64.whl and passed. Installing lean with pip on Windows with Python 3.14 fails the same way.

Reproduce

On Windows with Python 3.14, without a C toolchain set up for libxml2: pip install lxml==6.2.1 (or pip install lean).

What a fix must achieve

The Windows Python 3.14 job installs its dependencies and runs the tests again, without changing the lxml version the other platforms get. A suggestion: exclude lxml 6.2.1 on Windows with Python 3.14 in setup.py until upstream publishes that wheel, or wait for the wheel if it comes soon.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority:P2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions