Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. Fehler bei Installation i2c Adapter

    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

    Fehler bei Installation i2c Adapter

    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      Chris_B @Thomas Braun last edited by

      @thomas-braun So sieht es aus:

      iobroker.inst@3.0.0 /opt/iobroker
      ├── @types/caseless@0.12.2 extraneous
      ├── @types/request@2.48.8 extraneous
      ├── @types/tough-cookie@4.0.2 extraneous
      ├── coffeescript@1.12.7 extraneous
      ├── iobroker.admin@6.3.5
      ├── iobroker.backitup@2.5.12
      ├── iobroker.cloud@4.3.0
      ├── iobroker.denon@1.13.4
      ├── iobroker.discovery@3.1.0
      ├── iobroker.email@1.1.4
      ├── iobroker.flot@1.11.0
      ├── iobroker.heos@1.10.0
      ├── iobroker.history@2.2.4
      ├── iobroker.homekit-controller@0.5.1
      ├── iobroker.hue@3.7.1
      ├── iobroker.info@1.9.19
      ├── iobroker.javascript@6.1.4
      ├── iobroker.js-controller@4.0.24
      ├── iobroker.netatmo@2.0.5
      ├── iobroker.ping@1.5.3
      ├── iobroker.rpi2@1.3.2
      ├── iobroker.simple-api@2.7.2
      ├── iobroker.socketio@4.2.0
      ├── iobroker.vis-hqwidgets@1.3.0
      ├── iobroker.vis@1.4.15
      ├── iobroker.web@4.3.0
      ├── iobroker.yahka@0.13.1
      ├── jsonata@1.8.6 extraneous
      ├── node-inspect@2.0.0 extraneous
      ├── picocolors@1.0.0 extraneous
      ├── suncalc2@1.8.1 extraneous
      ├── typescript@4.8.2 extraneous
      ├── virtual-tsc@0.6.2 extraneous
      └── wake_on_lan@1.0.0 extraneous
      
      iobroker.inst@3.0.0 /opt/iobroker
      └─┬ iobroker.homekit-controller@0.5.1
        └─┬ hap-controller@0.8.1
          └─┬ @abandonware/noble@1.9.2-15
            └─┬ @abandonware/bluetooth-hci-socket@0.5.3-8
              └─┬ @mapbox/node-pre-gyp@1.0.9
                └─┬ npmlog@5.0.1
                  └─┬ gauge@3.0.2
                    └── object-assign@4.1.1
      
      Thomas Braun 1 Reply Last reply Reply Quote 0
      • Thomas Braun
        Thomas Braun Most Active @Chris_B last edited by Thomas Braun

        @chris_b

        cd /opt/iobroker 
        npm cache clear --force
        iobroker add i2c --debug
        

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

        C 2 Replies Last reply Reply Quote 0
        • C
          Chris_B @Thomas Braun last edited by

          @thomas-braun Das löschen des Caches scheint auch nichts zu bringen.

          pi@raspberrypi4-iob:/opt/iobroker $ npm cache clear --force
          npm WARN using --force Recommended protections disabled.
          pi@raspberrypi4-iob:/opt/iobroker $ iobroker add i2c auto --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/r    ender-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-18T15_54_49_210Z-debug-0.log
          host.raspberrypi4-iob Cannot install iobroker.i2c@1.2.1: 1
          
          1 Reply Last reply Reply Quote 0
          • C
            Chris_B @Thomas Braun last edited by

            @thomas-braun Bemerkung dazu: Ich habe davor iobroker nicht gestoppt. Ist das korrekt?

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

              @chris_b

              apt policy npm node-gyp nodejs
              
              1 Reply Last reply Reply Quote 0
              • Thomas Braun
                Thomas Braun Most Active @Chris_B last edited by

                @chris_b sagte in Fehler bei Installation i2c Adapter:

                Ich habe davor iobroker nicht gestoppt. Ist das korrekt?

                Das ist wurscht.

                C 1 Reply Last reply Reply Quote 0
                • C
                  Chris_B @Thomas Braun last edited by

                  @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 Braun 2 Replies Last reply Reply Quote 0
                  • Thomas Braun
                    Thomas Braun Most Active @Chris_B last edited by

                    @chris_b

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

                    C 1 Reply Last reply Reply Quote 0
                    • C
                      Chris_B @Thomas Braun last edited by

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

                        @chris_b

                        iob stop
                        sudo apt install --reinstall nodejs
                        iob start
                        
                        C 1 Reply Last reply Reply Quote 0
                        • Thomas Braun
                          Thomas Braun Most Active @Chris_B last edited by

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

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

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

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

                                @chris_b

                                Versuch nochmal

                                iobroker add i2c --debug
                                
                                C 1 Reply Last reply Reply Quote 0
                                • C
                                  Chris_B @Thomas Braun last edited by

                                  @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 Braun 2 Replies Last reply Reply Quote 0
                                  • Thomas Braun
                                    Thomas Braun Most Active @Chris_B last edited by

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

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

                                      1 Reply Last reply Reply Quote 0
                                      • C
                                        Chris_B @Thomas Braun last edited by

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

                                          @chris_b

                                          Fällt mir nix gescheites zu ein.

                                          C 2 Replies Last reply Reply Quote 0
                                          • C
                                            Chris_B @Thomas Braun last edited by

                                            @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 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            837
                                            Online

                                            31.8k
                                            Users

                                            80.0k
                                            Topics

                                            1.3m
                                            Posts

                                            4
                                            58
                                            1912
                                            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