From: Will D. <wi...@wj...> - 2004-07-18 23:18:48
|
John, I've not seen this, but then I'm still on TclTkAqua 8.4.4. WRT Notebook, I'd not done anything fancy to enable "package require Tk" to work in the User Code interpreter (which is a slave interpreter but not a safe interpreter). What I'd do is put some code on your User Code page that outputs the tcl_library path and see if it's different than in a bare wish shell. If it is, you can use the "super" Notebook Command to acquire the value; see the Notebook docs. Will On Jul 18, 2004, at 1:35 PM, John Seal wrote: > This didn't get a response on c.l.t so I'm reposting it here. Is this > something that broke between 8.4.5 and 8.4.6 in TclTkAquaBI? > > I've been playing around with Will Duquette's Notebook. Since it's a > starkit, it launches with Wishkit instead of Wish Shell. I had figured > out how to create safe interpreter "sandboxes" running Tk, but sometime > in the last few weeks it quit working, and I don't know why. I didn't > change Notebook (still using the latest "stable" release, 2.0.3). I > reinstalled TclTkAquaBI 8.4.6. > > Take a look at the transcripts below. Note that Wishkit complains when > trying to create a safe interpreter, even though it *does* create it. > Another problem, not shown below, is that I used to be able to say > "package require Tk" on the Notebook "User Code" page, but now it says > it can't find package Tk. I'm racking my brains trying to figure out > what's changed. Any ideas? > > Wishkit: > > () 1 % info nameofexecutable > /Library/Tcl/Wishkit.app/Contents/MacOS/Wishkit > () 2 % info patchlevel > 8.4.6 > () 3 % parray tcl_platform > tcl_platform(byteOrder) = bigEndian > tcl_platform(machine) = Power Macintosh > tcl_platform(os) = Darwin > tcl_platform(osVersion) = 7.4.0 > tcl_platform(platform) = unix > tcl_platform(threaded) = 1 > tcl_platform(user) = john > tcl_platform(wordSize) = 4 > () 4 % safe::interpCreate > can't source init.tcl into slave interp0 (script error) > () 5 % interp slaves {} > interp0 > > Wish Shell: > > () 1 % info nameofexecutable > /Library/Frameworks/Tk.framework/Versions/8.4/Resources/Wish > Shell.app/Contents/MacOS/Wish Shell > () 2 % info patchlevel > 8.4.6 > () 3 % parray tcl_platform > tcl_platform(byteOrder) = bigEndian > tcl_platform(machine) = Power Macintosh > tcl_platform(os) = Darwin > tcl_platform(osVersion) = 7.4.0 > tcl_platform(platform) = unix > tcl_platform(threaded) = 1 > tcl_platform(user) = john > tcl_platform(wordSize) = 4 > () 4 % safe::interpCreate > interp0 > > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click > _______________________________________________ > Tcl-mac mailing list > Tc...@li... > https://lists.sourceforge.net/lists/listinfo/tcl-mac > > ------------------------------------------------------------- will -at- wjduquette.com | Catch our weblog, http://foothills.wjduquette.com | The View from the Foothills |