Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7f7ecdb4b246de3fc53b05faa5f2067d46467fb43287327d84f7bd7b26b46b89
Ticket: fd1e6bbe8124b2432e455824c509b595853b5cb5
TkInter crashes on OSX when skimage.io is imported
User & Date: serhiy.storchaka on 2026-09-20 10:52:20
Changes

  1. icomment:
    This is a Tk issue on macOS, not Tcl. TkpInit() creates the shared NSApplication object as an instance of Tk's own subclass TKApplication and then calls its <tt>_setup:</tt> method. When another library has already created the NSApplication object (here something imported by skimage.io, probably matplotlib's macosx backend), NSApp is a plain NSApplication and the call aborts with this exception. Current Tk still works this way.
    
    Tracked in the Tk repository as [https://core.tcl-lang.org/tk/tktview/3033786|3033786] and [https://core.tcl-lang.org/tk/tktview/637e74c1e7|637e74c1e7] (which discusses alternatives to subclassing NSApplication).
    
  2. login: "serhiy.storchaka"
  3. mimetype: "text/x-fossil-wiki"
  4. resolution changed to: "Duplicate"
  5. status changed to: "Closed"