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

未关闭 适合新手
#792 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
75/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
python
领域
cli, testing

调研方向

从 setup.py 和 Build 工作流中 Windows Python 3.14 的依赖项安装开始;比较 lxml 在不同平台和 Python 版本中的版本限制。使用 Windows 上的 Python 3.14 通过 pip install lxml==6.2.1 重现。完成标准是该作业能够安装依赖项并运行测试,同时其他平台保留当前的 lxml 版本。

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
Python
星标
335
派生
172
平均合并
6 小时 54 分钟
30 天内合并 PR
37

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

QuantConnect/lean-cli 的其他 Issue

查看 QuantConnect/lean-cli 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。