Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

JupyterLite bootstrap never uses the bundled wheel: /pypi does not exist in the kernel, so it installs the last PyPI release

Offen
#160 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
76/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
jupyter, jupyter-notebook, python

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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).

Vorherrschende Sprache
Python
Sterne
224
Forks
35
Ø Merge
1 T. 22 Std.
Gemergte PRs (30 T.)
29

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus petercorke/machinevision-toolbox-python

Alle Issues in petercorke/machinevision-toolbox-python

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.