<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://community.activestate.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>ActiveState Community Site - can&amp;#039;t find package Expect - Comments</title>
 <link>http://community.activestate.com/forum-topic/cant-find-package-expect</link>
 <description>Comments for &quot;can&#039;t find package Expect&quot;</description>
 <language>en</language>
<item>
 <title>can&#039;t find package Expect</title>
 <link>http://community.activestate.com/forum-topic/cant-find-package-expect</link>
 <description>&lt;p&gt;Greetings.&lt;br /&gt;
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.&lt;/p&gt;
&lt;p&gt;I use tclsh and it works well, but, generating an executable from TclDevKit with the following command:&lt;/p&gt;
&lt;p&gt;    tclapp.exe -prefix C:\Tcl\bin\base-tk-thread-win32-ix86.exe -out myapp.exe C:\Tcl\demos\Expect\mejorcito.tcl&lt;/p&gt;
&lt;p&gt;At the moment I have the following files in C:\Tcl\bin:&lt;/p&gt;
&lt;p&gt;base-tcl-thread-win32-ix86.exe&lt;br /&gt;
base-tk-thread-win32-ix86.exe&lt;/p&gt;
&lt;p&gt;mejorcito.tcl is a script that use expect and below it is the code:&lt;/p&gt;
&lt;p&gt;#!/bin/sh&lt;br /&gt;
# \&lt;br /&gt;
exec tclsh &quot;$0&quot;  ${1+&quot;$@&quot;}&lt;/p&gt;
&lt;p&gt;# This is required to declare that we will use Expect&lt;br /&gt;
package require Expect &lt;/p&gt;
&lt;p&gt;# 1. Open a telnet session&lt;br /&gt;
      spawn telnet 10.0.0.3&lt;/p&gt;
&lt;p&gt;I get the following error message:&lt;/p&gt;
&lt;p&gt;can&#039;t find package Expect while executing &quot;package require Expect&quot; (file &quot;C:/TclDevKit/bin/myapp.exe/lib/application/Tcl/demos/Expect/mejorcito.tcl&quot; line 37) invoked from within &quot;source   $startup&quot; (file &quot;C:/TclDevKit/bin/myapp.exe/main.tcl&quot; line 51)&lt;/p&gt;
&lt;p&gt;Please help my to find a solution&lt;br /&gt;
My email is: &lt;a href=&quot;mailto:bermudezdouglas@hotmail.com&quot;&gt;bermudezdouglas@hotmail.com&lt;/a&gt;&lt;/p&gt;
</description>
 <comments>http://community.activestate.com/forum-topic/cant-find-package-expect#comments</comments>
 <category domain="http://community.activestate.com/forums/tdk-discussion-0">TDK discussion</category>
 <category domain="http://community.activestate.com/os/windows">Windows</category>
 <pubDate>Wed, 26 Mar 2008 13:29:03 -0700</pubDate>
 <dc:creator>edwin</dc:creator>
 <guid isPermaLink="false">2116 at http://community.activestate.com</guid>
</item>
</channel>
</rss>
