Python 3.14t + roboflow 1.2.11 is broken
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 30/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- python
调研方向
从 pyproject.toml 开始,并使用报告中的 Windows、uv 0.9.25 和 Python 3.14t 设置复现 uv sync --extra gpu。跟踪从 roboflow 1.2.11 到 pillow-avif-plugin 1.5.2 的依赖路径,并确定项目是否可以在 Python 3.14t 下成功安装;当兼容性结果得到修复或明确记录后,该 issue 即完成。
由索引模型根据 Issue 内容生成。
描述
~#@❯ uv venv --python 3.14t
Using CPython 3.14.0+freethreaded interpreter at: D:\Users\Sergey\AppData\Local\Python\pythoncore-3.14t-64\python3.14t.exe
Creating virtual environment at: .venv
✔ A virtual environment already exists at `.venv`. Do you want to replace it? · yes
Activate with: .venv\Scripts\activate
~#@❯ uv sync --extra gpu
Resolved 213 packages in 2ms
× Failed to build `pillow-avif-plugin==1.5.2`
├─▶ The build backend returned an error
╰─▶ Call to `setuptools.build_meta.build_wheel` failed (exit code: 1)
[stderr]
Traceback (most recent call last):
File "<string>", line 14, in <module>
requires = get_requires_for_build({})
File "D:\Users\Sergey\AppData\Local\uv\cache\builds-v0\.tmpCh7CGi\Lib\site-packages\setuptools\build_meta.py",
line 331, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Users\Sergey\AppData\Local\uv\cache\builds-v0\.tmpCh7CGi\Lib\site-packages\setuptools\build_meta.py",
line 301, in _get_build_requires
self.run_setup()
~~~~~~~~~~~~~~^^
File "D:\Users\Sergey\AppData\Local\uv\cache\builds-v0\.tmpCh7CGi\Lib\site-packages\setuptools\build_meta.py",
line 317, in run_setup
exec(code, locals())
~~~~^^^^^^^^^^^^^^^^
File "<string>", line 57, in <module>
File "<string>", line 17, in version
AttributeError: 'Constant' object has no attribute 's'
hint: This usually indicates a problem with the package or the build environment.
help: `pillow-avif-plugin` (v1.5.2) was included because `yolofingers` (v0.1.0) depends on `roboflow` (v1.2.11)
which depends on `pillow-avif-plugin`
pyproject.toml
[project]
name = "project"
version = "0.1.0"
requires-python = ">=3.13"
dependencies = [
"notebook~=7.0",
"pycocotools~=2.0",
"roboflow~=1.0",
"torch~=2.0",
"ultralytics~=8.0",
"torchvision~=0.0",
"opencv-python-headless~=4.0",
"plotly~=6.0",
"scikit-learn~=1.0",
"rfdetr~=1.0",
"tensorboard~=2.0",
"albumentations~=2.0",
"lightning~=2.0",
"loguru~=0.7",
"transformers>=4.57.3",
]
[dependency-groups]
dev = [
"pandas-stubs~=2.0",
]
[project.optional-dependencies]
gpu = [
"torch",
"torchvision",
]
cpu = [
"torch",
"torchvision",
]
[tool.uv]
package = false
conflicts = [
[
{ extra = "cpu" },
{ extra = "gpu" },
],
]
[tool.uv.sources]
torch = [
{ index = "torch_cuda", extra = "gpu" },
{ index = "torch_cpu", extra = "cpu" },
]
torchvision = [
{ index = "torch_cuda", extra = "gpu" },
{ index = "torch_cpu", extra = "cpu" },
]
[[tool.uv.index]]
name = "torch_cuda"
url = "https://download.pytorch.org/whl/cu128"
explicit = true
[[tool.uv.index]]
name = "torch_cpu"
url = "https://download.pytorch.org/whl/cpu"
explicit = true
Specs:
Windows 11 25H2
uv 0.9.25
Python 3.14.0t free-threading build
- 主要语言
- Python
- 星标
- 629
- 派生
- 140
- 平均合并
- 2 天 2 小时
- 30 天内合并 PR
- 5
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
roboflow/roboflow-python 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 45/100
roboflow/roboflow-python#505 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 25/100
roboflow/roboflow-python#429 ·
-
难度 3/5 1-2 天 新手友好度 35/100
roboflow/roboflow-python#427 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 35/100
roboflow/roboflow-python#426 ·
-
难度 4/5 3-5 天 新手友好度 25/100
roboflow/roboflow-python#422 ·
查看 roboflow/roboflow-python 的全部 Issue
相似的 Issue
-
agent-ready documentation needs-triage
难度 1/5 1-3 小时 新手友好度 88/100
-
documentation
难度 1/5 1 小时以内 新手友好度 91/100
-
workflow-status page template still says reusable workflows are "triggered only by workflow_call:" 未关闭
难度 1/5 1 小时以内 新手友好度 92/100
-
instance instance add
难度 1/5 1 小时以内 新手友好度 72/100
searxng/searx-instances#939 · 1 条评论 ·
-
area-deployment area-integrations triage:bot-seen
难度 2/5 半天 新手友好度 86/100