-
Notifications
You must be signed in to change notification settings - Fork 66
Closed
Description
Even though having successfully repeated this example to load a component, my observation is that components in form of *.wasm are not loaded but yield the following error instead:
$ python -m load_demo.py
Traceback (most recent call last):
File "/load_demo.py", line 3, in <module>
import demo_component
File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "lib/python3.11/site-packages/wasmtime/loader.py", line 80, in exec_module
exec(component_files[relative_path], module.__dict__)
File "<string>", line 1, in <module>
File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "lib/python3.11/site-packages/wasmtime/loader.py", line 80, in exec_module
exec(component_files[relative_path], module.__dict__)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
KeyError: 'imports.py'- See this public repo with an example that may easily be repeated
- See this post in Zulip as initial discussion.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels