ModuleNotFoundError when trying to build examples
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- Meio dia
- Facilidade para iniciantes
- 40/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Domínio
- build-system
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- Linguagem predominante
- Rust
- Estrelas
- 284
- Forks
- 56
- Merge médio
- 2d 4h
- PRs com merge (30d)
- 3
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de bytecodealliance/componentize-py
-
wasm32-wasip3 target uses WASI preview 2 bindingsTalvez já em andamento @Snowiiii assumiu há 6 dias. Aberta
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 25/100
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 57/100
bytecodealliance/componentize-py#253 · 1 comentário ·
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 35/100
bytecodealliance/componentize-py#247 · 12 comentários ·
-
ModuleNotFoundError errorAberta
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 68/100
bytecodealliance/componentize-py#217 · 6 comentários ·
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 45/100
bytecodealliance/componentize-py#185 · 1 comentário ·
Todas as issues de bytecodealliance/componentize-py
Issues semelhantes
-
[Bug] AM Context Monitor (am-monitor): Session turns count is capped at 80 due to turns.slice(-80)Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 83/100
lbjlaq/Antigravity-Manager#4180 ·
Mantenedores costumam responder em até 1 dia
-
[BUG]: `unpinned-uses` reports a 64-character commit pin from a SHA-256 repository as unpinnedAbertabug triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
zizmorcore/zizmor#2608 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 79/100
Mantenedores costumam responder em até 1 dia
-
RecompLauncher supportAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 83/100
longbridge/nsh#4201 ·
Mantenedores costumam responder em até 1 dia