-
-
Notifications
You must be signed in to change notification settings - Fork 33.9k
Closed as not planned
Closed as not planned
Copy link
Labels
3.14bugs and security fixesbugs and security fixesOS-wasitype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
What works:
$ wget https://github.com/brettcannon/cpython-wasi-build/releases/download/v3.13.11/python-3.13.11-wasi_sdk-24.zip
$ unzip python-3.13.11-wasi_sdk-24.zip
$ cd python-3.13.11-wasi_sdk-24
$ wasmtime --dir . python.wasm
Python 3.13.11 (tags/v3.13.11-dirty:6278944, Dec 5 2025, 20:41:16) [Clang 18.1.2-wasi-sdk (https://github.com/llvm/llvm-project 26a1d6601d727a96f43 on wasi
Type "help", "copyright", "credits" or "license" for more information.
warning: can't use pyrepl: No module named 'termios'
>>>
What doesn't:
$ wget https://github.com/brettcannon/cpython-wasi-build/releases/download/v3.14.1/python-3.14.1-wasi_sdk-24.zip
$ unzip python-3.14.1-wasi_sdk-24.zip
$ cd python-3.14.1-wasi_sdk-24
$ wasmtime --dir . python.wasm
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Fatal Python error: Failed to import encodings module
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'
Current thread 0x012c0ae8 (most recent call first):
<no Python frame>
I saw forum thread on https://discuss.python.org/t/wasi-build-of-3-13-0/66979/2 for a prior version, but it appears something has changed in the interim. Or maybe I'm just using it wrong?
Anyway, I'm filing this here because https://github.com/brettcannon/cpython-wasi-build doesn't have the issue tracker enabled. (So heads up for @brettcannon in case you're also subscribed to the main CPython repository!)
CPython versions tested on:
3.14
Operating systems tested on:
macOS
Metadata
Metadata
Assignees
Labels
3.14bugs and security fixesbugs and security fixesOS-wasitype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error