ModuleNotFoundError error
まだ誰も着手していません。
評価
調査の方向性
plugin.py と wit/floria-plugins.wit を使ってコマンドを再現し、その後、生成された bindings と wit_world.exports に使用されているインポートパスを調べます。componentize-py が dispatch のインポートを試みる理由を追跡し、コマンドが ModuleNotFoundError なしで完了して dist/plugin.wasm を生成することを確認します。
索引モデルが issue の本文から書いたものです。
説明
I am using this wit file and am trying this simple example (plugin.py):
import wit_world
import wit_world.exports
class Dispatch(wit_world.exports.Dispatch):
def initialize(self, id):
pass
def dispatch(self, name, arguments, call_site):
pass
My command is basically this:
componentize-py \
--wit-path wit/floria-plugins.wit \
componentize \
--stub-wasi \
--python-path plugin \
--output dist/plugin.wasm \
plugin
The error is this:
Traceback (most recent call last):
File "python/bin/componentize-py", line 6, in <module>
sys.exit(script())
~~~~~~^^
AssertionError: ModuleNotFoundError: No module named 'dispatch'
Caused by:
ModuleNotFoundError: No module named 'dispatch'
I tried generating the bindings and can't find anything that would cause this error. Am I doing something wrong?
- 主要言語
- Rust
- スター
- 284
- フォーク
- 56
- 平均マージ
- 2日 4時間
- マージ済み PR(30日)
- 3
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
bytecodealliance/componentize-py のほかの issue
-
難易度 3/5 半日 初心者へのやさしさ 40/100
bytecodealliance/componentize-py#259 · コメント 1 件 ·
-
wasm32-wasip3 target uses WASI preview 2 bindings対応中かも @Snowiiii が 6 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 57/100
bytecodealliance/componentize-py#253 · コメント 1 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
bytecodealliance/componentize-py#247 · コメント 12 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
bytecodealliance/componentize-py#185 · コメント 1 件 ·
bytecodealliance/componentize-py の issue をすべて見る
似ている issue
-
[Bug] AM Context Monitor (am-monitor): Session turns count is capped at 80 due to turns.slice(-80)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
lbjlaq/Antigravity-Manager#4180 ·
メンテナーはふだん 1 日以内に返信
-
bug triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
zizmorcore/zizmor#2608 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
longbridge/nsh#4201 ·
メンテナーはふだん 1 日以内に返信