Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 3074efeee70e8feeacaa061f93d6eb2aa1adac415e2b3e63a27cc0ac053f2eb2
Ticket: 6fbabfe1661c22e7990bb917e9fa49cc16e016ea
Tkinter: Cannot find a usable init.tcl with recent core-9-0-branch
User & Date: chrstphrchvz on 2025-09-30 23:21:35
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    Using macOS 15 Intel and Python 3.15.0a0 (recent CPython main branch). I am trying to create a Tcl interpreter from Tkinter (without loading Tk):
    
    <pre>
    import tkinter
    i = tkinter.Tcl()
    </pre>
    
    The most recent check-in on core-9-0-branch I am aware which works is [201dd6fe].
    
    Between [0433b67a] and [c658915b], an assertion fails (the same one described in bug [f0b80a3d]).
    
    Between [c6b85e5e] and present ([d23568f2]), <tt>Tcl_Init()</tt> emits an error about not finding <tt>init.tcl</tt>:
    
    <pre>
    Traceback (most recent call last):
      File "&lt;stdin&gt;", line 1, in &lt;module&gt;
        i = tkinter.Tcl()
      File "/Volumes/Ventura/Users/user/git/cpython/Lib/tkinter/__init__.py", line 2592, in Tcl
        return Tk(screenName, baseName, className, useTk)
      File "/Volumes/Ventura/Users/user/git/cpython/Lib/tkinter/__init__.py", line 2479, in __init__
        self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
                  ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    _tkinter.TclError: Cannot find a usable init.tcl in the following directories: 
        /Users/user/tcl90sdk26/lib/tcl9.0 /Volumes/Ventura/Users/user/git/lib/tcl9.0 /Volumes/Ventura/Users/user/lib/tcl9.0 /Volumes/Ventura/Users/user/git/library /Volumes/Ventura/Users/user/library /Volumes/Ventura/Users/user/tcl9.0/library /Volumes/Ventura/Users/user/tcl9.0.3/library /Volumes/Ventura/Users/tcl9.0.3/library
    
    
    
    This probably means that Tcl wasn't installed properly.
    </pre>
    
  5. foundin changed to: "core-9-0-branch"
  6. is_private changed to: "0"
  7. login: "chrstphrchvz"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "6133eb3026f9b10aa9b7b48da92ae2834fc225b0"
  10. resolution changed to: "None"
  11. severity changed to: "Important"
  12. status changed to: "Open"
  13. submitter changed to: "chrstphrchvz"
  14. subsystem changed to: "38. Init - Library - Autoload"
  15. title changed to:
    Tkinter: Cannot find a usable init.tcl with recent core-9-0-branch
    
  16. type changed to: "Bug"