I try to wrap my TclApp application and TclApp says it can't find a package that I know I have installed. It's in my package search list -- what do I do?
If you're trying to wrap a package in TclApp and it can't find a dependent package that ships with ActiveTcl you have specified, try the following:
.tap file in the package's directory.tap file and ensure that the capitalization in the TclApp definition matches that found in the Package directive of the .tap fileThough the package's filename or directory may not be capitalized, it is what is found in the .tap file that matters for TclApp.
Greetings.
I have installed ActiveTcl 8.4.18.0 and TclDevKit 4.0.4 (trial license), I need to generate a executable of my script tcl.
I use tclsh and it works well, but, generating an executable from TclDevKit with the following command:
tclapp.exe -prefix C:\Tcl\bin\base-tk-thread-win32-ix86.exe -out myapp.exe C:\Tcl\demos\Expect\mejorcito.tcl
At the moment I have the following files in C:\Tcl\bin:
base-tcl-thread-win32-ix86.exe
base-tk-thread-win32-ix86.exe
mejorcito.tcl is a script that use expect and below it is the code:
#!/bin/sh
# \
exec tclsh "$0" ${1+"$@"}
# This is required to declare that we will use Expect
package require Expect
# 1. Open a telnet session
spawn telnet 10.0.0.3
I get the following error message:
can't find package Expect while executing "package require Expect" (file "C:/TclDevKit/bin/myapp.exe/lib/application/Tcl/demos/Expect/mejorcito.tcl" line 37) invoked from within "source $startup" (file "C:/TclDevKit/bin/myapp.exe/main.tcl" line 51)
Please help my to find a solution
My email is: bermudezdouglas@hotmail.com