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

Aberta Para iniciantes
#792 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
2/5
Tempo estimado
1-3 horas
Facilidade para iniciantes
75/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
python
Domínio
cli, testing

Direção de pesquisa

Comece por setup.py e pela instalação de dependências do Windows Python 3.14 no workflow Build; compare como o lxml é restringido entre plataformas e versões do Python. Reproduza com pip install lxml==6.2.1 no Windows com Python 3.14. O trabalho estará concluído quando esse job instalar as dependências e executar os testes, enquanto as outras plataformas mantêm a versão atual do lxml.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
Python
Estrelas
335
Forks
172
Merge médio
6h 54min
PRs com merge (30d)
37

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de QuantConnect/lean-cli

Todas as issues de QuantConnect/lean-cli

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.