Forum OpenACS Q&A: problem with acs-mail-lite

Collapse
Posted by Paul Brentano on
Hi,

I am seeing the following in the error log:

[01/Jul/2005:05:21:11][16792.1098082496][-sched:12-] Error: invalid command name "acs_mail_lite::sweeper"
invalid command name "acs_mail_lite::sweeper"
while executing
"acs_mail_lite::sweeper"
("eval" body line 1)
invoked from within
"eval [concat [list $proc] $args]"
(procedure "ad_run_scheduled_proc" line 42)
invoked from within
"ad_run_scheduled_proc {t f 60 acs_mail_lite::sweeper {} 1120159630 0 f}"

I tried to reload the acs_mail_lite package and saw the following error

can't find package mime
while executing
"package require mime"
(file "/var/lib/.../acs-mail-lite/tcl/acs-mail-lite-procs.tcl" line 11)
invoked from within

from tclsh I get the same error

% package require mime
can't find package mime
%

If I do
tclsh% info library
/usr/local/lib/tcl8.5

Should I be seeing a mime library in that directory?

I have openacs 5.1 installed and tcl 8.5 installed

I am new to aolserver, tcl, and openacs so I apologize if my research has been ham-handed

Thanks,
Paul

Collapse
Posted by Paul Brentano on
I realized that tcl 8.5 isn't in the support matrix but I was able comment out the "package require" lines in acs-mail-lite-procs.tcl and it appears that everything is working fine now.
Collapse
Posted by Orzenil Silva Junior on
Paul,

It's a strange behavior and i think it has nothing to do with your installed tcl version.

As far as i know mime package for acs-mail-lite is provided by acs-tcl. Look at file packages/acs-tcl/tcl/mime-procs.tcl. There is an approved TIP (https://openacs.org/forums/message-view?message_id=298282 ) to get rid of all old code in OpenACS that is has better equivalents in TCLlib (e.g: mime-procs) but i think it will be implemented only in future 5.3.

Please try restart your service and look for errors while loading acs-tcl procs. Anyway try install tcllib software (http://tcllib.sourceforge.net)

Collapse
Posted by Paul Brentano on
Thanks Orzenil,

From tclsh I ran

tclsh% source ../packages/acs-tcl/tcl/mime-procs.tcl

There was no error messages but when I tried

tclsh% package names

mime did not show up.

So I installed tcllib and copied mime.tcl over the top of mime-procs.tcl and it seems to work now.

Hopefully this won't cause any additional problems for me in the future.

Thanks again for the tips.

Paul

Collapse
Posted by Malte Sussdorff on
Install TCLLIB with the --prefix="/usr/local/aolserver" and get rid of the base64-procs.tcl and mime-procs.tcl altogether, as they are an old version 😊. Which is (partly) what you did already.
Collapse
Posted by Paul Brentano on
Malte,

That works perfect, thanks.

Paul