- Notifications
You must be signed in to change notification settings - Fork 34
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation
Description
Hi,
I'm trying to figure out how can I use the compiled WASI artifact, I tried the following but it threw me an exception;
$ wasmtime run --env PYTHONPATH=/builddir/wasi/$(cat pybuilddir.txt) --mapdir /::../../ -- python.wasm Could not find platform independent libraries <prefix> Could not find platform dependent libraries <exec_prefix> Python path configuration: PYTHONHOME = (not set) PYTHONPATH = '/builddir/wasi/build/lib.wasi-wasm32-3.11' program name = 'python.wasm' isolated = 0 environment = 1 user site = 1 safe_path = 0 import site = 1 is in build tree = 0 stdlib dir = '/usr/local/lib/python3.11' sys._base_executable = '' sys.base_prefix = '/usr/local' sys.base_exec_prefix = '/usr/local' sys.platlibdir = 'lib' sys.executable = '' sys.prefix = '/usr/local' sys.exec_prefix = '/usr/local' sys.path = [ '/builddir/wasi/build/lib.wasi-wasm32-3.11', '/usr/local/lib/python311.zip', '/usr/local/lib/python3.11', '/usr/local/lib/python3.11/lib-dynload', ] Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding Python runtime state: core initialized ModuleNotFoundError: No module named 'encodings' Current thread 0x00000001 (most recent call first): $ wasmtime run --env PYTHONPATH=/builddir/wasi/$(cat pybuilddir.txt) --mapdir /builddir/wasi/::. -- python.wasm Exception ignored error evaluating path: Traceback (most recent call last): File "<frozen getpath>", line 353, in <module> OSError: [Errno 76] Capabilities insufficient Fatal Python error: error evaluating path Python runtime state: core initialized Current thread 0x00000001 (most recent call first): - I also tried to put the "build" files in the same dir
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation