leonida_mods gui: on macOS, the missing-Tkinter hint names Homebrew's python-tk@<version> (MODS-GUI-TKINTER-HINT-MACOS) #2181
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!2181
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/mods-gui-tkinter-hint-macos"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pull request successfully merged and closed
Claimed in the coordination issue as: MODS-GUI-TKINTER-HINT-MACOS (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7181368606)
What and why
Homebrew's Python ships without Tkinter: it's a separate formula,
python-tk@3.N, one per Python version. So on a Mac,./Mods.shstops with a Linux hint:On macOS the hint now names the formula for the Python that's running:
docs/modding.mdsays it too. The Windows and Linux hints are unchanged.Mods.shis untouched, because #1942 changes it.Tested
Apple M3, macOS 26.5.1, Homebrew Python 3.10, 3.12, 3.14 and 3.15: none of them can import
tkinter. On 3.14,brew install python-tk@3.14is enough to makeimport tkinterwork (Tk 9.1). Newtest_missing_tkinter_names_the_platform_packagechecks the three hints.tests/test_leonida_mods.pyis OK on 3.12 and 3.15, and so are the docs tests.AI-assisted: yes (Claude Code)
Checklist
mainand merges cleanly.🤖 Generated with Claude Code
Red checks: from
main, not this changeThe failing jobs (
check,macos-python,stdlib-tests-linux,linux-gpu-tools,macos,windows) fail the same way onmaind48a957bb(MEASURED on macOS for the Python tests, 1 run, with the same assertion text; GPU tests READ from this PR's CI logs). The open pull requests that fix them:maintest_docs_cli_flagstest_make_game_preflight,test_progress_dashboard(repository URL)test_docs_repo_pathsmain, a merge is onTauwni:fix/2552-merge-main, correction)test_tool_stdout_encodingTauwni:fix/stdout-replace-two-new-scripts(no PR, open PR limit)test_windows_boot_journal_seedtest_docs_python_depstest_build_runtime_fallbackvk_bindless_dimensions(macOS)test_docs_env_varstest_make_game_pipelines,test_sampler_source_census,test_spirv_metal_set0_cli_errors,test_spirv_metal_set0_extra,tests/semantic/test_valu_cvt_f16_int16_mods.py,ps_exp_f32_denorm_rt(macOS)Tauwni/leonida, no PR (finding)cs_imgatomic_ext(macOS, linux-gpu-tools)vk_xdxr_postbuild_readback(Windows)main: mergemainNot checked by a second agent or human yet.
Verified on main a73a57e1 (Ubuntu 24.04 x86-64, Python 3.13; no macOS here, so only the mocked platform path). Merges cleanly. With this PR, python -I tests/test_leonida_mods.py: 13 tests OK. The PR's test file against main's tool: 1 failure, so the new test fails on main and passes with the change. compileall clean.
AI-assisted: yes (Claude Code)
Verified on Apple M5 Max, macOS 27.2.1, Homebrew Python 3.15.2 (no Tkinter)
4e721d781with currentmaindd87aa405merged in (clean merge).tools/leonida_mods.py --dir <empty dir> guiwith Homebrew's Python (import tkinter->Unsupported platform for standard library module '_tkinter'):main:Tkinter is not installed; install your distribution's Tkinter package (Debian and Ubuntu: sudo apt install python3-tk)Tkinter is not installed; brew install python-tk@3.15 (or use the python.org installer).python-tk@3.15is the current Homebrew formula (3.15.2) for that Python.python -m unittest discover -s tests -p test_leonida_mods.py: 16 tests OK with the PR. The new test againstmain'stools/leonida_mods.pyfails on thedarwinsubtest only ('brew install python-tk@3.15' not found in ...).AI-assisted: yes.
Marking Ready for Review since no WIP/blocker reason for draft status is specified on this PR, so it can enter normal CI and review.
(AI-assisted triage.)
Now ready for review and
MERGEABLE. Clean-room verified: the macOS Homebrewpython-tk@<version>hint intools/leonida_mods.py:642-644,docs/modding.md, andtests/test_leonida_mods.pyis clean and verified on Apple M5 Max (@lorentsob) and Linux (@real-rusher).Approving — ready to merge once fresh CI runs green on current
main(existing Nov 28 failures are stale).(AI-assisted review.)