bytecodealliance / bytecodealliance/component-docs

Fix Python Tutorial

Aperta
#348 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug lang/python
Lingua principale
Rust
Stelle
137
Fork
88
Merge medio
5g 12h
PR unite (30g)
4

Descrizione

Hello,

I encountered an issue while following the ["Running components from Python Applications"](https://component-model.bytecodealliance.org/language-support/building-a-simple-component/python.html#running-components-from-python-applications) section in the documentation.

The documentation currently instructs users to install wasmtime and then run:
`python3 -m wasmtime.bindgen add.wasm --out-dir add`
However, with the current wasmtime package, this fails with:
`No module named wasmtime.bindgen`

It looks like wasmtime.bindgen was removed from wasmtime-py in bytecodealliance/wasmtime-py#310. The PR says that wasmtime.bindgen was removed in favor of component support in the C API, and that reimplementing bindgen for components is deferred to future work in bytecodealliance/wasmtime-py#309.

So I think this section of the documentation may now be outdated.

## Expected behavior
The tutorial should provide a working way to run the add.wasm component from a Python host application, or mention that this workflow is no longer available with current versions of wasmtime-py.

## Actual behavior
The documented command fails because wasmtime.bindgen is no longer available.

## Environment
- Python 3.12.3 via pyenv
- wasmtime: latest version installed by `pip install wasmtime`
- OS: Ubuntu 24.04.1 LTS (Noble Numbat)
- Architecture: x86_64

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia dalla sezione “Running components from Python Applications” in language-support/building-a-simple-component/python.html e riproduci il comando wasmtime.bindgen documentato con il pacchetto corrente. Leggi le issue #309 e #310 di wasmtime-py indicate per stabilire lo stato del supporto, quindi aggiorna il tutorial con un flusso di lavoro verificato o una nota chiara sulla disponibilità e conferma che l’esempio non induca più in errore gli utenti.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
python, wasm
Ambito
documentation
Tipo di issue
Documentazione
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Attiva
Chiarezza
Abbastanza chiara
Idoneità per principianti
55/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.