JupyterLite bootstrap never uses the bundled wheel: /pypi does not exist in the kernel, so it installs the last PyPI release
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 76/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- jupyter, jupyter-notebook, python
- Ambito
- build-system, tooling
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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).
- Lingua principale
- Python
- Stelle
- 224
- Fork
- 31
- Merge medio
- 1g 22h
- PR unite (30g)
- 29
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di petercorke/machinevision-toolbox-python
-
tech-debt
Difficoltà 4/5 3-5 giorni Idoneità per principianti 39/100
petercorke/machinevision-toolbox-python#159 ·
I maintainer di solito rispondono entro 1 giorno
-
Image.draw_* fail on images from Image.Read: pixel data is not C-contiguous (cv2 line/circle/putText layout error)Forse già presa @petercorke l’ha presa oggi. Apertabug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
petercorke/machinevision-toolbox-python#158 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 42/100
petercorke/machinevision-toolbox-python#157 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
petercorke/machinevision-toolbox-python#152 ·
I maintainer di solito rispondono entro 1 giorno
-
ROSBag: RealSense bags have a 4-byte depth-units trailer that is guessed, not parsedForse già presa @theluckystrike l’ha presa 4 giorni fa. Apertabug help wanted
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
petercorke/machinevision-toolbox-python#151 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di petercorke/machinevision-toolbox-python
Issue simili
-
bug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
yunaremaia/proto-drift#22 ·
-
bug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
yunaremaia/memwatch#96 ·
-
bug good first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 91/100
yunaremaia/ci-gate-watch#34 ·
-
bug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
yunaremaia/agent-capability-attestation#64 ·
I maintainer di solito rispondono entro 1 giorno
-
bug good first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 86/100
yunaremaia/agent-call-graph#43 ·
I maintainer di solito rispondono entro 1 giorno