Skip to content

Re-pin python-build to 20260719: desktop _pyrepl restored (pydoc/pdb, #236)#237

Merged
FeodorFitsner merged 1 commit into
mainfrom
fix/desktop-pyrepl-236
Jul 19, 2026
Merged

Re-pin python-build to 20260719: desktop _pyrepl restored (pydoc/pdb, #236)#237
FeodorFitsner merged 1 commit into
mainfrom
fix/desktop-pyrepl-236

Conversation

@FeodorFitsner

Copy link
Copy Markdown
Contributor

Problem

Windows/Linux desktop apps built with Python 3.14 crash at startup when the app — or a dependency, e.g. NLTK — imports pydoc:

File ".../Lib/pydoc.py", line 81, in <module>
ModuleNotFoundError: No module named '_pyrepl'

CPython 3.14's pydoc.py (and pdb.py) import _pyrepl at module load, but it was pruned from the desktop stdlib as a dev-only / interactive-REPL module. iOS/macOS/Android already un-pruned it in 4.3.2; desktop was missed.

Fix

Re-pin the bundled python-build snapshot to 20260719, which un-prunes _pyrepl on Windows/Linux (flet-dev/python-build#31). Version tables regenerated from the new manifest (only the release date moved — all runtime versions are unchanged; iOS/macOS/Android runtimes are byte-identical to 20260714).

Folded into the not-yet-released 4.3.4 (no version bump). CHANGELOG entries added to each package.

Fixes #236

…import, #236)

Windows/Linux desktop apps on Python 3.14 crashed at startup with
ModuleNotFoundError: No module named '_pyrepl' when the app or a dependency
(e.g. NLTK) imports pydoc/pdb — 3.14's pydoc/pdb import _pyrepl at module
load, but it was pruned from the desktop stdlib as a dev-only module.

python-build 20260719 un-prunes _pyrepl on Windows/Linux (flet-dev/python-build#31);
iOS/macOS/Android already shipped it (4.3.2), so those runtimes are byte-identical
to 20260714. Folded into the not-yet-released 4.3.4.

Fixes #236
@FeodorFitsner
FeodorFitsner merged commit 59168a8 into main Jul 19, 2026
6 of 56 checks passed
@FeodorFitsner
FeodorFitsner deleted the fix/desktop-pyrepl-236 branch July 19, 2026 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

_pyrepl/pydoc import error in build

1 participant