Skip to content
Tcl Source Code History Of Ticket 1738975
Login

History Of Ticket 1738975

Artifacts Associated With Ticket 1738975

  1. Ticket change [3eb08fe6f9] (rid 121316) by ctasada on 2007-06-18 10:27:40:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      When inside an interp we want to load Tk, we get an error
      
      %interp create "myinterp"
      myterp
      % myinterp eval "package require Tk"
      attempt to provide package Tk 8.5 failed: package Tk 8.5a6 provided instead
      
      It's not a big problem, because I can catch it, but it's annoying.
      
    4. foundin initialized to: "obsolete: 8.5a6"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "ctasada"
    10. subsystem initialized to: "17. Commands I-L"
    11. title initialized to: "interp fails loading Tk"
    12. type initialized to: "Bug"
  2. Ticket change [39984cee31] (rid 112421) by dkf on 2007-06-18 17:42:02:

    1. assignee changed to: "dgp"
    2. subsystem changed to: "39. Package Manager"
  3. Ticket change [44e3fdf990] (rid 116783) by dgp on 2007-06-18 22:01:32:

    1. closedate changed to: "2007-06-18T15:01:32"
    2. closer changed to: "dgp"
    3. icomment:
      Logged In: YES 
      user_id=80530
      Originator: NO
      
      
      I cannot reproduce this with the
      released versions of Tcl/Tk 8.5a6.
      
      The symptom presented indicates
      a bug in Tk's [package ifneeded] command.
      
      A possibility is that you have an out
      of date Tk installed (possibly in addition
      to the one you think you are testing?)
      
      After the error message appears,
      what does
      
      myinterp eval {package verions Tk}
      
      return?
      
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Out of Date"
    7. status changed to: "Pending"
    8. username: "dgp"
  4. Ticket change [5ff12490b7] (rid 115906) by ctasada on 2007-06-18 22:09:00:

    1. icomment:
      Logged In: YES 
      user_id=340696
      Originator: YES
      
      % myinterp eval {package versions Tk}
      8.5
      
      I'm running "base-tk-thread-win32-ix86.exe" from ActiveTcl 8.5b7. The exe file ProductVersion sais 8.5a6.
      
      Also, if I run a second time the command, I get:
      % myinterp eval {package require Tk}
      attempt to provide package Tk 8.5 failed: no version of package Tk provided
      
      
      
      
    2. login: "ctasada"
    3. mimetype: "text/plain"
    4. status changed to: "Open"
    5. username: "ctasada"
  5. Ticket change [a3e4300776] (rid 110117) by dgp on 2007-06-18 22:19:58:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: NO
      
      
      um, the ActiveTcl distibutions don't
      precisely match any release of Tcl.
      They're development snapshot releases.
      It's likely they're based on a state
      of development before the real 8.5a6
      release.
      Is there a newer one you can upgrade
      to that might clear the problem?
      
      That said, it's still surprising that
      Tcl and Tk would not work together
      because the snapshots are taken at the
      same time, I think.
      
      Continuing the analysis, what does
      
      myinterp eval {package ifneeded Tk 8.5}
      
      return?
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  6. Ticket change [dc482598f4] (rid 114451) by ctasada on 2007-06-18 22:25:36:

    1. icomment:
      Logged In: YES 
      user_id=340696
      Originator: YES
      
      % myinterp eval {package ifneeded Tk 8.5}
      
      if [catch {load "" Tk}] {load C:/fw4_dev/make/buildexe/base-tk-thread-win32-ix86.exe/lib/tk8.5/libtk8.5.so Tk}
      
      And reading the C:/fw4_dev/make/buildexe/base-tk-thread-win32-ix86.exe/lib/tk8.5/pkgIndex.tcl I get:
      package ifneeded Tk 8.5 [format {
      if [catch {load "" Tk}] {load %s Tk}
          } [list [file join $dir libtk8.5.so]]]
      
      By the way, I'm running in Windows XP.
      
      That really looks weird.
      
      
    2. login: "ctasada"
    3. mimetype: "text/plain"
    4. username: "ctasada"
  7. Ticket change [6f761a2530] (rid 100323) by dgp on 2007-06-18 22:30:42:

    1. closedate changed to: "2007-06-18T15:30:42"
    2. closer changed to: "dgp"
    3. icomment:
      Logged In: YES 
      user_id=80530
      Originator: NO
      
      
      Ok, we've tracked down the bug then.
      In that [package ifneeded] command,
      the first argument needs to be 8.5a6,
      and not 8.5.
      
      Tk's own index script doesn't look
      like that.
      
      This incorrect code appears to be
      in some extra interface code that's
      part of the Tk basekit, so the bug should
      be reported to its developers.
      
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Invalid"
    7. status changed to: "Closed"
    8. subsystem changed to: "None"
    9. username: "dgp"
  8. Ticket change [8b8884a181] (rid 127584) by ctasada on 2007-06-18 22:37:22:

    1. icomment:
      Logged In: YES 
      user_id=340696
      Originator: YES
      
      I'll, thanks.
      
      
    2. login: "ctasada"
    3. mimetype: "text/plain"
    4. username: "ctasada"
  9. Ticket change [d60688fc8b] (rid 123735) by andreas_kupries on 2007-06-19 04:01:41:

    1. icomment:
      Logged In: YES 
      user_id=75003
      Originator: NO
      
      Note: On Windows Tk is linked statically into the AS base-tk kit. The pkgIndex.tcl is quite bogus, true, it also not used.
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  10. Ticket change [28760d5bed] (rid 88702) by nobody on 2007-06-19 04:20:43:

    1. icomment:
      Logged In: NO 
      
      
      It appears to still be used
      when [package require Tk] is
      in a slave interp.
      
      If that's not how it's supposed
      to work, then how is the
      [package ifneeded] command for
      Tk supposed to run in the slave
      interp?
      
      
      
    2. login: "nobody"
    3. mimetype: "text/plain"
    4. username: "nobody"
  11. Ticket change [641042bd6a] (rid 92687) by dgp on 2007-06-19 04:26:53:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: NO
      
      
      another thing to consider is
      that even if Tk is provided
      statically, or if a correct
      initial [package ifneeded]
      command is put into place
      referring to the static Tk
      in the application, if the
      broken pkgIndex.tcl remains
      somewhere on the auto_path,
      then it's available for
      [source]-ing, and once its
      [source]d any later 
      [package require Tk] will
      fail due.  If no other failure
      case is evident, consider what
      might happen after a [package forget].
      
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"