JupyterLite: in-browser install fails (spatialmath-python pulls in pre-commit -> packaging>=26.3)
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start with the in-browser install path: the JupyterLite notebook install cell, which the issue says is where a temporary deps=False workaround would go, and the existing docs/lite/wasm_check/check_pyodide_install.mjs in MVTB as a model for a real-Pyodide check. Reproduce the packaging>=26.3 conflict under Pyodide 0.27.6 before changing anything. Done means the install succeeds in Pyodide, or a Pyodide install check is added to CI and run on a schedule.
由索引模型根据 Issue 内容生成。
描述
Problem
The in-browser ("Try it Now" / JupyterLite) install of roboticstoolbox-python currently fails. Reproduced in real Pyodide 0.27.6 (the version bundled by the pinned jupyterlite-pyodide-kernel==0.6.1):
await micropip.install('roboticstoolbox-python')
ValueError: Requested 'packaging>=26.3', but packaging==24.2 is already installed
RTB's site installs its own wheel from the local index, but its dependencies, including spatialmath-python>=1.1.18, resolve from PyPI and hit the same error. Not verified against the deployed site; there may be a further failure after this one.
Cause
Not a change in this repo. spatialmath-python 1.1.18 lists pre-commit (a dev tool) as a runtime dependency, and pre-commit -> virtualenv 21.14.7 -> packaging>=26.3. Pyodide ships packaging 24.2 and micropip refuses to replace it. It started failing when virtualenv 21.14.7 was published.
Fix
Upstream: rai-opensource/spatialmath-python#250 moves pre-commit to the dev extra. Once a spatialmath release containing it (1.1.19) is out, no change should be needed here; re-test the install to confirm.
If waiting is not acceptable, the notebook install cell can install spatialmath-python with deps=False after installing its real dependencies explicitly (verified to work in Pyodide). MVTB did this as a temporary measure in petercorke/machinevision-toolbox-python#133.
Why CI did not catch it
There is no real-Pyodide install check here. MVTB has one (docs/lite/wasm_check/check_pyodide_install.mjs) and it is what surfaced this. Worth considering the same pattern, plus a scheduled run, because this kind of breakage arrives from PyPI with no commit in the repo.
- 主要语言
- C++
- 星标
- 3.5k
- 派生
- 639
- 平均合并
- 1 天 22 小时
- 30 天内合并 PR
- 73
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
petercorke/robotics-toolbox-python 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
petercorke/robotics-toolbox-python#709 ·
维护者通常 1 天内回复
-
tech-debt
难度 2/5 1 小时以内 新手友好度 25/100
petercorke/robotics-toolbox-python#789 ·
维护者通常 1 天内回复
-
mobile: the occupancy grid should draw the planner background, and planners should agree on units可能已有人在做 @kVinsom 于 1 天前认领。 未关闭tech-debt
难度 4/5 3-5 天 新手友好度 30/100
petercorke/robotics-toolbox-python#785 · 2 条评论 ·
维护者通常 1 天内回复
-
tech-debt
难度 5/5 一周以上 新手友好度 22/100
petercorke/robotics-toolbox-python#773 ·
维护者通常 1 天内回复
-
CI: a PR influx is serialised by 'require up to date' plus a 12 minute CI; consider a merge queue未关闭tech-debt
难度 5/5 一周以上 新手友好度 15/100
petercorke/robotics-toolbox-python#758 ·
维护者通常 1 天内回复
查看 petercorke/robotics-toolbox-python 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 66/100
-
难度 2/5 1-3 小时 新手友好度 62/100
NVIDIA-RTX/NRI#277 ·
维护者通常 1 天内回复
-
os:Linux
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
-
acceptable_buffer_backends: unknown backend names are silently ignored可能已有人在做 @mini-1235 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 70/100
ros2/rmw_fastrtps#945 ·
维护者通常 1 天内回复