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
Hi. I'm trying to use wapm and wasm-bindgen to create js/python bindings for a library i'm writing, and it works in node.js, but when i try to load the bindings in python i get this:
>>>fromspdcalcimportbindings>>>spdc=bindings.spdcalc()
Traceback (mostrecentcalllast):
File"<stdin>", line1, in<module>File"/Users/wellcaffeinated/Documents/github/spdcalc/wasm/py/spdcalc/bindings/__init__.py", line56, inspdcalcassertversionisnotNone, f'"{filename}" is not a valid WASI executable'AssertionError: "spdcalc/spdcalc.wasm"isnotavalidWASIexecutable
My Cargo.toml contains the following meta:
[package.metadata.wapm]
namespace = "wellcaffeinated"# Replace this with your WAPM usernameabi = "wasi"bindings = { wit-bindgen = "0.2.0", wit-exports = "spdcalc.wai" }
What happened?
Hi. I'm trying to use wapm and wasm-bindgen to create js/python bindings for a library i'm writing, and it works in node.js, but when i try to load the bindings in python i get this:
My Cargo.toml contains the following meta:
and I'm using the following commands to build it:
Any help would be appreciated!
Wasmer Pack Version
wasmer-pack-cli 0.7.0
How were you using wasmer-pack?
the command-line
The text was updated successfully, but these errors were encountered: