diff --git a/component-model/src/language-support/python.md b/component-model/src/language-support/python.md index a9a925f..63df7a0 100644 --- a/component-model/src/language-support/python.md +++ b/component-model/src/language-support/python.md @@ -100,7 +100,7 @@ Component built successfully Wasm components can also be invoked from Python applications. This walks through using tooling to call the [`app.wasm` component from the examples](../../examples/example-host/add.wasm). -> `wasmtime-py` does not currently support running components build with `componentize-py`. This is because `wasmtime-py` does not yet support [resources](../design/wit.md#resources), which components built with `componentize-py` always use, since `componentize-py` unconditionally imports most of the `wasi:cli` world. +> `wasmtime-py` is only able to run components built with `componentize-py` when the `--stub-wasi` option is used at build time. This is because `wasmtime-py` does not yet support [resources](../design/wit.md#resources), which components built with `componentize-py` use by default by generating components which import most of the `wasi:cli` world. See [this example](https://github.com/bytecodealliance/componentize-py/tree/main/examples/sandbox) of using the `--stub-wasi` option to generate a `wasmtime-py`-compatible component. First, install [Python 3.11 or later](https://www.python.org/) and [pip](https://pypi.org/project/pip/) if you don't already have them. Then, install [`wasmtime-py`](https://github.com/bytecodealliance/wasmtime-py):