[PR #2181] leonida_mods gui: on macOS, the missing-Tkinter hint names Homebrew's python-tk@<version> (MODS-GUI-TKINTER-HINT-MACOS) #2185

Open
opened 2026-11-26 21:20:20 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/2181
Author: @Tauwni
Created: 11/26/2026
Status: 🔄 Open

Base: main ← Head: fix/mods-gui-tkinter-hint-macos


📝 Commits (2)

  • 1c06996 leonida_mods gui: on macOS, the missing-Tkinter hint names Homebrew's python-tk@
  • 1df0a2f Merge main into fix/mods-gui-tkinter-hint-macos

📊 Changes

3 files changed (+26 additions, -1 deletions)

View changed files

📝 docs/modding.md (+1 -1)
📝 tests/test_leonida_mods.py (+22 -0)
📝 tools/leonida_mods.py (+3 -0)

📄 Description

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, [email protected], one per Python version. So on a Mac, ./Mods.sh stops with a Linux hint:

ERROR: Tkinter is not installed; install your distribution's Tkinter package (Debian and Ubuntu: sudo apt install python3-tk)

On macOS the hint now names the formula for the Python that's running:

ERROR: Tkinter is not installed; brew install [email protected] (or use the python.org installer)

docs/modding.md says it too. The Windows and Linux hints are unchanged. Mods.sh is 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 [email protected] is enough to make import tkinter work (Tk 9.1). New test_missing_tkinter_names_the_platform_package checks the three hints. tests/test_leonida_mods.py is OK on 3.12 and 3.15, and so are the docs tests.

AI-assisted: yes (Claude Code)

Checklist

  • Based on current main and merges cleanly.
  • One topic.
  • No game data, keys or decryption.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/2181 **Author:** [@Tauwni](https://github.com/Tauwni) **Created:** 11/26/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/mods-gui-tkinter-hint-macos` --- ### 📝 Commits (2) - [`1c06996`](https://github.com/ubiquitarianism/leonida/commit/1c06996a0899d60c2df0d4eb2e5a653db00cb683) leonida_mods gui: on macOS, the missing-Tkinter hint names Homebrew's python-tk@<version> - [`1df0a2f`](https://github.com/ubiquitarianism/leonida/commit/1df0a2f92bce9f5ca9e0cbd698f570d8fc30df13) Merge main into fix/mods-gui-tkinter-hint-macos ### 📊 Changes **3 files changed** (+26 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/modding.md` (+1 -1) 📝 `tests/test_leonida_mods.py` (+22 -0) 📝 `tools/leonida_mods.py` (+3 -0) </details> ### 📄 Description 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, `[email protected]`, one per Python version. So on a Mac, `./Mods.sh` stops with a Linux hint: ``` ERROR: Tkinter is not installed; install your distribution's Tkinter package (Debian and Ubuntu: sudo apt install python3-tk) ``` On macOS the hint now names the formula for the Python that's running: ``` ERROR: Tkinter is not installed; brew install [email protected] (or use the python.org installer) ``` `docs/modding.md` says it too. The Windows and Linux hints are unchanged. `Mods.sh` is 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 [email protected]` is enough to make `import tkinter` work (Tk 9.1). New `test_missing_tkinter_names_the_platform_package` checks the three hints. `tests/test_leonida_mods.py` is OK on 3.12 and 3.15, and so are the docs tests. AI-assisted: yes (Claude Code) ### Checklist - [x] Based on current `main` and merges cleanly. - [x] One topic. - [x] No game data, keys or decryption. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#2185
No description provided.