Cannot load module fronthem

Begonnen von MaxMaschine, 13 Dezember 2017, 18:02:50

Vorheriges Thema - Nächstes Thema

MaxMaschine

Hallo Leute,

habe heute versucht auf meinen Raspi mit Fhem fronthem aufzusetzten, so dass ich mit SmartViSU weiter machen kann.

Bin nach Anleitung vorgegangen
https://wiki.fhem.de/wiki/Fronthem_Installation

Habe dann in FHEM Eingabezeile eingegeben:
update force https://raw.githubusercontent.com/herrmannj/fronthem/master/controls_fronthem.txt

und danach Shutdown Restart,
dann den Raspi noch neu gebootet...

leider ist irgendwas nicht ganz glatt gegangen.
Wenn ich nun in FHEM Eingabezeile eingebe:
define <Name Webservice> fronthem

bekomme ich die Meldung:
Cannot load module fronthem

woran kann das nun liegen???

Danke schon mal für eure Tipp´s

Gruß
Max

PS. die suche im Forum hat mich leider auch nicht weiter gebracht...
deshalb der neue Post hier.!

herrmannj

bitte im log nach weiteren Meldungen suchen. So kann man nichts dazu sagen

MaxMaschine

#2
Hallo,
so nun habe ich mal versucht den Teil aus dem LOG zu kopieren, der hier mit fronthem zu tun haben könnte...
hoffe dass das nun was bringt und mit jemand helfen kann den Fehler zu finden!?


2017.12.13 16:38:04 3: EnOcean set EssSeil_FLD61 on
2017.12.13 16:38:09 3: EnOcean set EssSeil_FLD61 off
2017.12.13 16:50:28 3: tahoma1: tahoma_getEvents took 3026.96681022644 ms
2017.12.13 17:22:44 1: RMDIR: ./restoreDir/2017-12-06
2017.12.13 17:22:44 1: UPD FHEM/01_fronthem.pm
2017.12.13 17:22:44 1: UPD FHEM/31_fronthemDevice.pm
2017.12.13 17:22:44 1: UPD FHEM/fhwebsocket.pm
2017.12.13 17:22:44 1: UPD FHEM/fhconverter.pm
2017.12.13 17:22:44 1: UPD www/pgm2/fronthemEditor.js
2017.12.13 17:22:44 1: UPD www/images/default/arrow-down.svg
2017.12.13 17:22:45 1: UPD www/images/default/arrow-up.svg
2017.12.13 17:22:45 1: UPD www/images/default/desktop.svg
2017.12.13 17:22:45 1: saving fhem.cfg
2017.12.13 17:22:45 1: saving ./log/fhem.save
2017.12.13 17:22:45 1:
2017.12.13 17:22:45 1: New entries in the CHANGED file:
2017.12.13 17:22:45 1: 2015-01-18
2017.12.13 17:22:45 1: - minor typo: thx fhainz
2017.12.13 17:22:45 1: Calling /usr/bin/perl ./contrib/commandref_join.pl -noWarnings, this may take a while
2017.12.13 17:23:14 1: *** EN FHEM/01_fronthem.pm: No document text found
2017.12.13 17:23:14 1: *** EN FHEM/31_fronthemDevice.pm: No document text found
2017.12.13 17:23:14 1:
2017.12.13 17:23:14 1: update finished, "shutdown restart" is needed to activate the changes.
2017.12.13 17:23:14 1:
2017.12.13 17:23:14 1: Please consider using the global attribute sendStatistics
2017.12.13 17:27:58 0: Server shutdown
2017.12.13 17:28:01 1: Including fhem.cfg
2017.12.13 17:28:01 3: telnetPort: port 7072 opened
2017.12.13 17:28:01 3: WEB: port 8083 opened
2017.12.13 17:28:01 3: WEBphone: port 8084 opened
2017.12.13 17:28:01 3: WEBtablet: port 8085 opened
2017.12.13 17:28:01 2: eventTypes: loaded 189 events from ./log/eventTypes.txt
2017.12.13 17:28:01 3: Opening TCM_ESP3_0 device /dev/ttyUSB0
2017.12.13 17:28:01 3: Setting TCM_ESP3_0 serial parameters to 57600,8,N,1
2017.12.13 17:28:01 3: TCM_ESP3_0 device opened
2017.12.13 17:28:02 2: EnOcean Cryptographic functions are not available.
2017.12.13 17:28:02 1: Including ./log/fhem.save
2017.12.13 17:28:02 3: TCM set TCM_ESP3_0 reset
2017.12.13 17:28:02 2: TCM TCM_ESP3_0 RESPONSE: OK
2017.12.13 17:28:03 3: TCM get TCM_ESP3_0 baseID
2017.12.13 17:28:03 2: TCM TCM_ESP3_0 RESPONSE: BaseID: FFF99080 RemainingWriteCycles: 0A
2017.12.13 17:28:03 3: TCM get TCM_ESP3_0 version
2017.12.13 17:28:03 2: TCM TCM_ESP3_0 RESPONSE: APIVersion: 02050000 APPVersion: 020A0000 ChipID: 0196F321 ChipVersion: 454F0103 Desc: GATEWAYCTRL
2017.12.13 17:28:03 3: TCM set TCM_ESP3_0 smartAckMailboxMax 0
2017.12.13 17:28:03 2: TCM TCM_ESP3_0 RESPONSE: OK
2017.12.13 17:28:03 2: TCM TCM_ESP3_0 smartAckMailboxMax 0 restored
2017.12.13 17:28:03 3: TCM set TCM_ESP3_0 repeater 0000
2017.12.13 17:28:03 2: TCM TCM_ESP3_0 RESPONSE: OK
2017.12.13 17:28:03 2: TCM TCM_ESP3_0 repeater 0000 restored
2017.12.13 17:28:03 3: TCM set TCM_ESP3_0 mode 00
2017.12.13 17:28:03 2: TCM TCM_ESP3_0 RESPONSE: NOT_SUPPORTED
2017.12.13 17:28:03 3: TCM set TCM_ESP3_0 maturity 01
2017.12.13 17:28:03 2: TCM TCM_ESP3_0 RESPONSE: OK
2017.12.13 17:28:03 2: TCM TCM_ESP3_0 maturity 01 restored
2017.12.13 17:28:03 2: TCM TCM_ESP3_0 initialized
2017.12.13 17:28:03 1: usb create starting
2017.12.13 17:28:03 3: Probing CUL device /dev/ttyAMA0
2017.12.13 17:28:03 3: Probing TCM_ESP3 device /dev/ttyAMA0
2017.12.13 17:28:04 3: Probing ZWDongle device /dev/ttyAMA0
2017.12.13 17:28:04 3: Probing FRM device /dev/ttyAMA0
2017.12.13 17:28:09 3: Probing CUL device /dev/ttyS0
2017.12.13 17:28:09 1: usb create end

2017.12.13 17:29:43 3: FHEMWEB WEB CSRF error: csrf_739200603865128 ne csrf_796555037810782 for client WEB_192.168.1.10_59883. For details see the csrfToken FHEMWEB attribute.
2017.12.13 17:34:21 1: reload: Error:Modul 01_fronthem deactivated:
Can't locate Net/WebSocket/Server/Connection.pm in @INC (@INC contains: . /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl ./FHEM) at FHEM/fhwebsocket.pm line 27.
BEGIN failed--compilation aborted at FHEM/fhwebsocket.pm line 27.
Compilation failed in require at ./FHEM/01_fronthem.pm line 30.
BEGIN failed--compilation aborted at ./FHEM/01_fronthem.pm line 30.

2017.12.13 17:34:21 0: Can't locate Net/WebSocket/Server/Connection.pm in @INC (@INC contains: . /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl ./FHEM) at FHEM/fhwebsocket.pm line 27.
BEGIN failed--compilation aborted at FHEM/fhwebsocket.pm line 27.
Compilation failed in require at ./FHEM/01_fronthem.pm line 30.
BEGIN failed--compilation aborted at ./FHEM/01_fronthem.pm line 30.

2017.12.13 17:17:09 1: Including fhem.cfg
2017.12.13 17:17:10 3: telnetPort: port 7072 opened
2017.12.13 17:17:10 3: WEB: port 8083 opened
2017.12.13 17:17:10 3: WEBphone: port 8084 opened
2017.12.13 17:17:10 3: WEBtablet: port 8085 opened
2017.12.13 17:17:10 2: eventTypes: loaded 189 events from ./log/eventTypes.txt
2017.12.13 17:17:10 3: Opening TCM_ESP3_0 device /dev/ttyUSB0
2017.12.13 17:17:10 3: Setting TCM_ESP3_0 serial parameters to 57600,8,N,1
2017.12.13 17:17:10 3: TCM_ESP3_0 device opened
2017.12.13 17:17:11 2: EnOcean Cryptographic functions are not available.
2017.12.13 17:17:11 1: Including ./log/fhem.save
2017.12.13 17:17:11 3: TCM set TCM_ESP3_0 reset
2017.12.13 17:17:11 2: TCM TCM_ESP3_0 RESPONSE: OK
2017.12.13 17:17:12 3: TCM get TCM_ESP3_0 baseID
2017.12.13 17:17:12 2: TCM TCM_ESP3_0 RESPONSE: BaseID: FFF99080 RemainingWriteCycles: 0A
2017.12.13 17:17:12 3: TCM get TCM_ESP3_0 version
2017.12.13 17:17:12 2: TCM TCM_ESP3_0 RESPONSE: APIVersion: 02050000 APPVersion: 020A0000 ChipID: 0196F321 ChipVersion: 454F0103 Desc: GATEWAYCTRL
2017.12.13 17:17:12 3: TCM set TCM_ESP3_0 smartAckMailboxMax 0
2017.12.13 17:17:12 2: TCM TCM_ESP3_0 RESPONSE: OK
2017.12.13 17:17:12 2: TCM TCM_ESP3_0 smartAckMailboxMax 0 restored
2017.12.13 17:17:12 3: TCM set TCM_ESP3_0 repeater 0000
2017.12.13 17:17:12 2: TCM TCM_ESP3_0 RESPONSE: OK
2017.12.13 17:17:12 2: TCM TCM_ESP3_0 repeater 0000 restored
2017.12.13 17:17:12 3: TCM set TCM_ESP3_0 mode 00
2017.12.13 17:17:12 2: TCM TCM_ESP3_0 RESPONSE: NOT_SUPPORTED
2017.12.13 17:17:12 3: TCM set TCM_ESP3_0 maturity 01
2017.12.13 17:17:12 2: TCM TCM_ESP3_0 RESPONSE: OK
2017.12.13 17:17:12 2: TCM TCM_ESP3_0 maturity 01 restored
2017.12.13 17:17:12 2: TCM TCM_ESP3_0 initialized
2017.12.13 17:17:12 1: usb create starting
2017.12.13 17:17:12 3: Probing CUL device /dev/ttyAMA0
2017.12.13 17:17:12 3: Probing TCM_ESP3 device /dev/ttyAMA0
2017.12.13 17:17:13 3: Probing ZWDongle device /dev/ttyAMA0
2017.12.13 17:17:13 3: Probing FRM device /dev/ttyAMA0
2017.12.13 17:35:26 3: Probing CUL device /dev/ttyS0
2017.12.13 17:35:26 1: usb create end

2017.12.13 17:39:33 1: reload: Error:Modul 01_fronthem deactivated:
Can't locate Net/WebSocket/Server/Connection.pm in @INC (@INC contains: . /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl ./FHEM) at FHEM/fhwebsocket.pm line 27.
BEGIN failed--compilation aborted at FHEM/fhwebsocket.pm line 27.
Compilation failed in require at ./FHEM/01_fronthem.pm line 30.
BEGIN failed--compilation aborted at ./FHEM/01_fronthem.pm line 30.

2017.12.13 17:39:33 0: Can't locate Net/WebSocket/Server/Connection.pm in @INC (@INC contains: . /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl ./FHEM) at FHEM/fhwebsocket.pm line 27.
BEGIN failed--compilation aborted at FHEM/fhwebsocket.pm line 27.
Compilation failed in require at ./FHEM/01_fronthem.pm line 30.
BEGIN failed--compilation aborted at ./FHEM/01_fronthem.pm line 30.

2017.12.13 17:55:33 1: reload: Error:Modul 01_fronthem deactivated:
Attempt to reload fhwebsocket.pm aborted.
Compilation failed in require at ./FHEM/01_fronthem.pm line 30.
BEGIN failed--compilation aborted at ./FHEM/01_fronthem.pm line 30.

2017.12.13 17:55:33 0: Attempt to reload fhwebsocket.pm aborted.
Compilation failed in require at ./FHEM/01_fronthem.pm line 30.
BEGIN failed--compilation aborted at ./FHEM/01_fronthem.pm line 30.

2017.12.13 18:58:28 3: EnOcean set Test_FLD61 on
2017.12.13 18:58:30 3: EnOcean set Test_FLD61 off


Danke schon mal für die Unterstützung!
Gruß
Max

herrmannj

viel eindeutiger kann eine Fehlermeldung nicht sein:
Can't locate Net/WebSocket/Server/Connection.pm
websocket aus dem cpan fehlt.

MaxMaschine

ok, super dass du gleich was finden konntest,

wie bekomme ich das nachinstalliert?
Bin leider noch ein Neuling in solchen Themen...

Gruß
Max


MaxMaschine

...genau so hatte ich das doch gemacht...!
Muss ich jetzt nicht verstehen...oder?  :o

Kann ich das einfach nochmals ausführen und drüber installieren?

herrmannj

da: sudo cpan install Net::WebSocket::Server ist was schief gegangen.


MaxMaschine

ok, dann werde ich das heute Abend nochmals ausführen und schauen, ob ich dann in FHEM den Aufruf ausführen kann...
Ansonsten melde ich mich wieder...

Danke dir erstmal...

Gruß
Max

MaxMaschine

#9
Hallo,
so nun hab ich mich genau nochmal an die Beschreibung gehalten...  :(

immer noch der gleiche Fehler:

2017.12.15 17:51:39 1: reload: Error:Modul 01_fronthem deactivated:
Can't locate Net/WebSocket/Server/Connection.pm in @INC (@INC contains: . /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl ./FHEM) at FHEM/fhwebsocket.pm line 27.
BEGIN failed--compilation aborted at FHEM/fhwebsocket.pm line 27.
Compilation failed in require at ./FHEM/01_fronthem.pm line 30.
BEGIN failed--compilation aborted at ./FHEM/01_fronthem.pm line 30.

2017.12.15 17:51:39 0: Can't locate Net/WebSocket/Server/Connection.pm in @INC (@INC contains: . /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl ./FHEM) at FHEM/fhwebsocket.pm line 27.
BEGIN failed--compilation aborted at FHEM/fhwebsocket.pm line 27.
Compilation failed in require at ./FHEM/01_fronthem.pm line 30.
BEGIN failed--compilation aborted at ./FHEM/01_fronthem.pm line 30.

2017.12.15 17:53:49 1: reload: Error:Modul 01_fronthem deactivated:
Attempt to reload fhwebsocket.pm aborted.
Compilation failed in require at ./FHEM/01_fronthem.pm line 30.
BEGIN failed--compilation aborted at ./FHEM/01_fronthem.pm line 30.

2017.12.15 17:53:49 0: Attempt to reload fhwebsocket.pm aborted.
Compilation failed in require at ./FHEM/01_fronthem.pm line 30.
BEGIN failed--compilation aborted at ./FHEM/01_fronthem.pm line 30.

...was mache ich jetzt?

Gruß
Max


...das hier wird beim Aufruf von

sudo cpan install Net::WebSocket::Server

am Raspi ausgeführt...


The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Dec 15 17:52:33 2017 from 192.168.1.10
pi@raspberrypi ~ $ sudo cpan install Net::WebSocket::Server
Going to read '/root/.cpan/Metadata'
  Database was generated on Fri, 15 Dec 2017 00:41:02 GMT
Running install for module 'Net::WebSocket::Server'
Running make for T/TO/TOPAZ/Net-WebSocket-Server-0.003004.tar.gz
Checksum for /root/.cpan/sources/authors/id/T/TO/TOPAZ/Net-WebSocket-Server-0.00                                   3004.tar.gz ok

  CPAN.pm: Going to build T/TO/TOPAZ/Net-WebSocket-Server-0.003004.tar.gz

Checking if your kit is complete...
Looks good
Invalid LICENSE value 'Artistic_2_0' ignored
Generating a Unix-style Makefile
Writing Makefile for Net::WebSocket::Server
Invalid LICENSE value 'Artistic_2_0' ignored
Writing MYMETA.yml and MYMETA.json
cp lib/Net/WebSocket/Server.pm blib/lib/Net/WebSocket/Server.pm
cp lib/Net/WebSocket/Server/Connection.pm blib/lib/Net/WebSocket/Server/Connecti                                   on.pm
Manifying 2 pod documents
  TOPAZ/Net-WebSocket-Server-0.003004.tar.gz
  /usr/bin/make -- OK
'YAML' not installed, will not store persistent state
Running make test
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-                                   e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/                                   *.t
t/00-load.t ....... 1/? # Testing Net::WebSocket::Server 0.003004, Perl 5.014002                                   , /usr/bin/perl
t/00-load.t ....... ok
t/01-server.t ..... test timed out
    # Child (initialize client socket) exited without calling finalize()
t/01-server.t ..... 1/?
#   Failed test 'initialize client socket'
#   at /usr/share/perl/5.14/Test/Builder.pm line 252.
# Tests were run but no plan was declared and done_testing() was not seen.
t/01-server.t ..... Dubious, test returned 4 (wstat 1024, 0x400)
Failed 1/1 subtests
t/boilerplate.t ... ok
t/manifest.t ...... skipped: Author tests not required for installation
t/pod-coverage.t .. skipped: Test::Pod::Coverage 1.08 required for testing POD c                                   overage
t/pod.t ........... skipped: Test::Pod 1.22 required for testing POD

Test Summary Report
-------------------
t/01-server.t   (Wstat: 1024 Tests: 1 Failed: 1)
  Failed test:  1
  Non-zero exit status: 4
  Parse errors: No plan found in TAP output
Files=6, Tests=5, 11 wallclock secs ( 0.10 usr  0.04 sys +  0.77 cusr  0.05 csys                                    =  0.96 CPU)
Result: FAIL
Failed 1/6 test programs. 1/5 subtests failed.
Makefile:850: recipe for target 'test_dynamic' failed
make: *** [test_dynamic] Error 255
  TOPAZ/Net-WebSocket-Server-0.003004.tar.gz
  /usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports TOPAZ/Net-WebSocket-Server-0.003004.tar.gz
Running make install
  make test had returned bad status, won't install without force
pi@raspberrypi ~ $



herrmannj

Du hat einen Fehler bei der Installation des CPAN Net::WebSocket::Server moduls.
Das hab ich Dir aber schon geschrieben.

http://www.lmdfdg.com/?q=cpan+module+installieren

Ball liegt bei Dir.

herrmannj

Ah jetzt hast Du zumindest, überschneidend mit meinem post, noch die CPAN Meldungen ergänzt. Bitte nicht machen, für so was immer(!) einen neuen post.

herrmannj

ich kann aber trotzdem nur sehen das es schief geht. Nicht warum. Probier die cpanm Variante

MaxMaschine

ok, aber darf ich ehrlich sein?
ich verstehe gerade nicht arg viel, von dem was du mir hier versuchst zu erklären...!

Sagte ja schon, dass ich noch nicht tief in dem Thema drin stecke *blutiger Neuling bin*
werde aber mal versuchen über den zugespielten Ball was raus zu finden... ;-) ;D


.......
du meinst die hier:
sudo cpanm Net::WebSocket::Server
???

herrmannj

klar sollst Du ehrlich sein. Bin ich auch: ich weiß nicht warum es bei DIR nicht geht. :) Tipps:

google: CPAN module installieren linux
google: CPANminus
google: Fehler beim installieren von perl modulen
google: CPAN force