Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. PiFace addon Installationsproblem

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    PiFace addon Installationsproblem

    This topic has been deleted. Only users with topic management privileges can see it.
    • Thomas Braun
      Thomas Braun Most Active @TK 0 last edited by

      @tk-0

      usr/local/bin/node
      

      deutet auf eine verfummelte Installation von nodeJS hin.

      T 1 Reply Last reply Reply Quote 0
      • T
        TK 0 @Thomas Braun last edited by

        @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 raspib

        NPM 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 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-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

        Thomas Braun 1 Reply Last reply Reply Quote 0
        • Thomas Braun
          Thomas Braun Most Active @TK 0 last edited by Thomas Braun

          @tk-0

          usr/local/bin/node

          Dein nodeJS ist noch krumm im System.

          Und bitte Texte aus der Konsole in CodeTags posten.

          T 1 Reply Last reply Reply Quote 0
          • T
            TK 0 @Thomas Braun last edited by

            @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"

            Thomas Braun 1 Reply Last reply Reply Quote 0
            • Thomas Braun
              Thomas Braun Most Active @TK 0 last edited by

              @tk-0

              CodeTags: Beim Antworten das </> anklicken, Steuerzeichen in einer neuen Zeile starten lassen, Text zwischen die Steuerzeichen kopieren.

              Sonderfall? Welche Hardware verwendest du?

              1 Reply Last reply Reply Quote 0
              • T
                TK 0 last edited by

                Danke für den Tipp mit den CodeTags. werde ich berücksichtigen.

                Ich verwende eine Raspberry B erstes Modell mit raspian buster.

                Thomas Braun 1 Reply Last reply Reply Quote 0
                • Thomas Braun
                  Thomas Braun Most Active @TK 0 last edited by Thomas Braun

                  @tk-0
                  Raspberry Pi 3B?

                  Edit: 1B?

                  1 Reply Last reply Reply Quote 0
                  • T
                    TK 0 last edited by

                    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

                    Thomas Braun 1 Reply Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @TK 0 last edited by Thomas Braun

                      @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.

                      1 Reply Last reply Reply Quote 0
                      • T
                        TK 0 last edited by

                        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.

                        Thomas Braun 1 Reply Last reply Reply Quote 0
                        • Thomas Braun
                          Thomas Braun Most Active @TK 0 last edited by Thomas Braun

                          @tk-0

                          Was sagt denn

                          cat /proc/cpuinfo
                          cat /proc/device-tree/model
                          

                          Dann kannst du auch gleich mal die CodeTags versuchen.

                          T 2 Replies Last reply Reply Quote 0
                          • T
                            TK 0 @Thomas Braun last edited by

                            @thomas-braun

                            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
                            
                            1 Reply Last reply Reply Quote 0
                            • T
                              TK 0 @Thomas Braun last edited by

                              @thomas-braun

                              iobroker@raspib:~ $ cat /proc/device-tree/model
                              Raspberry Pi 3 Model B Rev 1.2iobroker@raspib:~ $
                              
                              Thomas Braun 1 Reply Last reply Reply Quote 0
                              • Thomas Braun
                                Thomas Braun Most Active @TK 0 last edited by

                                @tk-0

                                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.

                                T 1 Reply Last reply Reply Quote 0
                                • T
                                  TK 0 @Thomas Braun last edited by

                                  @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?

                                  Thomas Braun 2 Replies Last reply Reply Quote 0
                                  • Thomas Braun
                                    Thomas Braun Most Active @TK 0 last edited by Thomas Braun

                                    @tk-0 sagte in PiFace addon Installationsproblem:

                                    http://archive.raspberrypi.org/debian stretch InRelease

                                    Das ist falsch. Muss 'buster' statt 'stretch' lauten.

                                    1 Reply Last reply Reply Quote 0
                                    • Thomas Braun
                                      Thomas Braun Most Active @TK 0 last edited by

                                      @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.

                                      T 1 Reply Last reply Reply Quote 0
                                      • T
                                        TK 0 @Thomas Braun last edited by

                                        @thomas-braun

                                        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.

                                        Thomas Braun 1 Reply Last reply Reply Quote 0
                                        • Thomas Braun
                                          Thomas Braun Most Active @TK 0 last edited by

                                          @tk-0

                                          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.

                                          T 1 Reply Last reply Reply Quote 0
                                          • T
                                            TK 0 @Thomas Braun last edited by

                                            @thomas-braun

                                            So, alle Repos gerade gezogen und das System aktualisiert neu gestartet und nochmals die Installation versucht.
                                            Leider geht die Installation von Piface immer noch nicht.
                                            Gibt es eine Möglichkeit, dass sich das mal jemand anschaut, der sich damit auskennt?

                                            Thomas Braun 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            945
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            2
                                            22
                                            496
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo