JupyterLite bootstrap never uses the bundled wheel: /pypi does not exist in the kernel, so it installs the last PyPI release
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 76/100
- Issue 類型
- 缺陷
- 描述清晰度
- 描述清楚
- 活躍度
- 活躍
- 技術堆疊
- jupyter, jupyter-notebook, python
- 領域
- build-system, tooling
研究方向
Read docs/notebooks/_mvtb_nb_bootstrap.py and compare how it installs the bundled wheel with the old piplite.install behavior described in the issue. Start by checking whether piplite is importable in the JupyterLite kernel, then review docs/lite/wasm_check/check_pyodide_install.mjs to understand what the existing check covers. Done means the bootstrap uses the site's bundled wheel in JupyterLite and still falls back to micropip where piplite is unavailable.
由索引模型根據 Issue 內容生成。
描述
Likely smell, found while testing the same bootstrap in RTB. Worth checking out and fixing.
docs/notebooks/_mvtb_nb_bootstrap.py prefers "the wheel bundled with this JupyterLite site" with Path("/pypi").glob("machinevision_toolbox_python-*.whl"). In a real JupyterLite kernel there is no /pypi folder (checked in Chromium with the same pinned kernel, 0.6.1: Path('/pypi').exists() is False), so that branch never runs and the bootstrap always does micropip.install("machinevision-toolbox-python", deps=False) from PyPI. The site therefore installs the last release, not the wheel built with it, so "Try it Now" does not track main.
The old piplite.install([...]) cells did pick up the bundled wheel, because piplite looks in the site's own package index first (pypi/all.json). Using piplite.install when piplite is importable, and micropip.install otherwise (for example under Node), fixes it.
docs/lite/wasm_check/check_pyodide_install.mjs hides it: it mounts the wheel in Pyodide's filesystem and redirects the pypi/ install, so it tests the new wheel whatever the notebook does. A check that opens a site built with the wheel in a browser and compares a hash of an installed source file with the checkout would catch it. RTB has one in docs/lite/browser_check/ (petercorke/robotics-toolbox-python, in the PR that fixes this there).
- 主要語言
- Python
- 星號
- 224
- 分支
- 35
- 平均合併
- 1 天 20 小時
- 30 天內合併 PR
- 34
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
petercorke/machinevision-toolbox-python 的其他 Issue
-
tech-debt
難度 4/5 3-5 天 新手友好度 39/100
petercorke/machinevision-toolbox-python#159 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 42/100
petercorke/machinevision-toolbox-python#157 ·
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 48/100
petercorke/machinevision-toolbox-python#152 ·
維護者通常 1 天內回覆
-
ROSBag: RealSense bags have a 4-byte depth-units trailer that is guessed, not parsed可能重新可做 關聯的 PR 已關閉且未合併。 未關閉bug help wanted
難度 5/5 一週以上 新手友好度 25/100
petercorke/machinevision-toolbox-python#151 ·
維護者通常 1 天內回覆
-
Sources.py: quick wins, split into a package, and API unification可能已有人在做 @zw1915 於 6 天前認領。 未關閉help wanted tech-debt
難度 5/5 一週以上 新手友好度 25/100
petercorke/machinevision-toolbox-python#150 ·
維護者通常 1 天內回覆
查看 petercorke/machinevision-toolbox-python 的全部 Issue
相似的 Issue
-
difficulty:2 enhancement good first issue
難度 1/5 1-3 小時 新手友好度 92/100
MakazhanAlpamys/Soup#2178 ·
維護者通常 1 天內回覆
-
Slang input: int8_t4_packed and uint8_t4_packed are copied into CrossGL可能已有人在做 @ninglinLiu 今天認領。 未關閉area:frontend backend:slang bug direction:input
難度 2/5 1-3 小時 新手友好度 70/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 85/100
維護者通常 13 天內回覆
-
難度 2/5 1-3 小時 新手友好度 85/100
維護者通常 1 天內回覆
-
bug ci good first issue
難度 2/5 1-3 小時 新手友好度 88/100
維護者通常 1 天內回覆