bytecodealliance / bytecodealliance/component-docs

Fix Python Tutorial

Offen
#348 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug lang/python
Vorherrschende Sprache
Rust
Sterne
137
Forks
88
Ø Merge
5 T. 12 Std.
Gemergte PRs (30 T.)
4

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.