FHEM Forum

FHEM => Sonstiges => Thema gestartet von: HarryT am 04 Februar 2023, 14:32:44

Titel: Problem with update to FHEM 6.2
Beitrag von: HarryT am 04 Februar 2023, 14:32:44
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}

Titel: Antw:Problem with update to FHEM 6.2
Beitrag von: CoolTux am 04 Februar 2023, 15:34:35
please install libreadonly-perl package

apt install libreadonly-perl
Titel: Antw:Problem with update to FHEM 6.2
Beitrag 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?
Titel: Antw:Problem with update to FHEM 6.2
Beitrag von: CoolTux am 04 Februar 2023, 16:09:59
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
Titel: Antw:Problem with update to FHEM 6.2
Beitrag von: betateilchen am 05 Februar 2023, 10:50:58
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.
Titel: Antw:Problem with update to FHEM 6.2
Beitrag von: HarryT am 05 Februar 2023, 16:45:52

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}
Titel: Antw:Problem with update to FHEM 6.2
Beitrag von: betateilchen am 05 Februar 2023, 16:50:28
Zitat von: HarryT am 05 Februar 2023, 16:45:52
Besides I solved it with:

cpan
   install  Readonly.pm

@CoolTux: q.e.d.  8)
Titel: Antw:Problem with update to FHEM 6.2
Beitrag von: Wernieman am 06 Februar 2023, 13:37:36
Wobei ich es genau so blöd finde, wenn (wie in vielen Modulen) pauschal  nur die CPAN-Lösung angegeben wird ...
Titel: Antw:Problem with update to FHEM 6.2
Beitrag von: CoolTux am 06 Februar 2023, 14:17:49
3 Ärzte 4 Diagnosen. Egal wie man es macht ...
Titel: Antw:Problem with update to FHEM 6.2
Beitrag von: betateilchen am 06 Februar 2023, 18:00:21
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.