For Programmers: Free Programming Magazines  


Home > Archive > Tcl > December 2007 > Snack in Teapot









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Snack in Teapot
Alexandre Ferrieux

2007-12-29, 7:17 pm

Hi,

I've just grabbed Snack with teacup (no error).
But when I [package require] it:

invalid command name "load c:/tcl/teapot/package/win32-ix86/lib/
snack-2.2/libsnack.dll"

This must be an FAQ...
Any other similar cases ?
Any workaround ?

-Alex
Jeff Hobbs

2007-12-29, 7:17 pm

On Dec 29, 10:16 am, Alexandre Ferrieux <alexandre.ferri...@gmail.com>
wrote:
> I've just grabbed Snack with teacup (no error).
> But when I [package require] it:
>
> invalid command name "load c:/tcl/teapot/package/win32-ix86/lib/
> snack-2.2/libsnack.dll"
>
> This must be an FAQ...
> Any other similar cases ?
> Any workaround ?


Something is certainly wrong with the packaging there. What does
[package ifneeded snack 2.2] return?

Jeff
Alexandre Ferrieux

2007-12-30, 7:22 pm

On Dec 29, 9:56=A0pm, Jeff Hobbs <jeff.ho...@gmail.com> wrote:
> On Dec 29, 10:16 am, Alexandre Ferrieux <alexandre.ferri...@gmail.com>
> wrote:
>
>
>
>
> Something is certainly wrong with the packaging there. =A0What does
> [package ifneeded snack 2.2] return?


It says:

# ACTIVESTATE TEAPOT-PKG BEGIN REQUIREMENTS

package require Tcl 8.4
package require Tk 8.4

# ACTIVESTATE TEAPOT-PKG END REQUIREMENTS

set dir {c:/tcl/teapot/package/win32-ix86/lib/snack-2.2}
[list load [file join $dir libsnack.dll]];[list source [file
join $dir snack.tcl]]

# ACTIVESTATE TEAPOT-PKG BEGIN DECLARE

package provide snack 2.2

# ACTIVESTATE TEAPOT-PKG END DECLARE

-Alex
Alexandre Ferrieux

2007-12-30, 7:22 pm

On Dec 30, 11:58=A0pm, Alexandre Ferrieux <alexandre.ferri...@gmail.com>
wrote:
> =A0 =A0 =A0 =A0 [list load [file join $dir libsnack.dll]];[list source [fi=

le
> join $dir snack.tcl]]


In case you wonder, yes, I was able to fix it locally ;-)
However I suspect this quirk has been autogenerated by one of the
teapot tools, and that it will be your pleasure to fix it !
I would also have loved to chase other instances in other packages, if
only I knew the proper teacup arguments for "install everything"...

-Alex

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com