Node node-red-contrib-speedtest lässt sich nicht installieren

Node-RED als CCU3/RaspberryMatic Addon, WebApp, HomeKit, ...

Moderator: Co-Administratoren

Antworten
Nooblucker
Beiträge: 36
Registriert: 17.06.2017, 15:47
Hat sich bedankt: 10 Mal

Node node-red-contrib-speedtest lässt sich nicht installieren

Beitrag von Nooblucker » 02.12.2023, 12:24

Hallo liebe RedMatic-Gemeinde,

Vielleicht gibt es jemand der mir hier weiterhelfen kann. Die Installation von node-red-contrib-speedtest ist bei mir unter RedMatic nicht möglich. Wichtig, dass hat nichts mit dem Update von Henke/Red-Matic zu tun. Die Node läuft wunderbar auf einer NodeRed-Installation aber eben eine Installation auf RedMatic wird mit einer Fehlermeldung abgebrochen, siehe nachstehende Fehlermeldung. Die Node konnte ich auch vor dem Update der RedMatic nicht auf RedMatic installieren - was eigentlich schade ist.

Freue mich auf Input und hoffe es kann evtl. auch anderen weiterhelfen.

LG
Kay-Uwe
-----------------------------------------------------------
2023-12-02T11:19:18.757Z Installieren : node-red-contrib-speedtest 1.1.0

2023-12-02T11:19:18.789Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-contrib-speedtest@1.1.0
2023-12-02T11:19:19.519Z [err] npm
2023-12-02T11:19:19.520Z [err]
2023-12-02T11:19:19.521Z [err] WARN
2023-12-02T11:19:19.521Z [err]
2023-12-02T11:19:19.521Z [err] config
2023-12-02T11:19:19.521Z [err] production Use `--omit=dev` instead.
2023-12-02T11:19:32.474Z [err] npm
2023-12-02T11:19:32.474Z [err] WARN deprecated node-pre-gyp@0.11.0: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future
2023-12-02T11:19:34.204Z [err] npm
2023-12-02T11:19:34.204Z [err]
2023-12-02T11:19:34.205Z [err] ERR!
2023-12-02T11:19:34.205Z [err]
2023-12-02T11:19:34.205Z [err] code
2023-12-02T11:19:34.205Z [err] 1
2023-12-02T11:19:34.205Z [err] npm
2023-12-02T11:19:34.206Z [err]
2023-12-02T11:19:34.206Z [err] ERR!
2023-12-02T11:19:34.206Z [err]
2023-12-02T11:19:34.206Z [err] path
2023-12-02T11:19:34.206Z [err] /usr/local/addons/redmatic/var/node_modules/lzma-native
2023-12-02T11:19:34.209Z [err] npm
2023-12-02T11:19:34.209Z [err]
2023-12-02T11:19:34.210Z [err] ERR!
2023-12-02T11:19:34.210Z [err] command failed
2023-12-02T11:19:34.210Z [err] npm
2023-12-02T11:19:34.210Z [err]
2023-12-02T11:19:34.210Z [err] ERR!
2023-12-02T11:19:34.210Z [err]
2023-12-02T11:19:34.210Z [err] command
2023-12-02T11:19:34.211Z [err] sh -c node-pre-gyp install --fallback-to-build && rimraf build
2023-12-02T11:19:34.213Z [err] npm
2023-12-02T11:19:34.213Z [err] ERR!
2023-12-02T11:19:34.213Z [err] Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/usr/local/addons/redmatic/var/node_modules/lzma-native/binding-v4.0.6-node-v108-linux-x64/lzma_native.node --module_name=lzma_native --module_path=/usr/local/addons/redmatic/var/node_modules/lzma-native/binding-v4.0.6-node-v108-linux-x64 --napi_version=9 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v108' (1)
2023-12-02T11:19:34.213Z [err] npm
2023-12-02T11:19:34.214Z [err] ERR! node-pre-gyp info it worked if it ends with ok
2023-12-02T11:19:34.214Z [err] npm
2023-12-02T11:19:34.214Z [err] ERR! node-pre-gyp info using node-pre-gyp@0.11.0
2023-12-02T11:19:34.214Z [err] npm ERR!
2023-12-02T11:19:34.214Z [err] node-pre-gyp info using node@18.18.2 | linux | x64
2023-12-02T11:19:34.214Z [err] npm
2023-12-02T11:19:34.214Z [err] ERR! node-pre-gyp WARN Using request for node-pre-gyp https download
2023-12-02T11:19:34.214Z [err] npm
2023-12-02T11:19:34.214Z [err] ERR! node-pre-gyp info check checked for "/usr/local/addons/redmatic/var/node_modules/lzma-native/binding-v4.0.6-node-v108-linux-x64/lzma_native.node" (not found)
2023-12-02T11:19:34.214Z [err] npm
2023-12-02T11:19:34.214Z [err] ERR! node-pre-gyp http GET https://node-pre-gyp.addaleax.net/lzma- ... x64.tar.gz
2023-12-02T11:19:34.214Z [err] npm
2023-12-02T11:19:34.214Z [err] ERR! node-pre-gyp http 404 https://node-pre-gyp.addaleax.net/lzma- ... x64.tar.gz
2023-12-02T11:19:34.214Z [err] npm
2023-12-02T11:19:34.214Z [err] ERR! node-pre-gyp WARN Tried to download(404): https://node-pre-gyp.addaleax.net/lzma- ... x64.tar.gz
2023-12-02T11:19:34.214Z [err] npm
2023-12-02T11:19:34.214Z [err] ERR! node-pre-gyp WARN Pre-built binaries not found for lzma-native@4.0.6 and node@18.18.2 (node-v108 ABI, glibc) (falling back to source compile with node-gyp)
2023-12-02T11:19:34.214Z [err] npm ERR! node-pre-gyp http 404 status code downloading tarball https://node-pre-gyp.addaleax.net/lzma- ... x64.tar.gz
2023-12-02T11:19:34.215Z [err] npm ERR!
2023-12-02T11:19:34.215Z [err] gyp info it worked if it ends with ok
2023-12-02T11:19:34.215Z [err] npm ERR!
2023-12-02T11:19:34.215Z [err] gyp info using node-gyp@9.4.0
2023-12-02T11:19:34.215Z [err] npm ERR!
2023-12-02T11:19:34.215Z [err] gyp info using node@18.18.2 | linux | x64
2023-12-02T11:19:34.215Z [err] npm ERR!
2023-12-02T11:19:34.215Z [err] gyp info ok
2023-12-02T11:19:34.215Z [err] npm
2023-12-02T11:19:34.215Z [err] ERR! gyp info it worked if it ends with ok
2023-12-02T11:19:34.215Z [err] npm
2023-12-02T11:19:34.215Z [err] ERR! gyp info using node-gyp@9.4.0
2023-12-02T11:19:34.215Z [err] npm
2023-12-02T11:19:34.215Z [err] ERR! gyp info using node@18.18.2 | linux | x64
2023-12-02T11:19:34.215Z [err] npm
2023-12-02T11:19:34.215Z [err] ERR! gyp ERR! find Python
2023-12-02T11:19:34.215Z [err] npm
2023-12-02T11:19:34.215Z [err] ERR! gyp ERR! find Python Python is not set from command line or npm configuration
2023-12-02T11:19:34.215Z [err] npm
2023-12-02T11:19:34.215Z [err] ERR! gyp ERR! find Python Python is not set from environment variable PYTHON
2023-12-02T11:19:34.215Z [err] npm
2023-12-02T11:19:34.215Z [err] ERR! gyp ERR! find Python checking if "python3" can be used
2023-12-02T11:19:34.215Z [err] npm
2023-12-02T11:19:34.215Z [err] ERR! gyp ERR! find Python - "python3" is not in PATH or produced an error
2023-12-02T11:19:34.215Z [err] npm ERR! gyp ERR! find Python checking if "python" can be used
2023-12-02T11:19:34.215Z [err] npm
2023-12-02T11:19:34.215Z [err] ERR! gyp ERR! find Python - "python" is not in PATH or produced an error
2023-12-02T11:19:34.215Z [err] npm ERR! gyp ERR! find Python
2023-12-02T11:19:34.216Z [err] npm ERR!
2023-12-02T11:19:34.216Z [err] gyp ERR! find Python **********************************************************
2023-12-02T11:19:34.216Z [err] npm ERR!
2023-12-02T11:19:34.216Z [err] gyp ERR! find Python You need to install the latest version of Python.
2023-12-02T11:19:34.216Z [err] npm ERR!
2023-12-02T11:19:34.216Z [err] gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
2023-12-02T11:19:34.216Z [err] npm ERR! gyp ERR! find Python you can try one of the following options:
2023-12-02T11:19:34.216Z [err] npm
2023-12-02T11:19:34.216Z [err] ERR! gyp ERR! find Python - Use the switch --python="/path/to/pythonexecutable"
2023-12-02T11:19:34.216Z [err] npm
2023-12-02T11:19:34.216Z [err] ERR! gyp ERR! find Python (accepted by both node-gyp and npm)
2023-12-02T11:19:34.216Z [err] npm
2023-12-02T11:19:34.216Z [err] ERR! gyp ERR! find Python - Set the environment variable PYTHON
2023-12-02T11:19:34.216Z [err] npm
2023-12-02T11:19:34.216Z [err] ERR! gyp ERR! find Python - Set the npm configuration variable python:
2023-12-02T11:19:34.216Z [err] npm
2023-12-02T11:19:34.216Z [err] ERR! gyp ERR! find Python npm config set python "/path/to/pythonexecutable"
2023-12-02T11:19:34.216Z [err] npm
2023-12-02T11:19:34.216Z [err] ERR! gyp ERR! find Python For more information consult the documentation at:
2023-12-02T11:19:34.216Z [err] npm
2023-12-02T11:19:34.216Z [err] ERR! gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
2023-12-02T11:19:34.216Z [err] npm
2023-12-02T11:19:34.216Z [err] ERR! gyp ERR! find Python **********************************************************
2023-12-02T11:19:34.216Z [err] npm
2023-12-02T11:19:34.216Z [err] ERR! gyp ERR! find Python
2023-12-02T11:19:34.216Z [err] npm
2023-12-02T11:19:34.216Z [err] ERR! gyp ERR! configure error
2023-12-02T11:19:34.216Z [err] npm ERR!
2023-12-02T11:19:34.217Z [err] gyp ERR! stack Error: Could not find any Python installation to use
2023-12-02T11:19:34.217Z [err] npm
2023-12-02T11:19:34.217Z [err] ERR! gyp ERR! stack at PythonFinder.fail (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:330:47)
2023-12-02T11:19:34.217Z [err] npm
2023-12-02T11:19:34.217Z [err] ERR! gyp ERR! stack at PythonFinder.runChecks (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:159:21)
2023-12-02T11:19:34.217Z [err] npm
2023-12-02T11:19:34.217Z [err] ERR! gyp ERR! stack at PythonFinder.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:202:16)
2023-12-02T11:19:34.217Z [err] npm
2023-12-02T11:19:34.217Z [err] ERR! gyp ERR! stack at PythonFinder.execFileCallback (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:294:16)
2023-12-02T11:19:34.217Z [err] npm
2023-12-02T11:19:34.217Z [err] ERR! gyp ERR! stack at exithandler (node:child_process:430:5)
2023-12-02T11:19:34.217Z [err] npm
2023-12-02T11:19:34.217Z [err] ERR! gyp ERR! stack at ChildProcess.errorhandler (node:child_process:442:5)
2023-12-02T11:19:34.217Z [err] npm ERR!
2023-12-02T11:19:34.217Z [err] gyp ERR! stack at ChildProcess.emit (node:events:517:28)
2023-12-02T11:19:34.217Z [err] npm
2023-12-02T11:19:34.217Z [err] ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:290:12)
2023-12-02T11:19:34.217Z [err] npm ERR!
2023-12-02T11:19:34.217Z [err] gyp ERR! stack at onErrorNT (node:internal/child_process:477:16)
2023-12-02T11:19:34.217Z [err] npm
2023-12-02T11:19:34.217Z [err] ERR! gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
2023-12-02T11:19:34.217Z [err] npm
2023-12-02T11:19:34.217Z [err] ERR! gyp ERR! System Linux 6.1.63
2023-12-02T11:19:34.217Z [err] npm
2023-12-02T11:19:34.217Z [err] ERR! gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/usr/local/addons/redmatic/var/node_modules/lzma-native/binding-v4.0.6-node-v108-linux-x64/lzma_native.node" "--module_name=lzma_native" "--module_path=/usr/local/addons/redmatic/var/node_modules/lzma-native/binding-v4.0.6-node-v108-linux-x64" "--napi_version=9" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v108"
2023-12-02T11:19:34.217Z [err] npm
2023-12-02T11:19:34.217Z [err] ERR! gyp ERR! cwd /usr/local/addons/redmatic/var/node_modules/lzma-native
2023-12-02T11:19:34.217Z [err] npm ERR!
2023-12-02T11:19:34.217Z [err] gyp ERR! node -v v18.18.2
2023-12-02T11:19:34.217Z [err] npm
2023-12-02T11:19:34.218Z [err] ERR! gyp ERR! node-gyp -v v9.4.0
2023-12-02T11:19:34.218Z [err] npm
2023-12-02T11:19:34.218Z [err] ERR! gyp ERR! not ok
2023-12-02T11:19:34.218Z [err] npm ERR!
2023-12-02T11:19:34.218Z [err] node-pre-gyp ERR! build error
2023-12-02T11:19:34.218Z [err] npm
2023-12-02T11:19:34.218Z [err] ERR! node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/usr/local/addons/redmatic/var/node_modules/lzma-native/binding-v4.0.6-node-v108-linux-x64/lzma_native.node --module_name=lzma_native --module_path=/usr/local/addons/redmatic/var/node_modules/lzma-native/binding-v4.0.6-node-v108-linux-x64 --napi_version=9 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v108' (1)
2023-12-02T11:19:34.218Z [err] npm ERR!
2023-12-02T11:19:34.218Z [err] node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/usr/local/addons/redmatic/var/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
2023-12-02T11:19:34.218Z [err] npm
2023-12-02T11:19:34.218Z [err] ERR! node-pre-gyp ERR! stack at ChildProcess.emit (node:events:517:28)
2023-12-02T11:19:34.218Z [err] npm ERR!
2023-12-02T11:19:34.218Z [err] node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1098:16)
2023-12-02T11:19:34.218Z [err] npm ERR!
2023-12-02T11:19:34.218Z [err] node-pre-gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:303:5)
2023-12-02T11:19:34.218Z [err] npm ERR!
2023-12-02T11:19:34.218Z [err] node-pre-gyp ERR! System Linux 6.1.63
2023-12-02T11:19:34.218Z [err] npm ERR!
2023-12-02T11:19:34.218Z [err] node-pre-gyp ERR! command "/usr/bin/node" "/usr/local/addons/redmatic/var/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
2023-12-02T11:19:34.218Z [err] npm ERR!
2023-12-02T11:19:34.218Z [err] node-pre-gyp ERR! cwd /usr/local/addons/redmatic/var/node_modules/lzma-native
2023-12-02T11:19:34.218Z [err] npm ERR!
2023-12-02T11:19:34.218Z [err] node-pre-gyp ERR! node -v v18.18.2
2023-12-02T11:19:34.218Z [err] npm ERR!
2023-12-02T11:19:34.218Z [err] node-pre-gyp ERR! node-pre-gyp -v v0.11.0
2023-12-02T11:19:34.218Z [err] npm ERR!
2023-12-02T11:19:34.218Z [err] node-pre-gyp ERR! not ok
2023-12-02T11:19:34.222Z [err]
2023-12-02T11:19:34.222Z [err] npm ERR! A complete log of this run can be found in: /tmp/npm-cache/_logs/2023-12-02T11_19_19_451Z-debug-0.log
2023-12-02T11:19:34.260Z rc=1

Nooblucker
Beiträge: 36
Registriert: 17.06.2017, 15:47
Hat sich bedankt: 10 Mal

Re: Node node-red-contrib-speedtest lässt sich nicht installieren

Beitrag von Nooblucker » 22.12.2023, 10:34

Hallo zusammen,

hat niemand ein Idee was das sein könnte, wie gesagt auf einer NodeRed Installation läuft es super nur eben auf RedMatic
leider nicht und generiert die besagte Fehlermeldung. :-(

LG
Kay-Uwe

ptweety
Beiträge: 522
Registriert: 07.01.2017, 16:48
System: Alternative CCU (auf Basis OCCU)
Hat sich bedankt: 48 Mal
Danksagung erhalten: 66 Mal

Re: Node node-red-contrib-speedtest lässt sich nicht installieren

Beitrag von ptweety » 22.12.2023, 19:00

Hi,

Dieser Node braucht ein paar native Module, welche für die Plattform nicht vorkompiliert zur Verfügung stehen. Zum kompilieren braucht man aber eine Toolchain mit u.a. Python, welche wiederum auf einer CCU fehlt.

Ergo selber auf einer anderen Maschine vorkompilieren und per Hand zur CCU übertragen oder es lassen.

BTW: wenn du eh noch eine andere Instanz von NodeRed in deinem Netz hast, dann generell die Empfehlung: besser darauf komplett umziehen und die CCU mit dieser Aufgabe in Ruhe lassen.

Nooblucker
Beiträge: 36
Registriert: 17.06.2017, 15:47
Hat sich bedankt: 10 Mal

Re: Node node-red-contrib-speedtest lässt sich nicht installieren

Beitrag von Nooblucker » 29.12.2023, 09:28

Hallo,

Vielen Dank für deine Antwort. Leider bin ich nur Anwender/User und kann das von dir vorgeschlagene Prozedere nicht anwenden.

Andere Frage, das mit dem Auslagern verstehe ich aber was ist deine Vorgehensweise RedMatic von der CCU zu entkoppeln, gerade
in Bezug auf die RedMatic und HomeKit, welche Nodes würdest du empfehlen? Beide Nodes von RedMatic sind sehr Anwenderfreundlich
um die jeweilige Verbindung auf der CCU und HomeKit zu erstellen.

LG
Kay-Uwe

ptweety
Beiträge: 522
Registriert: 07.01.2017, 16:48
System: Alternative CCU (auf Basis OCCU)
Hat sich bedankt: 48 Mal
Danksagung erhalten: 66 Mal

Re: Node node-red-contrib-speedtest lässt sich nicht installieren

Beitrag von ptweety » 29.12.2023, 10:10

Nooblucker hat geschrieben:
29.12.2023, 09:28
welche Nodes würdest du empfehlen? Beide Nodes von RedMatic sind sehr Anwenderfreundlich
um die jeweilige Verbindung auf der CCU und HomeKit zu erstellen.
Das kommt darauf an, welche Fähigkeiten vorhanden sind.

Ich persönlich würde keine der RedMatic nodes mehr einsetzen. Diese sind seit Jahren nicht mehr gewartet und technisch teilweise auch veraltet.
Außerdem hatte ich selber bis vor kurzem das meiste an HomeKit Integration wieder zurückgebaut und nur 2-3 Schalter und 8-9 Sensoren über behalten. Ist ja eh alles automatisiert und braucht keine Fernbedienung. (die Geräte zu sehen war zwar nett, aber letztlich nur Spielerei)

Varianten (beispielhaft):
  • Auf RedMatic verzichten und stattdessen Homeassitant nutzen (dort gibt es dann auch wieder NodeRed als Addon, ist aber nicht nötig)
  • ioBroker nutzen. (Kann ich nicht empfehlen, da von mir nicht genutzt)
  • Separate NodeRed Installation mit @ptweety/node-red-contrib-ccu und redmatic-homekit (neue Aktoren brauchen manuelle Nacharbeiten, da nicht integriert)
  • CCU-Jack auf der CCU, dazu eine separate NodeRed Installation mit @ptweety/node-red-contrib-ccu-jack und node-red-contrib-homekit-bridged (auch schon etwas abgehangen und mit Arbeit verbunden)
Selber nutze ich derzeit ein HB-RF-ETH mit dem großen Funkmodul, eine VM auf Proxmox mit Debmatic, CCU-Jack und NodeRed. Auf letzterem dann @ptweety/node-red-contrib-ccu-jack. Und bzgl. HomeKit (bzw. andere Ecosysteme) schaue ich mir gerade die Entwicklung rund um matter.js an und warte drauf, dass es wirklich nutzbar wird.

Antworten

Zurück zu „RedMatic“