Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 500c20ceab711ef33bf7d185354e049fb65211c8716d18f84c724f0c3c8c12f9
Ticket: 6b3618ed9363e6038df3efc113093eef9a86323c
can't find package opt 0.1
User & Date: sebres on 2018-08-03 08:26:07
Changes

  1. icomment:
    It looks like you may have a "broken" pkgIndex.tcl (or tclIndex) that avoid correct loading of all expected packages...
    Or just a wrong dependencies or version conflict somewhere in your tcl-library.
    
    Since 8.5 Tcl provides package opt with version >= 0.4. Do you see opt/pkgIndex.tcl somewhere?
    
    What do you see if you evaluate `package require opt` in the tclsh?
    If you get an error, what is the output of `set ::errorInfo`?
    
    The order how the packages are loaded is dependend from `set ::auto_path`, this simple script provides output which they may be (not auto_path can be changed during loading process):
    
    foreach p $::auto_path {
      foreach p [glob -nocomplain -directory $p pkgIndex.tcl */pkgIndex.tcl] {puts $p}
    }
    
    If you've another package with name opt, please remove or rename it (if it's your own).
    Also to find the possible evil-doers search inside tcl-library for "opt 0.1" (maybe even with "-exact" prefixed).
    
  2. login: "sebres"
  3. mimetype: "text/plain"