Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Error/Bug
  4. Fehler bei Installation i2c Adapter

NEWS

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    16
    1
    1.0k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    699

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.0k

Fehler bei Installation i2c Adapter

Geplant Angeheftet Gesperrt Verschoben Error/Bug
58 Beiträge 4 Kommentatoren 4.1k Aufrufe 3 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • Thomas BraunT Thomas Braun

    @chris_b sagte in Fehler bei Installation i2c Adapter:

    Ich habe davor iobroker nicht gestoppt. Ist das korrekt?

    Das ist wurscht.

    C Offline
    C Offline
    Chris_B
    schrieb am zuletzt editiert von
    #42

    @thomas-braun

    npm:
      Installiert:           (keine)
      Installationskandidat: 7.5.2+ds-2
      Versionstabelle:
         7.5.2+ds-2 500
            500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
    node-gyp:
      Installiert:           (keine)
      Installationskandidat: 7.1.2-4
      Versionstabelle:
         7.1.2-4 500
            500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
    nodejs:
      Installiert:           16.19.1-deb-1nodesource1
      Installationskandidat: 16.19.1-deb-1nodesource1
      Versionstabelle:
     *** 16.19.1-deb-1nodesource1 500
            500 https://deb.nodesource.com/node_16.x bullseye/main armhf Packages
            100 /var/lib/dpkg/status
         12.22.12~dfsg-1~deb11u3 500
            500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
    
    Thomas BraunT 2 Antworten Letzte Antwort
    0
    • C Chris_B

      @thomas-braun

      npm:
        Installiert:           (keine)
        Installationskandidat: 7.5.2+ds-2
        Versionstabelle:
           7.5.2+ds-2 500
              500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
      node-gyp:
        Installiert:           (keine)
        Installationskandidat: 7.1.2-4
        Versionstabelle:
           7.1.2-4 500
              500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
      nodejs:
        Installiert:           16.19.1-deb-1nodesource1
        Installationskandidat: 16.19.1-deb-1nodesource1
        Versionstabelle:
       *** 16.19.1-deb-1nodesource1 500
              500 https://deb.nodesource.com/node_16.x bullseye/main armhf Packages
              100 /var/lib/dpkg/status
           12.22.12~dfsg-1~deb11u3 500
              500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
      
      Thomas BraunT Online
      Thomas BraunT Online
      Thomas Braun
      Most Active
      schrieb am zuletzt editiert von
      #43

      @chris_b

      Bitte immer vollständig aus der Konsole kopieren, inkl. log in prompt usw.

      Linux-Werkzeugkasten:
      https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
      NodeJS Fixer Skript:
      https://forum.iobroker.net/topic/68035/iob-node-fix-skript
      iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

      C 1 Antwort Letzte Antwort
      0
      • Thomas BraunT Thomas Braun

        @chris_b

        Bitte immer vollständig aus der Konsole kopieren, inkl. log in prompt usw.

        C Offline
        C Offline
        Chris_B
        schrieb am zuletzt editiert von
        #44

        @thomas-braun Sorry, eigentlich war das bis auf die Kommandozeile und die Zeile danach vollständig. Hier nochmals mit den zusätzlichen 2 Zeilen:

        pi@raspberrypi4-iob:~ $ apt policy npm node-gyp nodejs
        npm:
          Installiert:           (keine)
          Installationskandidat: 7.5.2+ds-2
          Versionstabelle:
             7.5.2+ds-2 500
                500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
        node-gyp:
          Installiert:           (keine)
          Installationskandidat: 7.1.2-4
          Versionstabelle:
             7.1.2-4 500
                500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
        nodejs:
          Installiert:           16.19.1-deb-1nodesource1
          Installationskandidat: 16.19.1-deb-1nodesource1
          Versionstabelle:
         *** 16.19.1-deb-1nodesource1 500
                500 https://deb.nodesource.com/node_16.x bullseye/main armhf Packages
                100 /var/lib/dpkg/status
             12.22.12~dfsg-1~deb11u3 500
                500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
        pi@raspberrypi4-iob:~ $
        
        Thomas BraunT 1 Antwort Letzte Antwort
        0
        • C Chris_B

          @thomas-braun

          npm:
            Installiert:           (keine)
            Installationskandidat: 7.5.2+ds-2
            Versionstabelle:
               7.5.2+ds-2 500
                  500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
          node-gyp:
            Installiert:           (keine)
            Installationskandidat: 7.1.2-4
            Versionstabelle:
               7.1.2-4 500
                  500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
          nodejs:
            Installiert:           16.19.1-deb-1nodesource1
            Installationskandidat: 16.19.1-deb-1nodesource1
            Versionstabelle:
           *** 16.19.1-deb-1nodesource1 500
                  500 https://deb.nodesource.com/node_16.x bullseye/main armhf Packages
                  100 /var/lib/dpkg/status
               12.22.12~dfsg-1~deb11u3 500
                  500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
          
          Thomas BraunT Online
          Thomas BraunT Online
          Thomas Braun
          Most Active
          schrieb am zuletzt editiert von
          #45

          @chris_b

          iob stop
          sudo apt install --reinstall nodejs
          iob start
          

          Linux-Werkzeugkasten:
          https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
          NodeJS Fixer Skript:
          https://forum.iobroker.net/topic/68035/iob-node-fix-skript
          iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

          C 1 Antwort Letzte Antwort
          0
          • C Chris_B

            @thomas-braun Sorry, eigentlich war das bis auf die Kommandozeile und die Zeile danach vollständig. Hier nochmals mit den zusätzlichen 2 Zeilen:

            pi@raspberrypi4-iob:~ $ apt policy npm node-gyp nodejs
            npm:
              Installiert:           (keine)
              Installationskandidat: 7.5.2+ds-2
              Versionstabelle:
                 7.5.2+ds-2 500
                    500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
            node-gyp:
              Installiert:           (keine)
              Installationskandidat: 7.1.2-4
              Versionstabelle:
                 7.1.2-4 500
                    500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
            nodejs:
              Installiert:           16.19.1-deb-1nodesource1
              Installationskandidat: 16.19.1-deb-1nodesource1
              Versionstabelle:
             *** 16.19.1-deb-1nodesource1 500
                    500 https://deb.nodesource.com/node_16.x bullseye/main armhf Packages
                    100 /var/lib/dpkg/status
                 12.22.12~dfsg-1~deb11u3 500
                    500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
            pi@raspberrypi4-iob:~ $
            
            Thomas BraunT Online
            Thomas BraunT Online
            Thomas Braun
            Most Active
            schrieb am zuletzt editiert von
            #46

            @chris_b sagte in Fehler bei Installation i2c Adapter:

            bis auf die Kommandozeile und die Zeile danach vollständig.

            Und die fehlten halt. Anhand der Zeilen kann man viel besser sehen wo du da wie unterwegs bist und ob das vollständig ist.

            Linux-Werkzeugkasten:
            https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
            NodeJS Fixer Skript:
            https://forum.iobroker.net/topic/68035/iob-node-fix-skript
            iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

            C 1 Antwort Letzte Antwort
            0
            • Thomas BraunT Thomas Braun

              @chris_b

              iob stop
              sudo apt install --reinstall nodejs
              iob start
              
              C Offline
              C Offline
              Chris_B
              schrieb am zuletzt editiert von
              #47

              @thomas-braun

              pi@raspberrypi4-iob:~ $ iob stop
              pi@raspberrypi4-iob:~ $ sudo apt install --reinstall nodejs
              Paketlisten werden gelesen… Fertig
              Abhängigkeitsbaum wird aufgebaut… Fertig
              Statusinformationen werden eingelesen… Fertig
              Die folgenden Pakete wurden automatisch installiert und werden nicht mehr benötigt:
                bsdmainutils g++-8 geoip-database libbind9-161 libcroco3 libdns1104 libdns1110 libevent-2.1-6 libfl2
                libgdk-pixbuf2.0-0 libgeoip1 libicu63 libisc1100 libisc1105 libisccc161 libisccfg163 libisl19
                libjim0.77 libjsoncpp1 liblwres161 libmpdec2 libncursesw5 libperl5.28 libpython2-dev
                libpython2-stdlib libpython2.7 libpython2.7-dev libpython2.7-minimal libpython2.7-stdlib
                libpython3.7 libpython3.7-minimal libpython3.7-stdlib libstdc++-8-dev perl-modules-5.28 python2
                python2-dev python2-minimal python2.7 python2.7-dev python2.7-minimal python3.7-minimal raspinfo
                rpi.gpio-common usb.ids
              Verwenden Sie »sudo apt autoremove«, um sie zu entfernen.
              0 aktualisiert, 0 neu installiert, 1 erneut installiert, 0 zu entfernen und 0 nicht aktualisiert.
              Es müssen 24.2 MB an Archiven heruntergeladen werden.
              Nach dieser Operation werden 0 B Plattenplatz zusätzlich benutzt.
              Holen:1 https://deb.nodesource.com/node_16.x bullseye/main armhf nodejs armhf 16.19.1-deb-1nodesource1 [24.2 MB]
              Es wurden 24.2 MB in 2 s geholt (15.2 MB/s).
              (Lese Datenbank ... 57038 Dateien und Verzeichnisse sind derzeit installiert.)
              Vorbereitung zum Entpacken von .../nodejs_16.19.1-deb-1nodesource1_armhf.deb ...
              Entpacken von nodejs (16.19.1-deb-1nodesource1) über (16.19.1-deb-1nodesource1) ...
              nodejs (16.19.1-deb-1nodesource1) wird eingerichtet ...
              Trigger für man-db (2.9.4-2) werden verarbeitet ...
              pi@raspberrypi4-iob:~ $ iob start
              pi@raspberrypi4-iob:~ $
              
              1 Antwort Letzte Antwort
              0
              • Thomas BraunT Thomas Braun

                @chris_b sagte in Fehler bei Installation i2c Adapter:

                bis auf die Kommandozeile und die Zeile danach vollständig.

                Und die fehlten halt. Anhand der Zeilen kann man viel besser sehen wo du da wie unterwegs bist und ob das vollständig ist.

                C Offline
                C Offline
                Chris_B
                schrieb am zuletzt editiert von
                #48

                @thomas-braun Und jetzt noch einmal über die Kommandozeile den i2c Adapter installieren versuchen?

                Thomas BraunT 1 Antwort Letzte Antwort
                0
                • C Chris_B

                  @thomas-braun Und jetzt noch einmal über die Kommandozeile den i2c Adapter installieren versuchen?

                  Thomas BraunT Online
                  Thomas BraunT Online
                  Thomas Braun
                  Most Active
                  schrieb am zuletzt editiert von
                  #49

                  @chris_b

                  Versuch nochmal

                  iobroker add i2c --debug
                  

                  Linux-Werkzeugkasten:
                  https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                  NodeJS Fixer Skript:
                  https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                  iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                  C 1 Antwort Letzte Antwort
                  0
                  • Thomas BraunT Thomas Braun

                    @chris_b

                    Versuch nochmal

                    iobroker add i2c --debug
                    
                    C Offline
                    C Offline
                    Chris_B
                    schrieb am zuletzt editiert von
                    #50

                    @thomas-braun Irgend etwas ist mit dem Adapter nicht OK. Ich glaube nicht, dass es an meinem System liegt.

                    pi@raspberrypi4-iob:~ $ iobroker add i2c --debug
                    NPM version: 8.19.3
                    Installing iobroker.i2c@1.2.1... (System call)
                    npm ERR! code 1
                    npm ERR! path /opt/iobroker/node_modules/i2c-bus
                    npm ERR! command failed
                    npm ERR! command sh -c -- node-gyp rebuild
                    npm ERR! node:internal/modules/cjs/loader:1024
                    npm ERR!   throw err;
                    npm ERR!   ^
                    npm ERR!
                    npm ERR! Error: Cannot find module 'object-assign'
                    npm ERR! Require stack:
                    npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js
                    npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/plumbing.js
                    npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/index.js
                    npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/npmlog/log.js
                    npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js
                    npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js
                    npm ERR!     at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1021:15)
                    npm ERR!     at Function.Module._load (node:internal/modules/cjs/loader:866:27)
                    npm ERR!     at Module.require (node:internal/modules/cjs/loader:1093:19)
                    npm ERR!     at require (node:internal/modules/cjs/helpers:108:18)
                    npm ERR!     at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js:4:20)
                    npm ERR!     at Module._compile (node:internal/modules/cjs/loader:1191:14)
                    npm ERR!     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1245:10)
                    npm ERR!     at Module.load (node:internal/modules/cjs/loader:1069:32)
                    npm ERR!     at Function.Module._load (node:internal/modules/cjs/loader:904:12)
                    npm ERR!     at Module.require (node:internal/modules/cjs/loader:1093:19) {
                    npm ERR!   code: 'MODULE_NOT_FOUND',
                    npm ERR!   requireStack: [
                    npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js',
                    npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/plumbing.js',
                    npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/index.js',
                    npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/npmlog/log.js',
                    npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js',
                    npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js'
                    npm ERR!   ]
                    npm ERR! }
                    
                    npm ERR! A complete log of this run can be found in:
                    npm ERR!     /home/iobroker/.npm/_logs/2023-02-18T16_18_11_324Z-debug-0.log
                    host.raspberrypi4-iob Cannot install iobroker.i2c@1.2.1: 1
                    pi@raspberrypi4-iob:~ $
                    
                    Thomas BraunT 2 Antworten Letzte Antwort
                    0
                    • C Chris_B

                      @thomas-braun Irgend etwas ist mit dem Adapter nicht OK. Ich glaube nicht, dass es an meinem System liegt.

                      pi@raspberrypi4-iob:~ $ iobroker add i2c --debug
                      NPM version: 8.19.3
                      Installing iobroker.i2c@1.2.1... (System call)
                      npm ERR! code 1
                      npm ERR! path /opt/iobroker/node_modules/i2c-bus
                      npm ERR! command failed
                      npm ERR! command sh -c -- node-gyp rebuild
                      npm ERR! node:internal/modules/cjs/loader:1024
                      npm ERR!   throw err;
                      npm ERR!   ^
                      npm ERR!
                      npm ERR! Error: Cannot find module 'object-assign'
                      npm ERR! Require stack:
                      npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js
                      npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/plumbing.js
                      npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/index.js
                      npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/npmlog/log.js
                      npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js
                      npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js
                      npm ERR!     at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1021:15)
                      npm ERR!     at Function.Module._load (node:internal/modules/cjs/loader:866:27)
                      npm ERR!     at Module.require (node:internal/modules/cjs/loader:1093:19)
                      npm ERR!     at require (node:internal/modules/cjs/helpers:108:18)
                      npm ERR!     at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js:4:20)
                      npm ERR!     at Module._compile (node:internal/modules/cjs/loader:1191:14)
                      npm ERR!     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1245:10)
                      npm ERR!     at Module.load (node:internal/modules/cjs/loader:1069:32)
                      npm ERR!     at Function.Module._load (node:internal/modules/cjs/loader:904:12)
                      npm ERR!     at Module.require (node:internal/modules/cjs/loader:1093:19) {
                      npm ERR!   code: 'MODULE_NOT_FOUND',
                      npm ERR!   requireStack: [
                      npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js',
                      npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/plumbing.js',
                      npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/index.js',
                      npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/npmlog/log.js',
                      npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js',
                      npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js'
                      npm ERR!   ]
                      npm ERR! }
                      
                      npm ERR! A complete log of this run can be found in:
                      npm ERR!     /home/iobroker/.npm/_logs/2023-02-18T16_18_11_324Z-debug-0.log
                      host.raspberrypi4-iob Cannot install iobroker.i2c@1.2.1: 1
                      pi@raspberrypi4-iob:~ $
                      
                      Thomas BraunT Online
                      Thomas BraunT Online
                      Thomas Braun
                      Most Active
                      schrieb am zuletzt editiert von
                      #51

                      @chris_b sagte in Fehler bei Installation i2c Adapter:

                      Irgend etwas ist mit dem Adapter nicht OK.

                      Nö, der ist prima. Hab ich eben hier ganz sauber installiert:

                      echad@chet:~ $ iobroker add i2c --debug
                      NPM version: 9.4.0
                      Installing iobroker.i2c@1.2.1... (System call)
                      
                      added 2 packages in 19s
                      
                      99 packages are looking for funding
                        run `npm fund` for details
                      host.chet install adapter i2c
                      upload [4] i2c.admin /opt/iobroker/node_modules/iobroker.i2c/admin/build/index.css build/index.css text/css
                      upload [3] i2c.admin /opt/iobroker/node_modules/iobroker.i2c/admin/build/index.js build/index.js application/javascript
                      upload [2] i2c.admin /opt/iobroker/node_modules/iobroker.i2c/admin/i2c.png i2c.png image/png
                      upload [1] i2c.admin /opt/iobroker/node_modules/iobroker.i2c/admin/index_m.html index_m.html text/html
                      upload [0] i2c.admin /opt/iobroker/node_modules/iobroker.i2c/admin/style.css style.css text/css
                      host.chet object system.adapter.i2c created/updated
                      host.chet create instance i2c
                      host.chet object system.adapter.i2c.0.alive created
                      host.chet object system.adapter.i2c.0.connected created
                      host.chet object system.adapter.i2c.0.compactMode created
                      host.chet object system.adapter.i2c.0.cpu created
                      host.chet object system.adapter.i2c.0.cputime created
                      host.chet object system.adapter.i2c.0.memHeapUsed created
                      host.chet object system.adapter.i2c.0.memHeapTotal created
                      host.chet object system.adapter.i2c.0.memRss created
                      host.chet object system.adapter.i2c.0.uptime created
                      host.chet object system.adapter.i2c.0.inputCount created
                      host.chet object system.adapter.i2c.0.outputCount created
                      host.chet object system.adapter.i2c.0.eventLoopLag created
                      host.chet object system.adapter.i2c.0.sigKill created
                      host.chet object system.adapter.i2c.0.logLevel created
                      host.chet object system.adapter.i2c.0 created
                      echad@chet:~ $
                      

                      Linux-Werkzeugkasten:
                      https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                      NodeJS Fixer Skript:
                      https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                      iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                      C 1 Antwort Letzte Antwort
                      0
                      • C Chris_B

                        @thomas-braun Irgend etwas ist mit dem Adapter nicht OK. Ich glaube nicht, dass es an meinem System liegt.

                        pi@raspberrypi4-iob:~ $ iobroker add i2c --debug
                        NPM version: 8.19.3
                        Installing iobroker.i2c@1.2.1... (System call)
                        npm ERR! code 1
                        npm ERR! path /opt/iobroker/node_modules/i2c-bus
                        npm ERR! command failed
                        npm ERR! command sh -c -- node-gyp rebuild
                        npm ERR! node:internal/modules/cjs/loader:1024
                        npm ERR!   throw err;
                        npm ERR!   ^
                        npm ERR!
                        npm ERR! Error: Cannot find module 'object-assign'
                        npm ERR! Require stack:
                        npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js
                        npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/plumbing.js
                        npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/index.js
                        npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/npmlog/log.js
                        npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js
                        npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js
                        npm ERR!     at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1021:15)
                        npm ERR!     at Function.Module._load (node:internal/modules/cjs/loader:866:27)
                        npm ERR!     at Module.require (node:internal/modules/cjs/loader:1093:19)
                        npm ERR!     at require (node:internal/modules/cjs/helpers:108:18)
                        npm ERR!     at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js:4:20)
                        npm ERR!     at Module._compile (node:internal/modules/cjs/loader:1191:14)
                        npm ERR!     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1245:10)
                        npm ERR!     at Module.load (node:internal/modules/cjs/loader:1069:32)
                        npm ERR!     at Function.Module._load (node:internal/modules/cjs/loader:904:12)
                        npm ERR!     at Module.require (node:internal/modules/cjs/loader:1093:19) {
                        npm ERR!   code: 'MODULE_NOT_FOUND',
                        npm ERR!   requireStack: [
                        npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js',
                        npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/plumbing.js',
                        npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/index.js',
                        npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/npmlog/log.js',
                        npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js',
                        npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js'
                        npm ERR!   ]
                        npm ERR! }
                        
                        npm ERR! A complete log of this run can be found in:
                        npm ERR!     /home/iobroker/.npm/_logs/2023-02-18T16_18_11_324Z-debug-0.log
                        host.raspberrypi4-iob Cannot install iobroker.i2c@1.2.1: 1
                        pi@raspberrypi4-iob:~ $
                        
                        Thomas BraunT Online
                        Thomas BraunT Online
                        Thomas Braun
                        Most Active
                        schrieb am zuletzt editiert von
                        #52

                        @chris_b sagte in Fehler bei Installation i2c Adapter:

                        /home/iobroker/.npm/_logs/2023-02-18T16_18_11_324Z-debug-0.log

                        Was steht denn da so drin?

                        Linux-Werkzeugkasten:
                        https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                        NodeJS Fixer Skript:
                        https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                        iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                        1 Antwort Letzte Antwort
                        0
                        • Thomas BraunT Thomas Braun

                          @chris_b sagte in Fehler bei Installation i2c Adapter:

                          Irgend etwas ist mit dem Adapter nicht OK.

                          Nö, der ist prima. Hab ich eben hier ganz sauber installiert:

                          echad@chet:~ $ iobroker add i2c --debug
                          NPM version: 9.4.0
                          Installing iobroker.i2c@1.2.1... (System call)
                          
                          added 2 packages in 19s
                          
                          99 packages are looking for funding
                            run `npm fund` for details
                          host.chet install adapter i2c
                          upload [4] i2c.admin /opt/iobroker/node_modules/iobroker.i2c/admin/build/index.css build/index.css text/css
                          upload [3] i2c.admin /opt/iobroker/node_modules/iobroker.i2c/admin/build/index.js build/index.js application/javascript
                          upload [2] i2c.admin /opt/iobroker/node_modules/iobroker.i2c/admin/i2c.png i2c.png image/png
                          upload [1] i2c.admin /opt/iobroker/node_modules/iobroker.i2c/admin/index_m.html index_m.html text/html
                          upload [0] i2c.admin /opt/iobroker/node_modules/iobroker.i2c/admin/style.css style.css text/css
                          host.chet object system.adapter.i2c created/updated
                          host.chet create instance i2c
                          host.chet object system.adapter.i2c.0.alive created
                          host.chet object system.adapter.i2c.0.connected created
                          host.chet object system.adapter.i2c.0.compactMode created
                          host.chet object system.adapter.i2c.0.cpu created
                          host.chet object system.adapter.i2c.0.cputime created
                          host.chet object system.adapter.i2c.0.memHeapUsed created
                          host.chet object system.adapter.i2c.0.memHeapTotal created
                          host.chet object system.adapter.i2c.0.memRss created
                          host.chet object system.adapter.i2c.0.uptime created
                          host.chet object system.adapter.i2c.0.inputCount created
                          host.chet object system.adapter.i2c.0.outputCount created
                          host.chet object system.adapter.i2c.0.eventLoopLag created
                          host.chet object system.adapter.i2c.0.sigKill created
                          host.chet object system.adapter.i2c.0.logLevel created
                          host.chet object system.adapter.i2c.0 created
                          echad@chet:~ $
                          
                          C Offline
                          C Offline
                          Chris_B
                          schrieb am zuletzt editiert von
                          #53

                          @thomas-braun Das steht drin:

                          pi@raspberrypi4-iob:/home/iobroker/.npm/_logs $ nano 2023-02-18T16_18_11_324Z-debug-0.log
                            GNU nano 5.4                      2023-02-18T16_18_11_324Z-debug-0.log
                          0 verbose cli /usr/bin/node /usr/bin/npm
                          1 info using npm@8.19.3
                          2 info using node@v16.19.1
                          3 timing npm:load:whichnode Completed in 0ms
                          4 timing config:load:defaults Completed in 5ms
                          5 timing config:load:file:/usr/lib/node_modules/npm/npmrc Completed in 4ms
                          6 timing config:load:builtin Completed in 4ms
                          7 timing config:load:cli Completed in 6ms
                          8 timing config:load:env Completed in 1ms
                          9 timing config:load:file:/opt/iobroker/.npmrc Completed in 2ms
                          10 timing config:load:project Completed in 5ms
                          11 timing config:load:file:/home/iobroker/.npmrc Completed in 1ms
                          12 timing config:load:user Completed in 1ms
                          13 timing config:load:file:/usr/etc/npmrc Completed in 0ms
                          14 timing config:load:global Completed in 0ms
                          15 timing config:load:validate Completed in 1ms
                          16 timing config:load:credentials Completed in 3ms
                          17 timing config:load:setEnvs Completed in 3ms
                          18 timing config:load Completed in 31ms
                          19 timing npm:load:configload Completed in 32ms
                          20 timing npm:load:mkdirpcache Completed in 3ms
                          21 timing npm:load:mkdirplogs Completed in 0ms
                          22 verbose title npm install iobroker.i2c@1.2.1
                          23 verbose argv "install" "--save-exact" "iobroker.i2c@1.2.1"
                          24 timing npm:load:setTitle Completed in 3ms
                          25 timing config:load:flatten Completed in 9ms
                          26 timing npm:load:display Completed in 11ms
                          27 verbose logfile logs-max:10 dir:/home/iobroker/.npm/_logs
                          28 verbose logfile /home/iobroker/.npm/_logs/2023-02-18T16_18_11_324Z-debug-0.log
                          
                          Thomas BraunT 1 Antwort Letzte Antwort
                          0
                          • C Chris_B

                            @thomas-braun Das steht drin:

                            pi@raspberrypi4-iob:/home/iobroker/.npm/_logs $ nano 2023-02-18T16_18_11_324Z-debug-0.log
                              GNU nano 5.4                      2023-02-18T16_18_11_324Z-debug-0.log
                            0 verbose cli /usr/bin/node /usr/bin/npm
                            1 info using npm@8.19.3
                            2 info using node@v16.19.1
                            3 timing npm:load:whichnode Completed in 0ms
                            4 timing config:load:defaults Completed in 5ms
                            5 timing config:load:file:/usr/lib/node_modules/npm/npmrc Completed in 4ms
                            6 timing config:load:builtin Completed in 4ms
                            7 timing config:load:cli Completed in 6ms
                            8 timing config:load:env Completed in 1ms
                            9 timing config:load:file:/opt/iobroker/.npmrc Completed in 2ms
                            10 timing config:load:project Completed in 5ms
                            11 timing config:load:file:/home/iobroker/.npmrc Completed in 1ms
                            12 timing config:load:user Completed in 1ms
                            13 timing config:load:file:/usr/etc/npmrc Completed in 0ms
                            14 timing config:load:global Completed in 0ms
                            15 timing config:load:validate Completed in 1ms
                            16 timing config:load:credentials Completed in 3ms
                            17 timing config:load:setEnvs Completed in 3ms
                            18 timing config:load Completed in 31ms
                            19 timing npm:load:configload Completed in 32ms
                            20 timing npm:load:mkdirpcache Completed in 3ms
                            21 timing npm:load:mkdirplogs Completed in 0ms
                            22 verbose title npm install iobroker.i2c@1.2.1
                            23 verbose argv "install" "--save-exact" "iobroker.i2c@1.2.1"
                            24 timing npm:load:setTitle Completed in 3ms
                            25 timing config:load:flatten Completed in 9ms
                            26 timing npm:load:display Completed in 11ms
                            27 verbose logfile logs-max:10 dir:/home/iobroker/.npm/_logs
                            28 verbose logfile /home/iobroker/.npm/_logs/2023-02-18T16_18_11_324Z-debug-0.log
                            
                            Thomas BraunT Online
                            Thomas BraunT Online
                            Thomas Braun
                            Most Active
                            schrieb am zuletzt editiert von
                            #54

                            @chris_b

                            Fällt mir nix gescheites zu ein.

                            Linux-Werkzeugkasten:
                            https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                            NodeJS Fixer Skript:
                            https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                            iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                            C 2 Antworten Letzte Antwort
                            0
                            • Thomas BraunT Thomas Braun

                              @chris_b

                              Fällt mir nix gescheites zu ein.

                              C Offline
                              C Offline
                              Chris_B
                              schrieb am zuletzt editiert von
                              #55

                              @thomas-braun Trotzdem vielen Dank für Deine Unterstützung. Den Zugriff auf ein Gerät via i2c Bus kann ich vermutlich auf eine andere Weise lösen.
                              Eine komplette Neuinstallation, dann 64-bit, und iobroker Backup würde die Sache vermutlich auch lösen. Doch dazu habe ich gerade keine Lust; oder einfach jetzt gerade nicht.
                              Gruss

                              1 Antwort Letzte Antwort
                              0
                              • Thomas BraunT Thomas Braun

                                @chris_b

                                Fällt mir nix gescheites zu ein.

                                C Offline
                                C Offline
                                Chris_B
                                schrieb am zuletzt editiert von
                                #56

                                @thomas-braun
                                Ich habe nochmals etwas zu dieser Sache:
                                Der i2c Adapter benötigt vorgängig die Installation des i2c Buses. Es wird dazu auf diesen Link verwiesen:
                                https://www.npmjs.com/package/i2c-bus#installation
                                Ich dachte ich hätte das durchgeführt, habe es aber nach all dem noch einmal versucht, mit
                                npm install i2c-bus
                                Und das, siehe da, führt nun zu folgender Fehlermeldung:

                                pi@raspberrypi4-iob:~ $ npm install i2c-bus
                                npm notice
                                npm notice New major version of npm available! 8.19.3 -> 9.6.1
                                npm notice Changelog: https://github.com/npm/cli/releases/tag/v9.6.1
                                npm notice Run npm install -g npm@9.6.1 to update!
                                npm notice
                                npm ERR! code 1
                                npm ERR! path /home/pi/node_modules/i2c-bus
                                npm ERR! command failed
                                

                                Wieso wird hier npm 9.6.1 empfohlen? Laut iobroker bin ich auf der aktuellen npm Version.

                                Thomas BraunT 1 Antwort Letzte Antwort
                                0
                                • C Chris_B

                                  @thomas-braun
                                  Ich habe nochmals etwas zu dieser Sache:
                                  Der i2c Adapter benötigt vorgängig die Installation des i2c Buses. Es wird dazu auf diesen Link verwiesen:
                                  https://www.npmjs.com/package/i2c-bus#installation
                                  Ich dachte ich hätte das durchgeführt, habe es aber nach all dem noch einmal versucht, mit
                                  npm install i2c-bus
                                  Und das, siehe da, führt nun zu folgender Fehlermeldung:

                                  pi@raspberrypi4-iob:~ $ npm install i2c-bus
                                  npm notice
                                  npm notice New major version of npm available! 8.19.3 -> 9.6.1
                                  npm notice Changelog: https://github.com/npm/cli/releases/tag/v9.6.1
                                  npm notice Run npm install -g npm@9.6.1 to update!
                                  npm notice
                                  npm ERR! code 1
                                  npm ERR! path /home/pi/node_modules/i2c-bus
                                  npm ERR! command failed
                                  

                                  Wieso wird hier npm 9.6.1 empfohlen? Laut iobroker bin ich auf der aktuellen npm Version.

                                  Thomas BraunT Online
                                  Thomas BraunT Online
                                  Thomas Braun
                                  Most Active
                                  schrieb am zuletzt editiert von
                                  #57

                                  @chris_b sagte in Fehler bei Installation i2c Adapter:

                                  pi@raspberrypi4-iob:~ $ npm install i2c-bus

                                  Du stehst im falschen Pfad...
                                  Und die Meldungen zu npm kommen immer, wenn man von Hand mit npm herumfummelt. Ignorieren.

                                  Linux-Werkzeugkasten:
                                  https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                                  NodeJS Fixer Skript:
                                  https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                                  iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                                  1 Antwort Letzte Antwort
                                  0
                                  • C Offline
                                    C Offline
                                    Chris_B
                                    schrieb am zuletzt editiert von
                                    #58

                                    Ich habe mich nochmals dieses Themas angenommen.
                                    Habe eine komplett neue Installation gestartet (Bullseye Lite, diesmal 64-bit) und danach das Backit-up Backup eingespielt. Ein paar Details gelöst, und jetzt kann ich den I2C Adapter ohne Probleme installieren.
                                    Keine Ahnung, was der Grund war, aber jetzt geht es.

                                    1 Antwort Letzte Antwort
                                    0
                                    Antworten
                                    • In einem neuen Thema antworten
                                    Anmelden zum Antworten
                                    • Älteste zuerst
                                    • Neuste zuerst
                                    • Meiste Stimmen


                                    Support us

                                    ioBroker
                                    Community Adapters
                                    Donate

                                    733

                                    Online

                                    32.6k

                                    Benutzer

                                    82.0k

                                    Themen

                                    1.3m

                                    Beiträge
                                    Community
                                    Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                    ioBroker Community 2014-2025
                                    logo
                                    • Anmelden

                                    • Du hast noch kein Konto? Registrieren

                                    • Anmelden oder registrieren, um zu suchen
                                    • Erster Beitrag
                                      Letzter Beitrag
                                    0
                                    • Home
                                    • Aktuell
                                    • Tags
                                    • Ungelesen 0
                                    • Kategorien
                                    • Unreplied
                                    • Beliebt
                                    • GitHub
                                    • Docu
                                    • Hilfe