Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

JupyterLite: in-browser install fails (spatialmath-python pulls in pre-commit -> packaging>=26.3)

未关闭
#742 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
半天
新手友好度
40/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
jupyter, python
领域
ci-cd, web-dev

调研方向

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 内容生成。

描述

bug

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

环境准备

从这里开始

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

petercorke/robotics-toolbox-python 的其他 Issue

查看 petercorke/robotics-toolbox-python 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

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