This repository was archived by the owner on Jun 20, 2023. It is now read-only.
This repository was archived by the owner on Jun 20, 2023. It is now read-only.
No module named '__wbindgen_placeholder__' #2
Closed
Description
On a Linux host, following the instructions for the Python demo, I get the following errors:
$ cd markdown
$ cargo build --target wasm32-unknown-unknown
$ cp target/wasm32-unknown-unknown/debug/markdown.wasm ../python
$ cd ../python
$ python3 run.py
Traceback (most recent call last):
File "run.py", line 7, in <module>
import markdown
File "[...]/.local/lib/python3.6/site-packages/wasmtime/__init__.py", line 42, in exec_module
imported_module = import_module(module_name)
File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named '__wbindgen_placeholder__'
$ wasm2wat markdown.wasm |grep 'import.*wbindgen'
(import "__wbindgen_placeholder__" "__wbindgen_describe" (func $__wbindgen_describe (type 0)))
(import "__wbindgen_placeholder__" "__wbindgen_throw" (func $__wbindgen_throw (type 4)))
(import "__wbindgen_anyref_xform__" "__wbindgen_anyref_table_grow" (func $__wbindgen_anyref_table_grow (type 6)))
(import "__wbindgen_anyref_xform__" "__wbindgen_anyref_table_set_null" (func $__wbindgen_anyref_table_set_null (type 0)))
Metadata
Metadata
Assignees
Labels
No labels