Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b5ec273534de5eb7ff2cc552ba4bba7bac523c8c8f5b376144ceb10eecf2f7d7
Ticket: 6fbabfe1661c22e7990bb917e9fa49cc16e016ea
Tkinter: Cannot find a usable init.tcl with recent core-9-0-branch
User & Date: chrstphrchvz on 2025-10-01 03:20:52
Changes

  1. icomment:
    Ashok, thanks for taking a look at this.
    
    (a) How Tcl is being built (i.e. configure flags)
    
    <pre>
    CFLAGS='-fsanitize=undefined -fsanitize=address' \
    LDFLAGS='-fsanitize=undefined -fsanitize=address' \
    CC='ccache xcrun --sdk /Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk --run clang' \
    CPPFLAGS='-DPURIFY' \
    ./configure \
    --without-system-libtommath \
    --enable-64bit \
    --enable-symbols \
    --prefix=${HOME}/tcl90sdk26 \
    --exec-prefix=${HOME}/tcl90sdk26
    </pre>
    
    (b) A link to the Python C code that initializes the Tcl interpreter
    
    The <tt>Tcl_AppInit()</tt> being used is the one [https://github.com/python/cpython/blob/main/Modules/tkappinit.c] rather than the one in [https://github.com/python/cpython/blob/main/Modules/_tkinter.c]
    
    (c) Confirm that init.tcl indeed does not exist on any of those paths (this is to distinguish non-existence from init.tcl raising an error. Both will show the same error message.
    
    /Volumes/Ventura/Users/user/library does not contain init.tcl. The rest of the directories do not exist.
    
    (d) If you run the tclsh from the installation Python is using, what does "info library" or "set tcl_library" print?
    
    <pre>
    $ ~/tcl90sdk26/bin/tclsh9.0  
    % info library
    //zipfs:/lib/tcl/tcl_library
    % set tcl_library
    //zipfs:/lib/tcl/tcl_library
    </pre>
    
    The tclsh/wish in this Tcl/Tk installation seem to work as expected.
    
  2. login: "chrstphrchvz"
  3. mimetype: "text/x-fossil-wiki"