Artifacts Associated With Ticket 1738975fffffffffffffffffffffffffffffffff
Ticket change [3eb08fe6f9] (rid 121316) by ctasada on 2007-06-18 10:27:40:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- 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.
- foundin initialized to: "obsolete: 8.5a6"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "ctasada"
- subsystem initialized to: "17. Commands I-L"
- title initialized to: "interp fails loading Tk"
- type initialized to: "Bug"
Ticket change [39984cee31] (rid 112421) by dkf on 2007-06-18 17:42:02:
- assignee changed to: "dgp"
- subsystem changed to: "39. Package Manager"
Ticket change [44e3fdf990] (rid 116783) by dgp on 2007-06-18 22:01:32:
- closedate changed to: "2007-06-18T15:01:32"
- closer changed to: "dgp"
- 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? - login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Out of Date"
- status changed to: "Pending"
- username: "dgp"
Ticket change [5ff12490b7] (rid 115906) by ctasada on 2007-06-18 22:09:00:
- 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 - login: "ctasada"
- mimetype: "text/plain"
- status changed to: "Open"
- username: "ctasada"
- icomment:
Ticket change [a3e4300776] (rid 110117) by dgp on 2007-06-18 22:19:58:
- 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? - login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [dc482598f4] (rid 114451) by ctasada on 2007-06-18 22:25:36:
- 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. - login: "ctasada"
- mimetype: "text/plain"
- username: "ctasada"
- icomment:
Ticket change [6f761a2530] (rid 100323) by dgp on 2007-06-18 22:30:42:
- closedate changed to: "2007-06-18T15:30:42"
- closer changed to: "dgp"
- 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.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- status changed to: "Closed"
- subsystem changed to: "None"
- username: "dgp"
Ticket change [8b8884a181] (rid 127584) by ctasada on 2007-06-18 22:37:22:
- icomment:
Logged In: YES user_id=340696 Originator: YES I'll, thanks.
- login: "ctasada"
- mimetype: "text/plain"
- username: "ctasada"
- icomment:
Ticket change [d60688fc8b] (rid 123735) by andreas_kupries on 2007-06-19 04:01:41:
- 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.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [28760d5bed] (rid 88702) by nobody on 2007-06-19 04:20:43:
- 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?
- login: "nobody"
- mimetype: "text/plain"
- username: "nobody"
- icomment:
Ticket change [641042bd6a] (rid 92687) by dgp on 2007-06-19 04:26:53:
- 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].
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment: