Skip to content

Error when load wasm file  #4

@csd-rd

Description

@csd-rd

Hi Yusuf,

I generate a wasm file using emscripten with option ENVIRONMENT=web
I try to use your solution to run UT, when I load the model, I have this message

None
Traceback (most recent call last):
File "main.py", line 30, in
class Test(WasmiteCase):
File "main.py", line 32, in Test
module = WasiModule(fileWasm)
File "/home/build/.local/lib/python3.8/site-packages/wasmite/globals.py", line 33, in init
self._import_module()
File "/home/build/.local/lib/python3.8/site-packages/wasmite/wasi.py", line 20, in _import_module
self.import_object = wasi_env.generate_import_object(self.store, wasi_version)
TypeError: argument 'wasi_version': 'NoneType' object cannot be interpreted as an integer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions