Problem with update to FHEM 6.2

Begonnen von HarryT, 04 Februar 2023, 14:32:44

Vorheriges Thema - Nächstes Thema

HarryT

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}

FHEM 6.3 auf Raspberry Pi3  (1,2 Ghz)
RFXTRX433XL, ZWave, KFL200 and ConBeeIII
Raspberry Pi1 (0,7 Ghz) and Raspberry Pi4 for testing
German reading skills are good.

CoolTux

please install libreadonly-perl package

apt install libreadonly-perl
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

betateilchen

@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?
-----------------------
Formuliere die Aufgabe möglichst einfach und
setze die Lösung richtig um - dann wird es auch funktionieren.
-----------------------
Lesen gefährdet die Unwissenheit!

CoolTux

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
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

betateilchen

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.
-----------------------
Formuliere die Aufgabe möglichst einfach und
setze die Lösung richtig um - dann wird es auch funktionieren.
-----------------------
Lesen gefährdet die Unwissenheit!

HarryT


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}
FHEM 6.3 auf Raspberry Pi3  (1,2 Ghz)
RFXTRX433XL, ZWave, KFL200 and ConBeeIII
Raspberry Pi1 (0,7 Ghz) and Raspberry Pi4 for testing
German reading skills are good.

betateilchen

-----------------------
Formuliere die Aufgabe möglichst einfach und
setze die Lösung richtig um - dann wird es auch funktionieren.
-----------------------
Lesen gefährdet die Unwissenheit!

Wernieman

Wobei ich es genau so blöd finde, wenn (wie in vielen Modulen) pauschal  nur die CPAN-Lösung angegeben wird ...
- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html

CoolTux

3 Ärzte 4 Diagnosen. Egal wie man es macht ...
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

betateilchen

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.
-----------------------
Formuliere die Aufgabe möglichst einfach und
setze die Lösung richtig um - dann wird es auch funktionieren.
-----------------------
Lesen gefährdet die Unwissenheit!