Hi
I updated to FHEM 6.2 and now see in the logging:
2023.02.04 13:57:18 1: reload: Error:Modul 59_Weather deactivated:
Can't locate Readonly.pm in @INC (you may need to install the Readonly module) (@INC contains: ./lib ./FHEM . /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.32.1 /usr/local/share/perl/5.32.1 /usr/lib/arm-linux-gnueabihf/perl5/5.32 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl-base /usr/lib/arm-linux-gnueabihf/perl/5.32 /usr/share/perl/5.32 /usr/local/lib/site_perl ./FHEM/lib) at lib/FHEM/Core/Weather.pm line 37, <$fh> line 1154.
BEGIN failed--compilation aborted at lib/FHEM/Core/Weather.pm line 37, <$fh> line 1154.
Compilation failed in require at ./FHEM/59_Weather.pm line 35, <$fh> line 1154.
It would be better if this is handled/checked in the update procedure, but anyhow what is the preferred way to solve this on a Raspberry?
Thanks for replies.
{HT}
please install libreadonly-perl package
apt install libreadonly-perl
@CoolTux Why don't you check whether the module is installed and issue a corresponding message, instead of completely preventing the module from loading and leaving the users alone with external error messages?
Zitat von: betateilchen am 04 Februar 2023, 15:41:47
@CoolTux Why don't you check whether the module is installed and issue a corresponding message, instead of completely preventing the module from loading and leaving the users alone with external error messages?
I will fix it one day
Die jetzt eingebauten Meldungen sind zwar nett, aber Du solltest m.E. besser das fehlende perl Modul ausgeben anstatt den Namen eines Debian Paketes. Nicht jeder Anwender arbeitet mit Debian basierten Systemen oder mit apt.
Hi
Thanks for all the feedback. I have seen in the forum that this issue is solved.
https://svn.fhem.de/trac/changeset/27178/trunk
So it will disappear.
Thanks for the quick response.
Besides I solved it with:
cpan
install Readonly.pm
on the raspberry in the console
{HT}
Zitat von: HarryT am 05 Februar 2023, 16:45:52
Besides I solved it with:
cpan
install Readonly.pm
@CoolTux: q.e.d. 8)
Wobei ich es genau so blöd finde, wenn (wie in vielen Modulen) pauschal nur die CPAN-Lösung angegeben wird ...
3 Ärzte 4 Diagnosen. Egal wie man es macht ...
Deshalb war ja mein Vorschlag, direkt den Namen des fehlenden Moduls anzugeben.
Und der ist ja eindeutig, damit kann man auch problemlos das Debian Paket finden, wenn man das sucht.