Fix Python Tutorial
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 55/100
- issue の種類
- ドキュメント
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- python, wasm
調査の方向性
language-support/building-a-simple-component/python.html の「Running components from Python Applications」セクションから始め、現在のパッケージを使って、記載されている wasmtime.bindgen コマンドを再現してください。参照されている wasmtime-py の issue #309 と #310 を読んでサポート状況を確認し、そのうえで、検証済みのワークフローまたは利用可能性についての明確な注記をチュートリアルに追加し、例がユーザーを誤解させなくなったことを確認してください。
索引モデルが issue の本文から書いたものです。
説明
Hello,
I encountered an issue while following the "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
- 主要言語
- Rust
- スター
- 137
- フォーク
- 88
- 平均マージ
- 10時間 38分
- マージ済み PR(30日)
- 2
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
bytecodealliance/component-docs のほかの issue
-
難易度 2/5 半日 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
bytecodealliance/component-docs#294 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
bytecodealliance/component-docs#376 · コメント 1 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
bytecodealliance/component-docs の issue をすべて見る
似ている issue
-
Browser (wasm) relay client cannot connect to relays whose URL has a trailing-dot FQDN hostname オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
n0-computer/iroh#4550 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
paritytech/zombienet-sdk#591 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
farion1231/cc-switch#7638 · コメント 1 件 ·
-
onnx-ir re-exports ModelProto and GraphProto but not NodeProto, AttributeProto and AttributeType オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100