ModuleNotFoundError when trying to build examples
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- Une demi-journée
- Accessibilité débutants
- 40/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- Active
- Domaine
- build-system
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- Rust
- Étoiles
- 284
- Forks
- 56
- Merge moyen
- 2 j 4 h
- PR mergées (30 j)
- 3
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de bytecodealliance/componentize-py
-
wasm32-wasip3 target uses WASI preview 2 bindingsPeut-être pris @Snowiiii l’a pris il y a 6 jours. Ouverte
Difficulté 4/5 3-5 jours Accessibilité débutants 25/100
-
Difficulté 3/5 1-2 jours Accessibilité débutants 57/100
bytecodealliance/componentize-py#253 · 1 commentaire ·
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
bytecodealliance/componentize-py#247 · 12 commentaires ·
-
ModuleNotFoundError errorOuverte
Difficulté 3/5 1-2 jours Accessibilité débutants 68/100
bytecodealliance/componentize-py#217 · 6 commentaires ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 45/100
bytecodealliance/componentize-py#185 · 1 commentaire ·
Toutes les issues de bytecodealliance/componentize-py
Issues similaires
-
[Bug] AM Context Monitor (am-monitor): Session turns count is capped at 80 due to turns.slice(-80)Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 83/100
lbjlaq/Antigravity-Manager#4180 ·
Les mainteneurs répondent en général sous 1 jour
-
[BUG]: `unpinned-uses` reports a 64-character commit pin from a SHA-256 repository as unpinnedOuvertebug triage
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
zizmorcore/zizmor#2608 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 79/100
Les mainteneurs répondent en général sous 1 jour
-
RecompLauncher supportOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 83/100
longbridge/nsh#4201 ·
Les mainteneurs répondent en général sous 1 jour