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

Aperta Adatta ai principianti
#792 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
75/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python
Ambito
cli, testing

Direzione di ricerca

Inizia da setup.py e dall’installazione delle dipendenze di Windows Python 3.14 nel workflow Build; confronta come vengono imposti i vincoli su lxml nelle diverse piattaforme e versioni di Python. Riproduci il problema con pip install lxml==6.2.1 su Windows con Python 3.14. Il lavoro è completato quando quel job installa le dipendenze ed esegue i test, mentre le altre piattaforme mantengono la versione attuale di lxml.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

priority:P2

Found: 2026-11-30, while reviewing https://github.com/QuantConnect/lean-cli/pull/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.

Lingua principale
Python
Stelle
335
Fork
172
Merge medio
6h 54m
PR unite (30g)
37

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di QuantConnect/lean-cli

Tutte le issue di QuantConnect/lean-cli

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.