From: Helmut Giese on
Hi Larry
>I wonder if the problem was being in Tcl's bin directory - you
>indicated in your original (well followup) message:
as stated in my own follow-up the problem disappeared - while nothing
in the setup was changed.

>> depends on one extension present in the same directory and which gets
>> loaded like
> lappend auto_path .
> package require Hrt
>
>Notice that you add . rather than a directory name, to auto_path, then
>do a package require.
Yeah, I do that all the time - works just fine.

>Alas, I don't have access to a Windows machine where I can test out
>these theories.
Thanks, but since it works the issue is closed for me.
Best regards
Helmut Giese
From: Helmut Giese on
Hi Harald,
thanks for your input, but
>> > The script in question is a small Tcl-only (no GUI) script which only
no widgets or class names or whatever involved.
Anyway, since it works now I'm happy.
Best regards
Helmut Giese
From: relaxmike on
The answer about this strange "package require teapot" is here :
http://bugs.activestate.com/show_bug.cgi?id=70842

It was a bug in the ActiveState 8.4.14 Tcl distribution :

"Use 'info library' to determine the location of Tcl's core script
library.
Open the file 'init.tcl' in that directory in the editor of your
choice.
Look for the command 'catch {package require __teapot__}' (CP).
This is near the bottom of the file.
Insert the command 'unset errorInfo' immediately after the 'catch'.
While the CP command is necessary to refresh some Tcl internals after
our manipulation just before the 'errorInfo' variable is still filled
with the error message from the caught command.
Unsetting it brings Tcl back into the regular pristine state before
starting the chosen script.
For future distributions we have managed to code this teapot setup
sequence to not require this type of refresh."

From: Helmut Giese on
On Thu, 08 Nov 2007 13:11:47 -0000, relaxmike
<michael.baudin(a)gmail.com> wrote:

>The answer about this strange "package require teapot" is here :
>http://bugs.activestate.com/show_bug.cgi?id=70842
>
>It was a bug in the ActiveState 8.4.14 Tcl distribution :
>
>"Use 'info library' to determine the location of Tcl's core script
>library.
>Open the file 'init.tcl' in that directory in the editor of your
>choice.
>Look for the command 'catch {package require __teapot__}' (CP).
>This is near the bottom of the file.
>Insert the command 'unset errorInfo' immediately after the 'catch'.
>While the CP command is necessary to refresh some Tcl internals after
>our manipulation just before the 'errorInfo' variable is still filled
>with the error message from the caught command.
>Unsetting it brings Tcl back into the regular pristine state before
>starting the chosen script.
>For future distributions we have managed to code this teapot setup
>sequence to not require this type of refresh."
Thanks for the follow-up.
Maybe we should just upgrade to the current version.
Best regards
Helmut Giese