Skip to content

ModuleNotFoundError error #217

Description

@tliron

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions