You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a wasi program, and it output following errors when executed by wasmer-python. But the code with same function using wasmer-go will not output errors.
Traceback (most recent call last):
File "wasmer-py.py", line 22, in <module>
run()
File "wasmer-py.py", line 14, in run
instance.exports._start()
RuntimeError: RuntimeError: WASI exited with code: 0
My Python script:
from wasmer import wasi, Store, ImportObject, Module, Instance
import os
def run():
file = open("B3-1.wasm", "rb").read()
store = Store()
wasi_env = wasi.StateBuilder("B3-1").finalize()
import_object = wasi_env.generate_import_object(store, wasi.Version.LATEST)
instance = Instance(Module(store, file), import_object)
instance.exports._start()
if __name__=="__main__":
run()
If applicable, add a link to a test case (as a zip file or link to a repository we can clone). B3-1.zip
The text was updated successfully, but these errors were encountered:
Describe the bug
I have a wasi program, and it output following errors when executed by wasmer-python. But the code with same function using wasmer-go will not output errors.
My Python script:
If applicable, add a link to a test case (as a zip file or link to a repository we can clone).
B3-1.zip
The text was updated successfully, but these errors were encountered: