NEWS
PiFace addon Installationsproblem
-
Hallo ,
ich wollte das PiFace addon installieren und es gelingt nicht.
Was mache ich falsch, bzw. was muss ich anders machen?
Hier die Fehlermeldung:
ERROR: Process exited with code 25
weniger
mehr$ iobroker add piface --host raspib
NPM version: 6.14.12
npm install iobroker.piface@1.0.0 --loglevel error --prefix "/opt/iobroker" (System call)
In file included from ../src/cpp/init.cc:2:
../src/cpp/NPIFaceDigital.h: In function 'void AsyncAfter(uv_work_t*, int)':../src/cpp/NPIFaceDigital.h:74:52: error: no matching function for call to 'v8::Function::Call(v8::Localv8::Primitive, const unsigned int&, v8::Localv8::Value [0])' info->callback->Call(Null(info->isolate),argc,argv); ^In file included from /home/iobroker/.cache/node-gyp/12.22.1/include/node/node.h:67, from ../src/cpp/init.cc:1:/home/iobroker/.cache/node-gyp/12.22.1/include/node/v8.h:4298:43: note: candidate: 'v8::MaybeLocalv8::Value v8::Function::Call(v8::Localv8::Context, v8::Localv8::Value, int, v8::Localv8::Value*)' V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context, ^~~~/home/iobroker/.cache/node-gyp/12.22.1/include/node/v8.h:4298:43: note: candidate expects 4 arguments, 3 providedIn file included from ../src/cpp/init.cc:1:
../src/cpp/init.cc: At global scope:/home/iobroker/.cache/node-gyp/12.22.1/include/node/node.h:736:43: warning: cast between incompatible function types from 'void ()(v8::Localv8::Object)' to 'node::addon_register_func' {aka 'void ()(v8::Localv8::Object, v8::Localv8::Value, void*)'} [-Wcast-function-type] (node::addon_register_func) (regfunc), \ ^/home/iobroker/.cache/node-gyp/12.22.1/include/node/node.h:770:3: note: in expansion of macro 'NODE_MODULE_X' NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage) ^~~
../src/cpp/init.cc:10:1: note: in expansion of macro 'NODE_MODULE' NODE_MODULE(pifacedigital, Initialize) ^In file included from ../src/cpp/init.cc:2:../src/cpp/NPIFaceDigital.h:61:13: warning: 'void AsyncAfter(uv_work_t*, int)' defined but not used [-Wunused-function] static void AsyncAfter(uv_work_t *req, int status) ^~
~~~../src/cpp/NPIFaceDigital.h:34:13: warning: 'void WaitForAsync(uv_work_t*)' defined but not used [-Wunused-function] static void WaitForAsync(uv_work_t *req) ^make: *** [pifacedigital.target.mk:112: Release/obj.target/pifacedigital/src/cpp/init.o] Fehler 1
gyp ERR! build error
gyp ERR! stack Error:
make
failed with exit code: 2gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)gyp ERR! stack at ChildProcess.emit (events.js:314:20)gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)gyp ERR! System Linux 4.19.66-v7+gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"gyp ERR! cwd /opt/iobroker/node_modules/node-pifacedigitalgyp ERR! node -v v12.22.1gyp ERR! node-gyp -v v5.1.0gyp ERR! not ok
npm ERR! code ELIFECYCLEnpm ERR! errno 1
npm ERR! node-pifacedigital@0.1.7 install:
node-gyp rebuild
npm ERR! Exit status 1npm ERR! npm ERR! Failed at the node-pifacedigital@0.1.7 install script.npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in:npm ERR! /home/iobroker/.npm/_logs/2021-12-12T14_27_52_246Z-debug.log
host.raspib Cannot install iobroker.piface@1.0.0: 1
ERROR: Process exited with code 25
-
-
@thomas-braun
Hallo Thomas,
vielen Dank für die Hinweise und Links.Wie darin beschrieben habe ich die alten Verweise etc. entfernt und dann manuell die Version nodejs 14.18.2 und npm 6.14.15 installiert.
Im Anschluß habe ich bei iobroker alles auf den neusten Stand gebracht. Ebenso bin ich mit den Dateien verfahren, welche man über GIT herunterladen und installieren soll.Nach einem Reboot des Raspi habe ich versucht piface zu installieren.
Hier habe ich erneut eine Fehlermeldung erhalten:
##################################################
$ iobroker add piface --host raspibNPM version: 6.14.15npm install iobroker.piface@1.0.0 --loglevel error --prefix "/opt/iobroker" (System call)
In file included from ../src/cpp/init.cc:2:
../src/cpp/NPIFaceDigital.h: In function 'void AsyncAfter(uv_work_t*, int)':../src/cpp/NPIFaceDigital.h:74:52: error: no matching function for call to 'v8::Function::Call(v8::Localv8::Primitive, const unsigned int&, v8::Localv8::Value [0])' info->callback->Call(Null(info->isolate),argc,argv); ^In file included from /home/iobroker/.cache/node-gyp/14.18.2/include/node/node.h:67, from ../src/cpp/init.cc:1:/home/iobroker/.cache/node-gyp/14.18.2/include/node/v8.h:4468:43: note: candidate: 'v8::MaybeLocalv8::Value v8::Function::Call(v8::Localv8::Context, v8::Localv8::Value, int, v8::Localv8::Value)' V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context, ^~~~/home/iobroker/.cache/node-gyp/14.18.2/include/node/v8.h:4468:43: note: candidate expects 4 arguments, 3 providedIn file included from ../src/cpp/init.cc:1:../src/cpp/init.cc: At global scope:/home/iobroker/.cache/node-gyp/14.18.2/include/node/node.h:787:43: warning: cast between incompatible function types from 'void ()(v8::Localv8::Object)' to 'node::addon_register_func' {aka 'void ()(v8::Localv8::Object, v8::Localv8::Value, void)'} [-Wcast-function-type] (node::addon_register_func) (regfunc), \ ^/home/iobroker/.cache/node-gyp/14.18.2/include/node/node.h:821:3: note: in expansion of macro 'NODE_MODULE_X' NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage) ^~~
../src/cpp/init.cc:10:1: note: in expansion of macro 'NODE_MODULE' NODE_MODULE(pifacedigital, Initialize) ^In file included from ../src/cpp/init.cc:2:
../src/cpp/NPIFaceDigital.h:61:13: warning: 'void AsyncAfter(uv_work_t*, int)' defined but not used [-Wunused-function] static void AsyncAfter(uv_work_t *req, int status) ^~
~~~../src/cpp/NPIFaceDigital.h:34:13: warning: 'void WaitForAsync(uv_work_t*)' defined but not used [-Wunused-function] static void WaitForAsync(uv_work_t *req) ^make: *** [pifacedigital.target.mk:112: Release/obj.target/pifacedigital/src/cpp/init.o] Fehler 1
gyp ERR! build error gyp ERR! stack Error:
make
failed with exit code: 2gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)gyp ERR! stack at ChildProcess.emit (events.js:400:28)gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:282:12)gyp ERR! System Linux 4.19.66-v7+gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"gyp ERR! cwd /opt/iobroker/node_modules/node-pifacedigitalgyp ERR! node -v v14.18.2gyp ERR! node-gyp -v v5.1.0gyp ERR! not oknpm ERR! code ELIFECYCLEnpm ERR! errno 1
npm ERR! node-pifacedigital@0.1.7 install:
node-gyp rebuild
npm ERR! Exit status 1npm ERR! npm ERR! Failed at the node-pifacedigital@0.1.7 install script.npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:npm ERR! /home/iobroker/.npm/_logs/2021-12-23T12_29_50_843Z-debug.log
host.raspib Cannot install iobroker.piface@1.0.0: 1
ERROR: Process exited with code 25
##########################
Kannst Du mir bitte nochmals weiterhelfen.Vielen Dank vorab und schöne Weihnachten.
Thomas -
usr/local/bin/node
Dein nodeJS ist noch krumm im System.
Und bitte Texte aus der Konsole in CodeTags posten.
-
@thomas-braun
Sorry, ich kenne mich mit Foren nicht so aus.
Was sind CodeTags??Der Pfad "usr/local/bin/node" entstammt der Beschreibung SONDERFALL "alte Raspberry händisch pflegen"
-
CodeTags: Beim Antworten das </> anklicken, Steuerzeichen in einer neuen Zeile starten lassen, Text zwischen die Steuerzeichen kopieren.
Sonderfall? Welche Hardware verwendest du?
-
Danke für den Tipp mit den CodeTags. werde ich berücksichtigen.
Ich verwende eine Raspberry B erstes Modell mit raspian buster.
-
@tk-0
Raspberry Pi 3B?Edit: 1B?
-
Keine Ahnung, auf der Box steht nur Pi Modell B drauf.
Beim Login über die Konsole steht Linux raspib 4.19.66-v7+, etwas dahinter nach dem Datum und Uhrzeut armv7l
-
@tk-0 sagte in PiFace addon Installationsproblem:
armv7l
Das ist aber dann kein Sonderfall. Die Sonderfälle sind für armv6l.
Aber wenn ich mir das so anschaue bzgl. piface, das wird ganz schwierig werden, vermute ich. Das ist ja alles 'ewig alt'. Keine Ahnung ob das noch unter aktuellen Versionen von python, nodeJS und dem OS ans laufen zu bekommen ist. Sind auf jedenfall große Klimmzüge erforderlich.
-
ohhh Sorry, darauf hatte ich gar nicht geachtet. Hatte nur auf die Modellreihe B geachtet.
Dann gehe ich nochmals nach Deiner Anleitung für den Standardfall durch.
Vielen Dank nochmals und entschuldige meinen Fehler.
-
Was sagt denn
cat /proc/cpuinfo cat /proc/device-tree/model
Dann kannst du auch gleich mal die CodeTags versuchen.
-
iobroker@raspib:~ $ cat /proc/cpuinfo processor : 0 model name : ARMv7 Processor rev 4 (v7l) BogoMIPS : 38.40 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xd03 CPU revision : 4 processor : 1 model name : ARMv7 Processor rev 4 (v7l) BogoMIPS : 38.40 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xd03 CPU revision : 4 processor : 2 model name : ARMv7 Processor rev 4 (v7l) BogoMIPS : 38.40 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xd03 CPU revision : 4 processor : 3 model name : ARMv7 Processor rev 4 (v7l) BogoMIPS : 38.40 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xd03 CPU revision : 4 Hardware : BCM2835 Revision : a02082 Serial : 00000000b4510762
-
iobroker@raspib:~ $ cat /proc/device-tree/model Raspberry Pi 3 Model B Rev 1.2iobroker@raspib:~ $
-
Also ein relativ aktueller Pi3B.
Da braucht es keine Sonderfall-Regelung.Btw: Der user 'iobroker' ist mal schlecht gewählt, der gehört als Systemuser eigentlich zur ioBroker-Grundinstallation.
-
@thomas-braun
Habe mich über ssh als iobroker angemeldet. Als normaler Benutzer gibt es auch noch pi.
Node habe ich nun über den normalen installiert und nach einem Neustart läuft IoBroker wieder.iobroker@raspib:~ $ which nodejs node npm && nodejs -v && node -v && npm -v && sudo apt update && sudo apt updaten && apt policy nodejs /usr/bin/nodejs /usr/bin/node /usr/bin/npm v14.18.2 v14.18.2 6.14.15 OK:1 http://archive.raspberrypi.org/debian stretch InRelease OK:2 http://raspbian.raspberrypi.org/raspbian buster InRelease OK:3 https://deb.nodesource.com/node_14.x buster InRelease Paketlisten werden gelesen... Fertig Abhngigkeitsbaum wird aufgebaut. Statusinformationen werden eingelesen.... Fertig Aktualisierung fr 47 Pakete verfgbar. Fhren Sie apt list --upgradable aus, um sie anzuzeigen. E: Ungltige Operation updaten
Wie von Dir vermutet geht die Installation von piface dennoch nicht.
$ iobroker add piface --host raspib NPM version: 6.14.15 npm install iobroker.piface@1.0.0 --loglevel error --prefix "/opt/iobroker" (System call) In file included from ../src/cpp/init.cc:2: ../src/cpp/NPIFaceDigital.h: In function 'void AsyncAfter(uv_work_t*, int)':../src/cpp/NPIFaceDigital.h:74:52: error: no matching function for call to 'v8::Function::Call(v8::Local<v8::Primitive>, const unsigned int&, v8::Local<v8::Value> [0])' info->callback->Call(Null(info->isolate),argc,argv); ^In file included from /home/iobroker/.cache/node-gyp/14.18.2/include/node/node.h:67, from ../src/cpp/init.cc:1:/home/iobroker/.cache/node-gyp/14.18.2/include/node/v8.h:4468:43: note: candidate: 'v8::MaybeLocal<v8::Value> v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)' V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context, ^~~~/home/iobroker/.cache/node-gyp/14.18.2/include/node/v8.h:4468:43: note: candidate expects 4 arguments, 3 provided In file included from ../src/cpp/init.cc:1:../src/cpp/init.cc: At global scope:/home/iobroker/.cache/node-gyp/14.18.2/include/node/node.h:787:43: warning: cast between incompatible function types from 'void (*)(v8::Local<v8::Object>)' to 'node::addon_register_func' {aka 'void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)'} [-Wcast-function-type] (node::addon_register_func) (regfunc), \ ^/home/iobroker/.cache/node-gyp/14.18.2/include/node/node.h:821:3: note: in expansion of macro 'NODE_MODULE_X' NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage) ^~~~~~~~~~~~~../src/cpp/init.cc:10:1: note: in expansion of macro 'NODE_MODULE' NODE_MODULE(pifacedigital, Initialize) ^~~~~~~~~~~ In file included from ../src/cpp/init.cc:2: ../src/cpp/NPIFaceDigital.h:61:13: warning: 'void AsyncAfter(uv_work_t*, int)' defined but not used [-Wunused-function] static void AsyncAfter(uv_work_t *req, int status) ^~~~~~~~~~../src/cpp/NPIFaceDigital.h:34:13: warning: 'void WaitForAsync(uv_work_t*)' defined but not used [-Wunused-function] static void WaitForAsync(uv_work_t *req) ^~~~~~~~~~~~ make: *** [pifacedigital.target.mk:112: Release/obj.target/pifacedigital/src/cpp/init.o] Fehler 1 gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)gyp ERR! stack at ChildProcess.emit (events.js:400:28) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:282:12)gyp ERR! System Linux 4.19.66-v7+gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"gyp ERR! cwd /opt/iobroker/node_modules/node-pifacedigitalgyp ERR! node -v v14.18.2gyp ERR! node-gyp -v v5.1.0gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! node-pifacedigital@0.1.7 install: `node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the node-pifacedigital@0.1.7 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in:npm ERR! /home/iobroker/.npm/_logs/2021-12-23T13_48_51_110Z-debug.log host.raspib Cannot install iobroker.piface@1.0.0: 1 ERROR: Process exited with code 25
Bedeutet das, dass die Software für diesen Adapter zu alt ist?
-
@tk-0 sagte in PiFace addon Installationsproblem:
http://archive.raspberrypi.org/debian stretch InRelease
Das ist falsch. Muss 'buster' statt 'stretch' lauten.
-
@tk-0 sagte in PiFace addon Installationsproblem:
Bedeutet das, dass die Software für diesen Adapter zu alt ist?
Möglich. Aber hast du auch die ganzen Voraussetzungen auf der Hardwareseite erfüllt? SPI aktiv im Raspberry? Wenn ich das richtig sehe ist das ganze ja etwas frickelig einzurichten, schon bevor da irgendwas node / ioBroker bezogenes überhaupt funktionieren würde.
-
Das Ganze lief schon mal mit einer älteren iobroker Version. Frag bitte nicht welche das war.
Ich habe damit S0 Schnittstellen von meinem Wasserzähler und dem PV Inverter mitgeloggt.
Nach einem Update vor einigen Wochen/Monate ging es dann leider nicht mehr. -
Bevor du da weiter machst dringend die Repos gerade ziehen. Das trägt nicht gerade zu einem stabilen System bei, wenn das alles nicht zueinander passt.