ModuleNotFoundError when trying to build examples
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- Mezza giornata
- Idoneità per principianti
- 40/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Ambito
- build-system
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Rust
- Stelle
- 284
- Fork
- 56
- Merge medio
- 2g 4h
- PR unite (30g)
- 3
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun 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 bytecodealliance/componentize-py
-
wasm32-wasip3 target uses WASI preview 2 bindingsForse già presa @Snowiiii l’ha presa 6 giorni fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 57/100
bytecodealliance/componentize-py#253 · 1 commento ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
bytecodealliance/componentize-py#247 · 12 commenti ·
-
ModuleNotFoundError errorAperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
bytecodealliance/componentize-py#217 · 6 commenti ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
bytecodealliance/componentize-py#185 · 1 commento ·
Tutte le issue di bytecodealliance/componentize-py
Issue simili
-
[Bug] AM Context Monitor (am-monitor): Session turns count is capped at 80 due to turns.slice(-80)Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
lbjlaq/Antigravity-Manager#4180 ·
I maintainer di solito rispondono entro 1 giorno
-
[BUG]: `unpinned-uses` reports a 64-character commit pin from a SHA-256 repository as unpinnedApertabug triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
zizmorcore/zizmor#2608 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
I maintainer di solito rispondono entro 1 giorno
-
RecompLauncher supportAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
longbridge/nsh#4201 ·
I maintainer di solito rispondono entro 1 giorno