ModuleNotFoundError when trying to build examples
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- Medio día
- Aptitud para principiantes
- 40/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Área
- build-system
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Rust
- Estrellas
- 284
- Forks
- 56
- Merge medio
- 2 d 4 h
- PR fusionados (30 d)
- 3
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de bytecodealliance/componentize-py
-
wasm32-wasip3 target uses WASI preview 2 bindingsPosiblemente ocupada @Snowiiii la tomó hace 6 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
-
Dificultad 3/5 1-2 días Aptitud para principiantes 57/100
bytecodealliance/componentize-py#253 · 1 comentario ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
bytecodealliance/componentize-py#247 · 12 comentarios ·
-
ModuleNotFoundError errorAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
bytecodealliance/componentize-py#217 · 6 comentarios ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
bytecodealliance/componentize-py#185 · 1 comentario ·
Todos los issues de bytecodealliance/componentize-py
Issues similares
-
[Bug] AM Context Monitor (am-monitor): Session turns count is capped at 80 due to turns.slice(-80)Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
lbjlaq/Antigravity-Manager#4180 ·
Los mantenedores suelen responder en 1 día
-
[BUG]: `unpinned-uses` reports a 64-character commit pin from a SHA-256 repository as unpinnedAbiertobug triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
zizmorcore/zizmor#2608 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
Los mantenedores suelen responder en 1 día
-
RecompLauncher supportAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
longbridge/nsh#4201 ·
Los mantenedores suelen responder en 1 día