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?
I am using this wit file and am trying this simple example (
plugin.py):My command is basically this:
componentize-py \ --wit-path wit/floria-plugins.wit \ componentize \ --stub-wasi \ --python-path plugin \ --output dist/plugin.wasm \ pluginThe error is this:
I tried generating the bindings and can't find anything that would cause this error. Am I doing something wrong?