FHEM Forum

FHEM - Hausautomations-Systeme => Homematic => Thema gestartet von: the ratman am 27 Mai 2016, 08:32:28

Titel: "can not load cul_hm" seit heutigem update ...
Beitrag von: the ratman am 27 Mai 2016, 08:32:28
2016.05.27 08:21:05 1: reload: Error:Modul 10_CUL_HM deactivated:
Global symbol "$dName" requires explicit package name at ./FHEM/10_CUL_HM.pm line 7832, <$fh> line 1547.
Global symbol "$dName" requires explicit package name at ./FHEM/10_CUL_HM.pm line 7832, <$fh> line 1547.
BEGIN not safe after errors--compilation aborted at ./FHEM/10_CUL_HM.pm line 7911, <$fh> line 1547.

2016.05.27 08:21:05 0: Global symbol "$dName" requires explicit package name at ./FHEM/10_CUL_HM.pm line 7832, <$fh> line 1547.
Global symbol "$dName" requires explicit package name at ./FHEM/10_CUL_HM.pm line 7832, <$fh> line 1547.
BEGIN not safe after errors--compilation aborted at ./FHEM/10_CUL_HM.pm line 7911, <$fh> line 1547.

2016.05.27 08:21:05 1: PERL WARNING: Subroutine CUL_HM_Initialize redefined at ./FHEM/10_CUL_HM.pm line 132, <$fh> line 1566.
2016.05.27 08:21:05 1: PERL WARNING: Subroutine CUL_HM_updateConfig redefined at ./FHEM/10_CUL_HM.pm line 212, <$fh> line 1566.
2016.05.27 08:21:05 1: PERL WARNING: Subroutine CUL_HM_Define redefined at ./FHEM/10_CUL_HM.pm line 474, <$fh> line 1566.
2016.05.27 08:21:05 1: PERL WARNING: Subroutine CUL_HM_Undef redefined at ./FHEM/10_CUL_HM.pm line 529, <$fh> line 1566.
2016.05.27 08:21:05 1: PERL WARNING: Subroutine CUL_HM_Rename redefined at ./FHEM/10_CUL_HM.pm line 548, <$fh> line 1566.
2016.05.27 08:21:05 1: PERL WARNING: Subroutine CUL_HM_Attr redefined at ./FHEM/10_CUL_HM.pm line 596, <$fh> line 1566.
2016.05.27 08:21:05 1: PERL WARNING: Subroutine CUL_HM_AttrCheck redefined at ./FHEM/10_CUL_HM.pm line 841, <$fh> line 1566.
2016.05.27 08:21:05 1: PERL WARNING: Subroutine CUL_HM_prtInit redefined at ./FHEM/10_CUL_HM.pm line 859, <$fh> line 1566.
2016.05.27 08:21:05 1: PERL WARNING: Subroutine CUL_HM_hmInitMsg redefined at ./FHEM/10_CUL_HM.pm line 864, <$fh> line 1566.
2016.05.27 08:21:05 1: PERL WARNING: Subroutine CUL_HM_hmInitMsgUpdt redefined at ./FHEM/10_CUL_HM.pm line 901, <$fh> line 1566.
2016.05.27 08:21:05 1: PERL WARNING: Subroutine CUL_HM_Notify redefined at ./FHEM/10_CUL_HM.pm line 928, <$fh> line 1566.
2016.05.27 08:21:05 1: PERL WARNING: Subroutine CUL_HM_setupHMLAN redefined at ./FHEM/10_CUL_HM.pm line 946, <$fh> line 1566.
2016.05.27 08:21:06 1: PERL WARNING: Subroutine CUL_HM_Parse redefined at ./FHEM/10_CUL_HM.pm line 983, <$fh> line 1566.
2016.05.27 08:21:06 1: PERL WARNING: Subroutine CUL_HM_parseCommon redefined at ./FHEM/10_CUL_HM.pm line 2723, <$fh> line 1566.
2016.05.27 08:21:06 1: PERL WARNING: Subroutine CUL_HM_m_setCh redefined at ./FHEM/10_CUL_HM.pm line 3222, <$fh> line 1566.
2016.05.27 08:21:06 1: PERL WARNING: Subroutine CUL_HM_queueUpdtCfg redefined at ./FHEM/10_CUL_HM.pm line 3233, <$fh> line 1566.
...


ein rückspielen des alten cul hm machts wieder gut ...
Titel: Antw:"can not load cul_hm" seit heutigem update ...
Beitrag von: fruit am 27 Mai 2016, 09:23:13
Me too :/
Titel: Antw:"can not load cul_hm" seit heutigem update ...
Beitrag von: Invers am 27 Mai 2016, 09:33:58
Ich auch.
Jemand ohne Fehler?
Titel: Antw:"can not load cul_hm" seit heutigem update ...
Beitrag von: franky08 am 27 Mai 2016, 09:57:59
Nöö, hier der gleiche Fehler.

VG
Frank
Titel: Antw:"can not load cul_hm" seit heutigem update ...
Beitrag von: Eckbert0815 am 27 Mai 2016, 10:07:35
Morgen

habe den Fehler auch.

Schnell wieder das Backup eingespielt und es geht wieder.

Gruss
Titel: Antw:"can not load cul_hm" seit heutigem update ...
Beitrag von: CoolTux am 27 Mai 2016, 10:08:19
Das ist ein allgemeines Problem. Jeder der heute das Update macht wird in den Fehler laufen. Es fehlt in einer Sub eine lokale Variablendeklaration. Habe schon versucht raus zu finden aus was sich der  Wert der Variablen ergibt. Leider ohne Erfolg.

Hierbei handelt es sich aber nur um eine Routine für Repeater. Man kann also oben in der Sub einfach ein my $dName einfügen. Aber bitte bitte nur wer keine Repeater hat.
Titel: Antw:"can not load cul_hm" seit heutigem update ...
Beitrag von: Invers am 27 Mai 2016, 10:11:05
Ein anderer Ausweg ist, das Modul von gestern wieder einzuspielen. Geht auch.
Titel: Antw:"can not load cul_hm" seit heutigem update ...
Beitrag von: CoolTux am 27 Mai 2016, 10:11:41

sub CUL_HM_repReadings($) {   # parse repeater
  my ($hash)=@_;
  my %pCnt;
  my $cnt = 0;
  my $dName = "";                                                                      <---------------     Hier kann man die Variable mit einem leeren Wert als lokale Variable Deklarieren
  return "" if (!$hash->{helper}{peerIDsRaw});
  foreach my$pId(split',',$hash->{helper}{peerIDsRaw}){
    next if (!$pId || $pId eq "00000000");
    $pCnt{$pId.$cnt}{cnt}=$cnt++;
  }
  delete $hash->{repeater} foreach(devspec2array("TYPE=CUL_HM"
                                                .":FILTER=DEF=......"
                                                .":FILTER=repeater=$hash->{NAME}"));
  my @pS;
  my @pD;
  my @pB;
  foreach (split",",(AttrVal($hash->{NAME},"repPeers",undef))){
    my ($s,$d,$b) = split":",$_;
    push @pS,$s;
    push @pD,$d;
    push @pB,$b;
  }
  my @readList;
  push @readList,"repPeer_".sprintf("%02d",$_+1).":undefined" for(0..35);#set default empty
  my @retL;
  my @repAttr;
  push @repAttr," " for(0..35);
  foreach my$pId(sort keys %pCnt){
    my ($pdID,$bdcst,$no) = unpack('A6A2A2',$pId);
    my $fNo = $no-1;#shorthand field number, often used
    my $sName = CUL_HM_id2Name($pdID);
    if ($sName eq $pdID && $pD[$fNo] && $defs{$pD[$fNo]}){
      $sName = $defs{$pD[$fNo]}->{IODev}{NAME}
            if($attr{$defs{$pD[$fNo]}->{IODev}{NAME}}{hmId} eq $pdID);
    }
    my $eS = sprintf("%02d:%-15s %-15s %-3s %-4s",
               $no
              ,$sName
              ,((!$pS[$fNo] || $pS[$fNo] ne $sName)?"unknown":" dst>$pD[$fNo]")
              ,($bdcst eq "01"?"yes":"no ")
              ,($pB[$fNo] && (  ($bdcst eq "01" && $pB[$fNo] eq "y")
                              ||($bdcst eq "00" && $pB[$fNo] eq "n")) ?"ok":"fail")
              );
    $repAttr[$fNo] = "$sName:"
                .((!$pS[$fNo] || $pS[$fNo] ne $sName)?"-":$pD[$fNo])
                .":".($pB[$fNo]?$pB[$fNo]:"-"); 

    $defs{$dName}{repeater} = $hash->{NAME} if ($defs{$dName});

    push @retL,$eS;
    $readList[$fNo]="repPeer_".$eS;
  }
  $attr{$hash->{NAME}}->{repPeers} = join",",@repAttr;
  CUL_HM_UpdtReadBulk($hash,0,@readList);
  return "No Source          Dest            Bcast\n". join"\n", sort @retL;
}
Titel: Antw:"can not load cul_hm" seit heutigem update ...
Beitrag von: CoolTux am 27 Mai 2016, 10:14:07
Zitat von: Invers am 27 Mai 2016, 10:11:05
Ein anderer Ausweg ist, das Modul von gestern wieder einzuspielen. Geht auch.

Das fehlerhafte Modul ist ja von gestern. Man muß wenn das die Version vom 22.05 einspielen

Siehe hier (https://sourceforge.net/p/fhem/code/11528/log/?path=/trunk/fhem/FHEM/10_CUL_HM.pm)
Titel: Antw:"can not load cul_hm" seit heutigem update ...
Beitrag von: Invers am 27 Mai 2016, 10:27:34
Sorry, da hab ich mich nicht eindeutig ausgedrückt. Ich meinte natürlich die Version aus dem heutigen Sicherungsverzeichnis. Aber wir meinten das Selbe. :-)
Titel: Antw:"can not load cul_hm" seit heutigem update ...
Beitrag von: CoolTux am 27 Mai 2016, 10:29:11
Jepp meinten wir dann in der Tat   :)
Titel: Antw:"can not load cul_hm" seit heutigem update ...
Beitrag von: steffenp am 27 Mai 2016, 11:30:37
Auch in hminfo ist ein Fehler:

Undefined subroutine &main::CUL_HM_cleanShadowReg called at /usr/local/FHEM/share/fhem/FHEM/98_HMinfo.pm line 226.

Einspielen einer alten Version hilft
Titel: Antw:"can not load cul_hm" seit heutigem update ...
Beitrag von: Benni am 27 Mai 2016, 12:44:49
Zitat von: steffenp am 27 Mai 2016, 11:30:37
Auch in hminfo ist ein Fehler:

Undefined subroutine &main::CUL_HM_cleanShadowReg called at /usr/local/FHEM/share/fhem/FHEM/98_HMinfo.pm line 226.

Nein, in hminfo ist kein Fehler!

Wenn CUL_HM nicht geladen werden kann, dann kann hminfo auch keine Funktion aus CUL_HM verwenden (CUL_HM_cleanShadowReg ist dem Namen nach wohl aus CUL_HM)
Titel: Antw:"can not load cul_hm" seit heutigem update ...
Beitrag von: oti am 27 Mai 2016, 13:29:57
Hallo,

ich bekomme trotz zurück gehen auf die ältere Version noch die folgenden Fehlermeldungen:

hmusb: Unknown code A0C60865A32184300000084DD37::-87:hmusb, help me!

Shutdown restart, Reboot, Kompletter Neustart hat alles nicht geholfen...

Gruß
Olaf
Titel: Antw:"can not load cul_hm" seit heutigem update ...
Beitrag von: oti am 27 Mai 2016, 13:53:21
Hallo,

mir hat es die fhem.cfg zerlegt, nach Einspielen eines Backups der Datei ist alles wieder gut.

Gruß
Olaf
Titel: Antw:"can not load cul_hm" seit heutigem update ...
Beitrag von: CoolTux am 27 Mai 2016, 13:55:06
Zitat von: oti am 27 Mai 2016, 13:29:57
Hallo,

ich bekomme trotz zurück gehen auf die ältere Version noch die folgenden Fehlermeldungen:

hmusb: Unknown code A0C60865A32184300000084DD37::-87:hmusb, help me!

Shutdown restart, Reboot, Kompletter Neustart hat alles nicht geholfen...

Gruß
Olaf

https://forum.fhem.de/index.php/topic,52592.msg443460.html#msg443460
Titel: Antw:"can not load cul_hm" seit heutigem update ...
Beitrag von: martinp876 am 27 Mai 2016, 21:44:20
korrigiert - sorry. Seltsam dass es bei mir nicht aufgefallen ist.
im Update morgen
Titel: Antw:"can not load cul_hm" seit heutigem update ...
Beitrag von: CoolTux am 27 Mai 2016, 21:51:41
Kann passieren. Stirbt man nicht dran. Danke für die schnelle Reaktion.



Grüße
Titel: Antw:"can not load cul_hm" seit heutigem update ...
Beitrag von: gui2180 am 28 Mai 2016, 00:34:08
Hallo ,
habe gerade ein update gemacht. Dabei wurde auch das Modul 10_CUL_HM.pm ausgetauscht.
Danach ging nichts mehr ;-)

2016.05.28 00:21:29 0: Global symbol "$dName" requires explicit package name at ./FHEM/10_CUL_HM.pm line 7832.
Global symbol "$dName" requires explicit package name at ./FHEM/10_CUL_HM.pm line 7832.
BEGIN not safe after errors--compilation aborted at ./FHEM/10_CUL_HM.pm line 7911.

2016.05.28 00:21:29 0: ERROR: Cannot autoload CUL_HM
2016.05.28 00:21:54 1: reload: Error:Modul 10_CUL_HM deactivated:
Global symbol "$dName" requires explicit package name at ./FHEM/10_CUL_HM.pm line 7832.

Global symbol "$dName" requires explicit package name at ./FHEM/10_CUL_HM.pm line 7832.
BEGIN not safe after errors--compilation aborted at ./FHEM/10_CUL_HM.pm line 7911.


Habe das Alte wieder eingespielt - danach war wieder alles OK.

War ich zu schnell ? oder ist das ein neues Problem?

Grüße und Danke
Titel: Antw:"can not load cul_hm" seit heutigem update ...
Beitrag von: Devender am 28 Mai 2016, 00:39:47
N'abend,

gleiches Problem bei mir. Nach dem Update vor wenigen Minunten die Fehlermeldungen im LOG:
Meine HM Komponenten in FHEM funktionieren auch nicht mehr (großteil Tür/Fensterkontakte mit Status ???)


reload: Error:Modul 10_CUL_HM deactivated:
Global symbol "$dName" requires explicit package name at ./FHEM/10_CUL_HM.pm line 7832, <$fh> line 456.
Global symbol "$dName" requires explicit package name at ./FHEM/10_CUL_HM.pm line 7832, <$fh> line 456.
BEGIN not safe after errors--compilation aborted at ./FHEM/10_CUL_HM.pm line 7911, <$fh> line 456.

2016.05.28 00:31:49 0: Global symbol "$dName" requires explicit package name at ./FHEM/10_CUL_HM.pm line 7832, <$fh> line 456.
Global symbol "$dName" requires explicit package name at ./FHEM/10_CUL_HM.pm line 7832, <$fh> line 456.
BEGIN not safe after errors--compilation aborted at ./FHEM/10_CUL_HM.pm line 7911, <$fh> line 456.


Nach dem Einspielen der CUL_HM Sicherung aus dem restore_dir ändert sich am Status ??? allerdings nichts mehr.

Grüße,
Dirk
Titel: Antw:"can not load cul_hm" seit heutigem update ...
Beitrag von: franky08 am 28 Mai 2016, 00:47:38
Leute, die neue Version steht erst morgen früh per update zur Verfügung, wer jetzt die neue Version haben will MUSS DIE AUS SVN LADEN !

VG
Frank
Titel: Antw:"can not load cul_hm" seit heutigem update ...
Beitrag von: Devender am 28 Mai 2016, 00:51:32
Alles klar , Danke Frank!  8)
Titel: Antw:"can not load cul_hm" seit heutigem update ...
Beitrag von: Andy89 am 28 Mai 2016, 11:34:25
Zitat von: martinp876 am 27 Mai 2016, 21:44:20
korrigiert - sorry. Seltsam dass es bei mir nicht aufgefallen ist.
im Update morgen

danke fürs beheben  :) funktioniert nun wieder wie bisher  ;D
Titel: Antw:"can not load cul_hm" seit heutigem update ...
Beitrag von: the ratman am 28 Mai 2016, 11:46:44
danke fürs flotte richten!
rennt alles wieder ganz geschmeidig.