readAsync not working with Pyodide's patched CPython
Author: miyukocCreated Aug 5, 2026Updated Aug 6, 2026
Labelsbug
Bug
I am using Pyodide in a web app to provide a terminal UI to a CLI application written in Python. I used to build my own CPython and Pyodide so that I could use PyREPL, and I used readAsync to support asynchronous user input. Now that Pyodide has support for Python 3.14, I upgraded to the latest version, but my application broke because Pyodide drops the fd_read override in a patch: https://github.com/pyodide/pyodide/blob/314.0.4/cpython/patches/0005-Remove-JSPI-related-parts-in-emscripten_syscalls.c.patch
In absence of any other asynchronous input mechanism, the patch should be dropped and the upstream behaviour restored.
Environment
- Pyodide Version: 314.0.4
Source: pyodide/pyodide