| View previous topic :: View next topic |
| Author |
Message |
chasingsol Voice
Joined: 17 Jul 2005 Posts: 6
|
Posted: Sun Jul 17, 2005 9:33 pm Post subject: |
|
|
| No, it is not. I get the errors from within eggdrop as stated above. Using BDK's it produces a "can't find package rss" error on eggdrop start, despite it being in the same location. I'm sure I'm missing something, but TclRSS allows eggdrop to start, but the feed script itself is erroring. |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Sun Jul 17, 2005 9:44 pm Post subject: |
|
|
*sigh*
I'm going to great lengths to get this thing used by someone other than myself hehehe
follow these steps:
- go to BDK's rss monitor page and copy the first part of his code, the one that implements rss package (in the first textbox) to a file named rss.tcl
- create a directory named rss in your home directory
- copy rss.tcl to that directory
- fire up tclsh
- in tclsh, type pkg_mkIndex rss
- exit tclsh
- in your eggdrop.conf, add this: lappend auto_path /home/you/rss
- in the config, source my script
- rehash the bot
this should do the job, provided you have TclLib and TclXML installed (or ActiveTcl, which has those bundled in it) |
|
| Back to top |
|
 |
chasingsol Voice
Joined: 17 Jul 2005 Posts: 6
|
Posted: Sun Jul 17, 2005 10:17 pm Post subject: |
|
|
Ok, BDK's now loaded in eggdrop. BDK's is apparently missing a close bracket somewhere, I klugged it and added one to the end otherwise pkg_mkIndex produced an empty file (other than the comments). Also, current version of 'snit' is 1.0, BDK's rss.tcl referenced 0.9. Perhaps there's too many variables in all this?
Getting a different error with eggdrop now...
Tcl error [::news::timer]: invalid command name "Channel"
| Quote: | Currently: invalid command name "Channel"
Currently: while executing
Currently: "Channel %AUTO%"
Currently: (procedure "rss::parse" line 9)
Currently: invoked from within
Currently: "rss::parse [http::data $token]"
Currently: (procedure "retrieve" line 3)
Currently: invoked from within
Currently: "retrieve $feed"
Currently: ("foreach" body line 6)
Currently: invoked from within
Currently: "foreach {chan feed} [array get feeds] {
Currently: set chan [string tolower $chan]
Currently: if {[lsearch -exact [string tolower [channels]] $chan] == -1..."
Currently: invoked from within
Currently: "if [info exists feeds] {
Currently: foreach {chan feed} [array get feeds] {
Currently: set chan [string tolower $chan]
Currently: if {[lsearch -exact [string t..."
Currently: (procedure "::news::timer" line 4)
Currently: invoked from within
Currently: "::news::timer $_time1 $_time2 $_time3 $_time4 $_time5" |
|
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Sun Jul 17, 2005 10:41 pm Post subject: |
|
|
well obviously you are missing something in your Tcl libs, since [Channel] is actually a class (snit package is used to implement this)
I can't advise you further... you might want to experiment with different installations of TclLib and TclXML, standalone or as included in ActiveTcl |
|
| Back to top |
|
 |
johne Voice
Joined: 19 Jul 2005 Posts: 29
|
Posted: Tue Jul 19, 2005 2:27 am Post subject: |
|
|
| well im a n00b in the area of tcl, but i want this script to work as well :/ ive followed everything you mentioned above, but whenever i go to start it, i get a 'can't find package rss' error, im pretty sure i did everything right cause i have a pkgIndex.tcl in my rss folder :/ any help would be greatly appreciated. |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Tue Jul 19, 2005 3:29 am Post subject: |
|
|
| and you have your rss dir lappend-ed to your auto_path as I described above? and TclLib & TclXML installed as well? |
|
| Back to top |
|
 |
johne Voice
Joined: 19 Jul 2005 Posts: 29
|
Posted: Tue Jul 19, 2005 6:20 pm Post subject: |
|
|
well i do not have axs to root, is there a way i can see what versions i have installed...i just started using this linux shell about a week ago im a pretty fast learner, wish i knew about all this tho |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Tue Jul 19, 2005 7:52 pm Post subject: |
|
|
you don't have to be root, read again the step-by-step guide I posted
also, you can install TclLib and TclXML in your home directory (actually, in the lib subdirectory of your home dir)
but since you are so new to Linux, maybe you should start with simpler things first, and forget about that Tcl package install stuff for now |
|
| Back to top |
|
 |
johne Voice
Joined: 19 Jul 2005 Posts: 29
|
Posted: Tue Jul 19, 2005 11:24 pm Post subject: |
|
|
im trying to get in touch with the box owner and see if he has those installed, if theyre both installed, it should work flawlessly right?  |
|
| Back to top |
|
 |
johne Voice
Joined: 19 Jul 2005 Posts: 29
|
Posted: Fri Jul 29, 2005 8:34 pm Post subject: |
|
|
well i couldnt get it to find the package, so i just sourced it in the tcl...but now i get this error
[20:29] Tcl error in file 'pokerrear.conf':
[20:29] couldn't save command result in variable
while executing
"catch {package require cgraph} version"
(file "/usr/lib/tcllib1.6/struct/graph.tcl" line 2)
(file "/usr/lib/tcllib1.6/struct/struct.tcl" line 2)
("package ifneeded" script)
(file "/home/johne/rss/rss.tcl" line 2)
(file "scripts/rssna.tcl" line 2)
(file "pokerrear.conf" line 2)
[20:29] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR) |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Fri Jul 29, 2005 11:48 pm Post subject: |
|
|
that means TclLib's initialization conflicts with eggdrop's version global variable, since [catch] expects version to be a string but finds out that it's a list
solution: upgrade TclLib, you have an ancient version
come on folks, am I the only one managed to install TclLib & TclXML and made this to work?? |
|
| Back to top |
|
 |
johne Voice
Joined: 19 Jul 2005 Posts: 29
|
Posted: Sat Jul 30, 2005 12:39 am Post subject: |
|
|
| heh, im trying my best...im glad your anxious to see this working as much as i am...ill install a new version and get back with you. |
|
| Back to top |
|
 |
mentor Voice
Joined: 30 Jul 2005 Posts: 1
|
Posted: Sat Jul 30, 2005 10:11 am Post subject: |
|
|
Hi!
I followed this discussion recently, and since it looks to be still active i signed up to take part.
I am trying to install this RSS script aswell and i got easily installed tDOM, TclLib and TclXML under Debian using apt-get as root, but still it says that it couldn't find the package once i launch eggdrop.
Do i have to recompile my eggdrop, or how can i tell the bot where to look for the packages?
| Code: | Here's the list of packages i installed:
tclxml_3.0-5.1_i386.deb
tcllib_1.6.1-1_all.deb
tdom_0.7.8-4_i386.deb
|
My Eggdrop version: Eggdrop v1.6.17
TIA, mentor |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Sat Jul 30, 2005 10:58 am Post subject: |
|
|
did you read this?
basically, you need to [lappend] to your auto_path the location of TclLib, TclXML and BDK's package, provided that those have been installed properly, and pkgIndex.tcl file(s) have been created, automatically or otherwise (manually with pkg_mkIndex) |
|
| Back to top |
|
 |
johne Voice
Joined: 19 Jul 2005 Posts: 29
|
Posted: Sat Jul 30, 2005 4:46 pm Post subject: |
|
|
well 1.6.1 is installed, so i guess thats not the problem...hmmmmmmmmm...you can msg me on efnet @ JNE9000 if you want...i would really like to get this solved  |
|
| Back to top |
|
 |
|