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.

Cannot load XML on startup

General support and discussion of Eggdrop bots.
Post Reply
j
julesdw
Voice
Posts: 2
Joined: Thu Jul 13, 2006 8:35 am

Cannot load XML on startup

Post by julesdw »

OK, I have a problem trying to load the TCLXML scripts when starting my (windrop) bot. I want to load the Babelfish SOAP client as a test before I write my own SOAP client.

When I run the following from the eggdrop.conf

source lib/tcl8.4/Tclxml2.6/xml__tcl.tcl
source lib/tcl8.4/tcldom2.6/domimpl.tcl
source lib/tcl8.4/tcldom2.6/dom.tcl

source lib/tcl8.4/http2.5/http.tcl
source lib/tcl8.4/tclsoap1.6.7/utils.tcl
source lib/tcl8.4/tclsoap1.6.7/rpcvar.tcl
source lib/tcl8.4/tclsoap1.6.7/soap.tcl
source lib/tcl8.4/tclsoap1.6.7/http.tcl
source lib/tcl8.4/tclsoap1.6.7/soap.tcl
source lib/tcl8.4/tclsoap1.6.7/samples/babelfish.tcl

I get:

[14:37] Tcl error in file 'eggdrop.conf':
[14:37] can't find package xml 2.6
while executing
"package require xml 2.6"
(file "lib/tcl8.4/tcldom2.6/domimpl.tcl" line 24)
invoked from within
"source lib/tcl8.4/tcldom2.6/domimpl.tcl"
(file "eggdrop.conf" line 1374)
[14:37] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)

If I run:
source C:/Windrop/lib/tcl8.4/Tclxml2.6/xml__tcl.tcl
source C:/Windrop/lib/tcl8.4/tcldom2.6/domimpl.tcl
source C:/Windrop/lib/tcl8.4/tcldom2.6/dom.tcl

source C:/Windrop/lib/tcl8.4/http2.5/http.tcl
source C:/Windrop/lib/tcl8.4/tclsoap1.6.7/utils.tcl
source C:/Windrop/lib/tcl8.4/tclsoap1.6.7/rpcvar.tcl
source C:/Windrop/lib/tcl8.4/tclsoap1.6.7/soap.tcl
source C:/Windrop/lib/tcl8.4/tclsoap1.6.7/http.tcl
source C:/Windrop/lib/tcl8.4/tclsoap1.6.7/soap.tcl
source C:/Windrop/lib/tcl8.4/tclsoap1.6.7/samples/babelfish.tcl

from the TCL 8.4 installation (activestate) I have using tclsh (using the command tclsh c:\script.tcl en_nl "good morning") it works!

It does not matter which version of the XML package I choose it still does the same. I've also tried using the "lappend auto_path" command to the eggdrop.conf but this also does not help e.g.

lappend auto_path C:/Windrop/lib/tcl8.4/Tclxml2.6

Any ideas?

Jules...
Post Reply