egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

possible to make eggdrop auto-rehash every x minutes?
Goto page Previous  1, 2, 3, 4  Next
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive
View previous topic :: View next topic  
Author Message
Korigon
Voice


Joined: 02 Aug 2005
Posts: 8

PostPosted: Wed Aug 03, 2005 4:42 pm    Post subject: Reply with quote

[22:36] couldn't save command result in variable
while executing
"catch {package require cgraph} version"
(file "/usr/local/lib/tcllib1.7/struct/graph.tcl" line 2)
("package ifneeded" script)
(file "/usr/local/lib/tcllib1.7/struct/struct.tcl" line 2)
("package ifneeded" script)
(file "/usr/local/lib/tcl8.4/rss/rss.tcl" line 2)
("package ifneeded" script)
(file "scripts/site-rss.tcl" line 2)
(file "botdestest" line 2)

Same pb with your script Demond

tcl-8.4.11
tcllib-1.7_1
tclxml-2.6
eggdrop v1.6.18+nat-ip-docs (Wed Aug 3 2005)

All stuff there has been done.
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Wed Aug 03, 2005 5:05 pm    Post subject: Reply with quote

the problem is not with my script but with your TclLib, read my posting above about that; if you run latest TclLib, try to fix its init routine not to use the global variable version
Back to top
View user's profile Send private message Visit poster's website
johne
Voice


Joined: 19 Jul 2005
Posts: 29

PostPosted: Thu Aug 04, 2005 3:27 pm    Post subject: Reply with quote

Korigon if you get it working let me know, im completely lost at what else i can do.
Back to top
View user's profile Send private message
JoshuaUK
Voice


Joined: 07 Aug 2005
Posts: 24

PostPosted: Sun Aug 07, 2005 11:47 am    Post subject: Reply with quote

ok I am new to all this and I am running Windrop (eggdrop) I am wondering if it will be possible to run this script ok? I am a little confused about how it is configured and where I enter in the RSS feed URLs etc.. and refresh times. Perhaps I need more help, I will see if I can get it to work, tried that other RSS feed .tcl which I don't seem to be getting on with it doesn't seem to be updating and displaying the latest headlines.
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sun Aug 07, 2005 11:54 am    Post subject: Reply with quote

Code:

#
# configure it like this:  set feeds(#yourchan) {10 http://slashdot.org/slashdot.rss}
#


#yourchan is the channel you want Slashdot's newslines to show up, 10 is the update frequency in minutes

if you are new to this, you might encounter problems with installing the additional packages needed for this script to work; many supposedly (somewhat) experienced people tried and failed, and it puzzles me why... installing Tcl packages is not rocket science after all
Back to top
View user's profile Send private message Visit poster's website
JoshuaUK
Voice


Joined: 07 Aug 2005
Posts: 24

PostPosted: Sun Aug 07, 2005 12:02 pm    Post subject: Reply with quote

So.. I have Windrop on Windows yeah, I have made a directory in the Scripts section of the Windrop directory called RSS, in there is rss.tcl... Now not sure what I need to do next.. I can't do the commands I don't think or don't need to do them?

Sorry for being dumb to this, but I am new with it all, and am very keen to learn to get this RSS thing working on my channel Smile

Do I copy the code you pasted into the Scripts directory and run the bot and see if it works?

copied it and made a file in "C:\Windrop\Scripts\rss_announce.tcl"

I get this error on starting eggdrop

[17:08] Tcl error in file 'eggdrop.conf':
[17:08] can't find package struct 2.0
while executing
"package require struct 2.0"
(file "scripts/rss/rss.tcl" line 3)
invoked from within
"source scripts/rss/rss.tcl"
(file "eggdrop.conf" line 1351)
[17:08] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
Back to top
View user's profile Send private message
JoshuaUK
Voice


Joined: 07 Aug 2005
Posts: 24

PostPosted: Sun Aug 07, 2005 12:15 pm    Post subject: Reply with quote

getting trouble with the RSS.tcl it seems Sad
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sun Aug 07, 2005 12:16 pm    Post subject: Reply with quote

you need either to learn about Tcl packages (tcl.tk is a good starting point) and then read carefully my previous postings in this thread, or give up for now and postpone using this script until you are knowledgeable enough to be able to install TclLib/TclXML and BDK's package
Back to top
View user's profile Send private message Visit poster's website
JoshuaUK
Voice


Joined: 07 Aug 2005
Posts: 24

PostPosted: Sun Aug 07, 2005 12:18 pm    Post subject: Reply with quote

I have installed other TCL scripts before, and edited files, it's just I am trying to understand, as to what I do with the code you pasted in here, it is slightly different for me with Windrop I guess.. I don't want to give up
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sun Aug 07, 2005 12:24 pm    Post subject: Reply with quote

well obviously you haven't installed TclLib, otherwise you wouldn't be getting "can't find package struct 2.0" error (by installed I mean not only installed but properly configured - which is normally done by package's installation script - the package(s) needed for this script to work)

if your answer to the question "Do you know what Tcl package (not script!) is and how to install it?" is "No", then you have to give up for now
Back to top
View user's profile Send private message Visit poster's website
JoshuaUK
Voice


Joined: 07 Aug 2005
Posts: 24

PostPosted: Sun Aug 07, 2005 12:37 pm    Post subject: Reply with quote

Sad Well I don't really, which sucks. I am trying to find out about installing suck a package onto Windrop, it isn't quite the same, perhaps I need something like cygwin or something to install the package.. hmm. I'll look into it and see how I go I guess... Might get somewhere with it eventually.
Back to top
View user's profile Send private message
JoshuaUK
Voice


Joined: 07 Aug 2005
Posts: 24

PostPosted: Sun Aug 07, 2005 1:35 pm    Post subject: Reply with quote

could you not make a .zip file or .rar of the directory and how the files should be edited? That may help some people out, so people can have it working and edit the RSS feeds etc.. or is that not possible .
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sun Aug 07, 2005 5:50 pm    Post subject: Reply with quote

which files? there is *ONE* thing that you need to configure, the feeds, and I already explained to you how to do so, although it should be obvious without explanation

as of Tcl package installation, I explained that in my previous postings also, and if you are still unable to grasp it, you should be taking more of your time to RTFM; Cygwin or not, it shouldn't matter, the installation steps are the same
Back to top
View user's profile Send private message Visit poster's website
Korigon
Voice


Joined: 02 Aug 2005
Posts: 8

PostPosted: Tue Aug 09, 2005 10:38 am    Post subject: Reply with quote

demond wrote:
the problem is not with my script but with your TclLib, read my posting above about that; if you run latest TclLib, try to fix its init routine not to use the global variable version


I just edited my /usr/local/lib/tcllib1.7/struct/graph.tcl and commented all version check lines like this :

Code:
#if {                                               
#    ![catch {package require cgraph} version] &&   
#    [package vcompare $version 0.6] > 0             
#} {                                                 
#    # the cgraph package takes over, so we can return
#    namespace eval ::struct {                       
#       namespace import -force graph::*
#    }
#    return
#}


and that loads now but I dont know if it's a good thing, anyway.

With : set feeds(#ty) {10 http://slashdot.org/slashdot.rss} I get Tcl error [::news::timer]: syntaxerror {syntax error: PUBLIC identifier not followed by system literal around line 1}

I missed something?
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Tue Aug 09, 2005 11:43 am    Post subject: Reply with quote

when that Tcl error appears, type .set errorInfo and post the output
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive All times are GMT - 4 Hours
Goto page Previous  1, 2, 3, 4  Next
Page 3 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber