NEWS
Fehler bei Installation i2c Adapter
-
@thomas-braun Ja, das ist mir auch aufgefallen. Ich habe den Update nach Deiner Anleitung durchgeführt, und das ursprüngliche System war eben noch 32-bit. Der Update bleibt auf dieser Variante, so wie ich das verstehe. 64-bit würde eine komplette Neuinstallation bedeuten, korrekt?
-
-
cd /opt/iobroker npm ls npm ls object-assign
-
@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
-
cd /opt/iobroker npm cache clear --force iobroker add i2c --debug
Bitte immer vollständig aus der Konsole kopieren, inkl. log in prompt usw.
-
@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
-
@thomas-braun Bemerkung dazu: Ich habe davor iobroker nicht gestoppt. Ist das korrekt?
-
apt policy npm node-gyp nodejs
-
@chris_b sagte in Fehler bei Installation i2c Adapter:
Ich habe davor iobroker nicht gestoppt. Ist das korrekt?
Das ist wurscht.
-
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
-
Bitte immer vollständig aus der Konsole kopieren, inkl. log in prompt usw.
-
@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:~ $
-
iob stop sudo apt install --reinstall nodejs iob start
-
@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.
-
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:~ $
-
@thomas-braun Und jetzt noch einmal über die Kommandozeile den i2c Adapter installieren versuchen?
-
-
@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:~ $
-
@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:~ $
-
@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?