This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

http 2.3

Old posts that have not been replied to for several years.
Locked
p
plethman

Post by plethman »

i got this error when i tried to run a TCL script. this should be easy to fix for someone who knows what they are doing.

TCL error in file 'PiSO.conf':
can't find package http 2.3
while executing
"package require http 2.3"
(file "scripts/imdb.tcl" line 28)
invoked from within
"source scripts/imdb.tcl"
(file "PiSO.conf" line 114)
[07:24] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)

help
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Your script requires the http package provided with Tcl. This allows it to download web-pages.

The problem here is, that the http package is not available. This usualy occurs when the systems admin removes it, or your using an old version of Tcl.

If you are using Tcl 8.1 or higher, you can download this script.

This is the actual http package. You should save it in the bots script dir, and add this line to the config file.
source scripts/http.tcl
Note: This line should be above the line
source scripts/imdb.tcl
d
dehd

Post by dehd »

i actually had the same problem, but i seen ppslim's post and picked up the http.tcl, and got it into my conf file. the bot IS up and functional.
!imdb does list the help commands. but
!imdb movie does nothing.

any idea's??


d
dehd

Post by dehd »

something i just noticed....
when in the partyline, and a person does
!imdb movie name , comes thru the partyline <hr>
[20:05] Tcl error [imdb_handler]: bad option "equal": must be compare, first, index, last, length, match, range, tolower, toupper, trim, trimleft, trimright, wordend, or wordstart
<hr>
heh. any tcl'ers around :Þ
e
egghead
Master
Posts: 481
Joined: Mon Oct 29, 2001 8:00 pm
Contact:

Post by egghead »

On 2002-03-25 20:18, dehd wrote:
something i just noticed....
when in the partyline, and a person does
!imdb movie name , comes thru the partyline <hr>
[20:05] Tcl error [imdb_handler]: bad option "equal": must be compare,.....
[snip]
<hr>
heh. any tcl'ers around :Þ
It will help if you give a link to the location of the script you are running. The imdb script at http://www.botcentral.net/tclscripts/1_fj.htm
probably is different from the one you are using.
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

The next error you presented is due to an old version of Tcl.

In newer versions, the "string" command, has more built-in sub-functions, equals being one of them.

The only cure is upgrading your Tcl version
Locked