wasmerio / wasmer-python

🐍🕸 WebAssembly runtime for Python

Home Page:https://wasmer.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Embed packages example on website doesn't work.

HuakunShen opened this issue · comments

Summary

On wasmer's website https://wasmer.io/products/registry, there is a piece of sample code at the bottom

from wasmer import Wasmer
python = Wasmer("python/python")
runner = python.entrypoint.run('-c "print(1+1)"')
print(python.stdout)

If I understand correctly, this is saying we can run python code in python, rust or other languages.
But there are 2 problems,

  1. when I click on other languages, it doesn't show the code in that language, alwasy in python
    image
  2. The sample code doesn't work at all. I installed wasmer with pip on mac and linux, the sample code don't run. Wasmer is not even exported.