Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when load wasm file #4

Open
csd-rd opened this issue Mar 3, 2021 · 2 comments
Open

Error when load wasm file #4

csd-rd opened this issue Mar 3, 2021 · 2 comments

Comments

@csd-rd
Copy link

csd-rd commented Mar 3, 2021

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

@csd-rd
Copy link
Author

csd-rd commented Mar 3, 2021

Python version : Python 3.8.5 (default, Jul 28 2020, 12:59:40)

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

@csd-rd
Copy link
Author

csd-rd commented Mar 3, 2021

Wasm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant