ModuleNotFoundError when trying to build examples
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- Ein halber Tag
- Anfängerfreundlichkeit
- 40/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Bereich
- build-system
Rechercherichtung
The failure comes from the componentize-py CLI when building examples/cli, where the generated bindings module wit cannot be imported by the app. Start with the README steps and the bindings generation path in the Rust/Python tooling, then reproduce by running the README command from examples/cli. Done means the example builds to cli.wasm without the ModuleNotFoundError, on Windows as well as other platforms.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
I was trying to follow the guidance in README.md to create a simple wasm file, without success. I tried with one of the examples and got the same error so I am thinking there is something wrong apart from me.
- Cloned the this repo (main branch, commit f6710d6d53f91f914e106011c72730f78cbc433a)
- cd to
examples/cli - run
componentize-py -d ../../wit -w wasi:cli/[email protected] componentize app -o cli.wasmas stated in the README
I get
Traceback (most recent call last):
File "<frozen runpy>", line 201, in _run_module_as_main
File "<frozen runpy>", line 87, in _run_code
File "C:\.venv\Scripts\componentize-py.exe\__main__.py", line 5, in <module>
sys.exit(script())
~~~~~~^^
AssertionError: Traceback (most recent call last):
File "/0/app.py", line 1, in <module>
from wit.exports.wasi.cli_v0_2 import run, Run
ModuleNotFoundError: No module named 'wit'
Caused by:
ModuleNotFoundError: No module named 'wit'
- Using windows 11 (x86_64)
- Python 3.15.2
- componentize-py 0.25.1
I am aware that the naming of modules etc. has been changed quite recently.
- Vorherrschende Sprache
- Rust
- Sterne
- 284
- Forks
- 56
- Ø Merge
- 2 T. 4 Std.
- Gemergte PRs (30 T.)
- 3
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus bytecodealliance/componentize-py
-
wasm32-wasip3 target uses WASI preview 2 bindingsEvtl. vergeben @Snowiiii hat das vor 6 Tagen übernommen. Offen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 25/100
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 57/100
bytecodealliance/componentize-py#253 · 1 Kommentar ·
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
bytecodealliance/componentize-py#247 · 12 Kommentare ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 68/100
bytecodealliance/componentize-py#217 · 6 Kommentare ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 45/100
bytecodealliance/componentize-py#185 · 1 Kommentar ·
Alle Issues in bytecodealliance/componentize-py
Ähnliche Issues
-
[Bug] AM Context Monitor (am-monitor): Session turns count is capped at 80 due to turns.slice(-80)Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 83/100
lbjlaq/Antigravity-Manager#4180 ·
Maintainer antworten meist innerhalb von 1 Tag
-
[BUG]: `unpinned-uses` reports a 64-character commit pin from a SHA-256 repository as unpinnedOffenbug triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
zizmorcore/zizmor#2608 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 79/100
Maintainer antworten meist innerhalb von 1 Tag
-
RecompLauncher supportOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 83/100
longbridge/nsh#4201 ·
Maintainer antworten meist innerhalb von 1 Tag