bytecodealliance / bytecodealliance/componentize-py

ModuleNotFoundError error

Aperta
#217 6 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Rust
Stelle
277
Fork
51
Merge medio
12h 10m
PR unite (30g)
10

Descrizione

I am using [this wit file](https://codeberg.org/tliron/floria/src/branch/main/library/assets/wit/floria-plugins.wit) and am trying this simple example (`plugin.py`):

```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:

```sh
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
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?

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.