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.
    • 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
                      • Thomas Braun
                        Thomas Braun Most Active @TK 0 last edited by Thomas Braun

                        @tk-0

                        Wird am alten Code des Moduls liegen:

                        github:	1.0.0
                        latest:	1.0.0 for 51 months
                        stable:	1.0.0 for 51 months
                        

                        Bei mir baut das auch nicht, allerdings mit etwas anderen Meldungen:

                        echad@chet:/opt/iobroker $ iobroker add piface
                        NPM version: 8.3.0
                        npm install iobroker.piface@1.0.0 --loglevel error --prefix "/opt/iobroker" (System call)
                        npm ERR! code 1
                        npm ERR! path /opt/iobroker/node_modules/iobroker.piface/node_modules/node-pifacedigital
                        npm ERR! command failed
                        npm ERR! command sh -c node-gyp rebuild
                        npm ERR! make: Entering directory '/opt/iobroker/node_modules/iobroker.piface/node_modules/node-pifacedigital/build'
                        npm ERR!   CXX(target) Release/obj.target/pifacedigital/src/cpp/init.o
                        npm ERR! make: Leaving directory '/opt/iobroker/node_modules/iobroker.piface/node_modules/node-pifacedigital/build'
                        npm ERR! (node:2953) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.
                        npm ERR! (Use `node --trace-deprecation ...` to show where the warning was created)
                        npm ERR! In file included from ../src/cpp/init.cc:2:
                        npm ERR! ../src/cpp/NPIFaceDigital.h: In function ‘void AsyncAfter(uv_work_t*, int)’:
                        npm ERR! ../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])’
                        npm ERR!    74 |  info->callback->Call(Null(info->isolate),argc,argv);
                        npm ERR!       |                                                    ^
                        npm ERR! In file included from /home/iobroker/.node-gyp/17.3.0/include/node/v8.h:34,
                        npm ERR!                  from /home/iobroker/.node-gyp/17.3.0/include/node/node.h:63,
                        npm ERR!                  from ../src/cpp/init.cc:1:
                        npm ERR! /home/iobroker/.node-gyp/17.3.0/include/node/v8-function.h:54:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)’
                        npm ERR!    54 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context,
                        npm ERR!       |                                           ^~~~
                        npm ERR! /home/iobroker/.node-gyp/17.3.0/include/node/v8-function.h:54:43: note:   candidate expects 4 arguments, 3 provided
                        npm ERR! In file included from ../src/cpp/init.cc:1:
                        npm ERR! ../src/cpp/init.cc: At global scope:
                        npm ERR! /home/iobroker/.node-gyp/17.3.0/include/node/node.h:843:7: 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]
                        npm ERR!   843 |       (node::addon_register_func) (regfunc),                          \
                        npm ERR!       |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                        npm ERR! /home/iobroker/.node-gyp/17.3.0/include/node/node.h:877:3: note: in expansion of macro ‘NODE_MODULE_X’
                        npm ERR!   877 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
                        npm ERR!       |   ^~~~~~~~~~~~~
                        npm ERR! ../src/cpp/init.cc:10:1: note: in expansion of macro ‘NODE_MODULE’
                        npm ERR!    10 | NODE_MODULE(pifacedigital, Initialize)
                        npm ERR!       | ^~~~~~~~~~~
                        npm ERR! In file included from ../src/cpp/init.cc:2:
                        npm ERR! ../src/cpp/NPIFaceDigital.h:61:13: warning: ‘void AsyncAfter(uv_work_t*, int)’ defined but not used [-Wunused-function]
                        npm ERR!    61 | static void AsyncAfter(uv_work_t *req, int status)
                        npm ERR!       |             ^~~~~~~~~~
                        npm ERR! ../src/cpp/NPIFaceDigital.h:34:13: warning: ‘void WaitForAsync(uv_work_t*)’ defined but not used [-Wunused-function]
                        npm ERR!    34 | static void WaitForAsync(uv_work_t *req)
                        npm ERR!       |             ^~~~~~~~~~~~
                        npm ERR! make: *** [pifacedigital.target.mk:114: Release/obj.target/pifacedigital/src/cpp/init.o] Error 1
                        npm ERR! gyp ERR! build error
                        npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
                        npm ERR! gyp ERR! stack     at ChildProcess.onExit (/opt/iobroker/node_modules/iobroker.piface/node_modules/node-gyp/lib/build.js:262:23)
                        npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:390:28)
                        npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
                        npm ERR! gyp ERR! System Linux 5.10.63-v8+
                        npm ERR! gyp ERR! command "/usr/bin/node" "/opt/iobroker/node_modules/iobroker.piface/node_modules/.bin/node-gyp" "rebuild"
                        npm ERR! gyp ERR! cwd /opt/iobroker/node_modules/iobroker.piface/node_modules/node-pifacedigital
                        npm ERR! gyp ERR! node -v v17.3.0
                        npm ERR! gyp ERR! node-gyp -v v3.8.0
                        npm ERR! gyp ERR! not ok
                        
                        npm ERR! A complete log of this run can be found in:
                        npm ERR!     /home/iobroker/.npm/_logs/2021-12-23T16_57_41_135Z-debug-0.log
                        host.chet Cannot install iobroker.piface@1.0.0: 1
                        

                        Mach ein Issue auf. Wenn das Modul noch gepflegt werden sollte...
                        Schaut aber ehrlich gesagt nicht so aus.

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

                        Support us

                        ioBroker
                        Community Adapters
                        Donate

                        946
                        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