Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: eb830488a3c4fb7e8659f52626df44733bc32ad239f5d930f0828878b6e456a5
Ticket: 4f06d7ca089e8a6d2321cdf59da48be09654013d
package require in secondary interpreters fails for static packages
User & Date: apnadkarni on 2026-05-09 05:20:33
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-markdown"
  4. comment changed to:
    The failure is demonstrated as below (this needs to be a static Tcl shell)
    
    ```
    % info pat
    8.6.18
    % package req registry
    1.3.5
    % interp create ip
    ip
    % ip eval {package require registry}
    can't find package registry
    % ip eval {load {} Registry}
    % exit
    ```
    
    The original report came from @morganw on the chat with the script below that does not print 1 2 3 in a static shell.
    
    ```
    set scriptDir [file dirname [file normalize [info script]]]
    set libDir [file join $scriptDir "lib"]
    lappend auto_path $libDir
    
    package require Thread
    
    set workerThread [thread::create [subst {
        lappend auto_path $libDir
        package require registry
        thread::wait
    }]]
    
    thread::send -async $workerThread { list 1 2 3 } result
    vwait result
    puts $result
    ```
    
  5. foundin changed to: "8.6"
  6. is_private changed to: "0"
  7. login: "apnadkarni"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "9546e9877f1a8899e25a89082561ee694e7fb402"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "apnadkarni"
  14. subsystem changed to: "39. Package Manager"
  15. title changed to:
    package require in secondary interpreters fails for static packages
    
  16. type changed to: "Bug"