Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Exception: version mismatch in the bindings section #3

Closed
whb07 opened this issue Sep 27, 2019 · 5 comments
Closed

Exception: version mismatch in the bindings section #3

whb07 opened this issue Sep 27, 2019 · 5 comments

Comments

@whb07
Copy link

whb07 commented Sep 27, 2019

Running strictly from the example it looks like something in the instantiate function within wasmtime broke.

Traceback (most recent call last):
  File "run.py", line 7, in <module>
    import markdown
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "/private/tmp/wasmtime-demos/python/venv/lib/python3.7/site-packages/wasmtime/__init__.py", line 46, in exec_module
    res = instantiate(data, imports)
Exception: version mismatch in the bindings section: wasm file has `0.5.0` and this library supports `0.4.0`
@jmfrank63
Copy link

@whb07 Ran into the same issue. @tschneidereit did not publish any source code but you can find it at https://wasmtime.dev/. Clone the source and inside the misc/wasmtime-py directory you'll find instructions how to build the python wasmtime module.
Once build you can simply overwrite the .so file in your local installation or add the build/lib/ directory to your PYTHONPATH. Hih.

@zababurinsv
Copy link

I created
lib_wasmtime.cpython-37m-x86_64-linux-gnu.so
How i can add this file in PYTHONPATH ? or where find *.so for overwriting ?

@jmfrank63
Copy link

@zababurinsv It is in your site-packages/wasmtime directory. Which site-packages depends on your platform and if you installed wasmtime as system or user package.
To add it to your PYTHONPATH add the path of the file to an environment variable called PYTHONPATH.

@vladikoff
Copy link
Contributor

Did anyone have luck with the js examples #7 ?

@alexcrichton
Copy link
Member

I'm going to now that we've temporarily removed interface types support, but stay tuned to bytecodealliance/wasmtime#677 for future updates!

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

No branches or pull requests

5 participants