Skip to content

componentize-py example from docs doesn't seem to work #295

@womeier

Description

@womeier

The adder example from the docs, doesn't seem to work. What am I doing wrong, or could the documentation be outdated?

I'm using this simple setup, taken from the docs.

Reproduce

build-component:
	componentize-py \
		--wit-path component.wit \
		--world adder \
		componentize \
		app \
		-o add.wasm

fails with

Traceback (most recent call last):
  File "/home/wolfgang/.local/bin/componentize-py", line 8, in <module>
    sys.exit(script())
             ^^^^^^^^
AssertionError: Traceback (most recent call last):
  File "/0/app.py", line 1, in <module>
    import adder
ModuleNotFoundError: No module named 'adder'


Caused by:
    ModuleNotFoundError: No module named 'adder'
make: *** [Makefile:11: build-component] Error 1

Version

componentize-py: 0.17.2

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