fhetty / hm-tools

hm-tools to expand your Homematic-Raspi
22 stars 3 forks source link

Bitte TCL anpassen. #19

Closed heitec11 closed 1 year ago

heitec11 commented 2 years ago

Seit Rapberrymatic Version 3.63.8.20220330 werden keine Mails mehr versendet. Erst ein Deinstallieren von hm-tools hat dieses Problem gelöst. Danke an Jens Maus. Siehe (https://github.com/jens-maus/RaspberryMatic/issues/1824)

string stdout;
string stderr;
system.Exec("/etc/config/addons/email/email 01",&stdout,&stderr);
WriteLine("FEHLER:\n "#stderr);
WriteLine("AUSGABE:\n"#stdout);

FEHLER:

application-specific initialization failed: Can't find a usable init.tcl in the following directories:
/usr/lib/tcl8.6 /lib/tcl8.6 /lib/tcl8.6 /library /library /tcl8.6.9/library /tcl8.6.9/library

/usr/lib/tcl8.6/init.tcl: version conflict for package "Tcl": have 8.6.9, need exactly 8.6.12
version conflict for package "Tcl": have 8.6.9, need exactly 8.6.12
while executing
"package require -exact Tcl 8.6.12"
(file "/usr/lib/tcl8.6/init.tcl" line 19)
invoked from within
"source /usr/lib/tcl8.6/init.tcl"
("uplevel" body line 1)
invoked from within
"uplevel #0 [list source $tclfile]"

This probably means that Tcl wasn't installed properly.

can't find package base64
while executing
"package require base64"
(file "/etc/config/addons/email/email" line 10)

Wo wird die Datei verwendet: find / -iname init.tcl

/www/api/methods/interface/init.tcl
/usr/lib/tcl8.6/init.tcl
/usr/local/addons/hm-tools/lib/tcl8.6/init.tc

Wenn die Datei /usr/lib/tcl8.6/init.tcl angepasst wird auf "package require -exact Tcl 8.6.9" funktionieren die Mails wieder. Allerdings ist dann kein Zugriff auf WebUI meiner RaspberryMatic möglich.

RaspberryMatic 3.63.8.20220330 – Neue Version Beitrag von jmaus » 30.03.2022, 11:35 Auszug: "sei hier vor allem das Update der in der RaspberryMatic WebUI stark verwendeten "tclsh" Skriptsprache von der Version 8.2.3 auf die aktuellste 8.6.12 Version erwähnt. "

fhetty commented 2 years ago

Sorry, das ich mich jetzt erst melde! Habe viel um die Ohren! Soll ich nicht einfach expect aus den HM-Tools rauswerfen? Ich vermute, das expect sowieso nur von mir genutzt wurde, und ich verwende es auch schon länger nicht mehr.

Gruß Frank

fhetty commented 2 years ago

So, habe jetzt expect vorerst entfernt! Somit sollte mail Addon wieder richtig funktionieren.