NEWS
[GELÖST] Zigbee-Adapter - Python-Problem
-
Systemdata Bitte Ausfüllen Hardwaresystem: RockPro64 Arbeitsspeicher: FGB Festplattenart: eMMC Betriebssystem: Debian GNU/Linux 9 (stretch) Node-Version: 16.17.0 Nodejs-Version: 16.17.0 NPM-Version: 8.15.0 Installationsart: Skripte Image genutzt: Ja Ort/Name der Imagedatei: https://github.com/mrfixit2001/debian_builds/releases --> rockpro64-debian-mrfixit-190531.img.xz |
Hallo,
gestern habe ich irgendwie mein System zerschossen, fragt nicht weiter nach.
Nach kompletter Neuinstallation von Linux und anschließender Installation von ioBroker mittels Skript konnte ich mit dem backitup-Adapter mein Backup wieder einspielen.
Alle Adapter bis auf einen ließen sich installieren und laufen. Der Zigbee-Adapter macht aber Probleme:Folgender Befehl gibt Fehler: npm install iobroker.zigbee@1.7.5
root@localhost:/opt/iobroker# npm install iobroker.zigbee@1.7.5 npm ERR! code 1 npm ERR! path /opt/iobroker/node_modules/@serialport/bindings npm ERR! command failed npm ERR! command sh /tmp/install-fbd887ee.sh npm ERR! prebuild-install warn install No prebuilt binaries found (target=16.17.0 runtime=node arch=arm libc= platform=linux) npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@9.0.0 npm ERR! gyp info using node@16.17.0 | linux | arm npm ERR! gyp ERR! find Python npm ERR! gyp ERR! find Python Python is not set from command line or npm configuration npm ERR! gyp ERR! find Python Python is not set from environment variable PYTHON npm ERR! gyp ERR! find Python checking if "python3" can be used npm ERR! gyp ERR! find Python - "python3" is not in PATH or produced an error npm ERR! gyp ERR! find Python checking if "python" can be used npm ERR! gyp ERR! find Python - "python" is not in PATH or produced an error npm ERR! gyp ERR! find Python npm ERR! gyp ERR! find Python ********************************************************** npm ERR! gyp ERR! find Python You need to install the latest version of Python. npm ERR! gyp ERR! find Python Node-gyp should be able to find and use Python. If not, npm ERR! gyp ERR! find Python you can try one of the following options: npm ERR! gyp ERR! find Python - Use the switch --python="/path/to/pythonexecutable" npm ERR! gyp ERR! find Python (accepted by both node-gyp and npm) npm ERR! gyp ERR! find Python - Set the environment variable PYTHON npm ERR! gyp ERR! find Python - Set the npm configuration variable python: npm ERR! gyp ERR! find Python npm config set python "/path/to/pythonexecutable" npm ERR! gyp ERR! find Python For more information consult the documentation at: npm ERR! gyp ERR! find Python https://github.com/nodejs/node-gyp#installation npm ERR! gyp ERR! find Python ********************************************************** npm ERR! gyp ERR! find Python npm ERR! gyp ERR! configure error npm ERR! gyp ERR! stack Error: Could not find any Python installation to use npm ERR! gyp ERR! stack at PythonFinder.fail (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:330:47) npm ERR! gyp ERR! stack at PythonFinder.runChecks (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:159:21) npm ERR! gyp ERR! stack at PythonFinder.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:202:16) npm ERR! gyp ERR! stack at PythonFinder.execFileCallback (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:294:16) npm ERR! gyp ERR! stack at exithandler (node:child_process:408:5) npm ERR! gyp ERR! stack at ChildProcess.errorhandler (node:child_process:420:5) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:513:28) npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:289:12) npm ERR! gyp ERR! stack at onErrorNT (node:internal/child_process:478:16) npm ERR! gyp ERR! stack at processTicksAndRejections (node:internal/process/task_queues:83:21) npm ERR! gyp ERR! System Linux 4.4.180 npm ERR! gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" npm ERR! gyp ERR! cwd /opt/iobroker/node_modules/@serialport/bindings npm ERR! gyp ERR! node -v v16.17.0 npm ERR! gyp ERR! node-gyp -v v9.0.0 npm ERR! gyp ERR! not ok npm ERR! A complete log of this run can be found in: npm ERR! /home/iobroker/.npm/_logs/2022-09-19T12_56_39_368Z-debug-0.log
Die Version Python 3.9.4 habe ich installiert, da die installierte 3.5 für den Zigbee-Adapter zu klein war. Nachdem er die 3.9.4 nicht gefunden hat, habe ich die Links angepasst:
root@localhost:/opt/iobroker# ls -l /usr/bin/py* -rwxr-xr-x 1 root root 7806 Jan 20 2017 /usr/bin/py3clean -rwxr-xr-x 1 root root 12113 Jan 20 2017 /usr/bin/py3compile lrwxrwxrwx 1 root root 31 Jan 20 2017 /usr/bin/py3versions -> ../share/python3/py3versions.py lrwxrwxrwx 1 root root 26 Jan 25 2017 /usr/bin/pybuild -> ../share/dh-python/pybuild -rwxr-xr-x 1 root root 4123 Jan 24 2017 /usr/bin/pyclean -rwxr-xr-x 1 root root 11894 Jan 24 2017 /usr/bin/pycompile lrwxrwxrwx 1 root root 8 Jan 20 2017 /usr/bin/pydoc3 -> pydoc3.5 -rwxr-xr-x 1 root root 79 Nov 4 2021 /usr/bin/pydoc3.5 lrwxrwxrwx 1 root root 12 Jan 20 2017 /usr/bin/pygettext3 -> pygettext3.5 -rwxr-xr-x 1 root root 22255 Nov 4 2021 /usr/bin/pygettext3.5 lrwxrwxrwx 1 root root 17 Sep 19 12:03 /usr/bin/python -> /opt/Python-3.9.4 lrwxrwxrwx 1 root root 9 Jan 24 2017 /usr/bin/python2 -> python2.7 -rwxr-xr-x 1 root root 2584724 Feb 6 2022 /usr/bin/python2.7 lrwxrwxrwx 1 root root 17 Sep 19 11:59 /usr/bin/python3 -> /opt/Python-3.9.4 -rwxr-xr-x 2 root root 3288088 Nov 4 2021 /usr/bin/python3.5 -rwxr-xr-x 2 root root 3288088 Nov 4 2021 /usr/bin/python3.5m lrwxrwxrwx 1 root root 17 Sep 19 11:32 /usr/bin/python3.9.4 -> /opt/Python-3.9.4 lrwxrwxrwx 1 root root 10 Jan 20 2017 /usr/bin/python3m -> python3.5m lrwxrwxrwx 1 root root 29 Jan 24 2017 /usr/bin/pyversions -> ../share/python/pyversions.py
Dennoch kommt der oben angegebene Fehler.
Kann mir hier jemand noch helfen? Ich weiß hier leider nicht mehr weiter.
Besten Dank und liebe Grüße
Thomas -
@tööö sagte in Zigbee-Adapter - Python-Problem:
Debian GNU/Linux 9 (stretch)
Zu alt, zu tot, zu abgekündigt.
Installier eine lebendige Distribution. Und eimer da nicht als root herum. -
@thomas-braun
Zu welcher Distribution rätst du mir? Muss halt auch auf dem RockPro64 laufen. -
Debian 'Bullseye'.
https://wiki.pine64.org/wiki/ROCKPro64_Software_Release#Official_Debian_Installer
Wenn du den Installer verwendest: Vergib KEIN root-Passwort wenn du danach gefragt wirst.
-
@thomas-braun Cool, Danke. Muss ich wohl nun nochmal alles von vorne machen, oder? Oder kann ich das "einfach" updaten?
-
@thomas-braun sagte in Zigbee-Adapter - Python-Problem:
Wenn du den Installer verwendest: Vergib KEIN root-Passwort wenn du danach gefragt wirst.
Noch ne blöde Frage, da brauche ich dann wohl auch einen Bildschirm am RockPro, oder? So ganz ohne nur per SSH geht es dann wohl nicht?
-
Muss ich wohl nun nochmal alles von vorne machen, oder? Oder kann ich das "einfach" updaten?
Updaten kann man das schon, ist aber nicht unbedingt 'einfach'.
Einfacher und sauberer ist die Neuinstallation. Insbesondere, weil da ja das Buster-Release übersprungen wird.Noch ne blöde Frage, da brauche ich dann wohl auch einen Bildschirm am RockPro, oder? So ganz ohne nur per SSH geht es dann wohl nicht?
Kann ich für den RockPro nicht sagen. Raspberry OS 'Bullseye' kann man auch ohne Bildschirm inkl. ssh-Zugang installieren.
-
@thomas-braun Ok, dann schaue ich mal, wie weit ich da komme.
Besten Dank dir schonmal in der Hoffnung, dass dann das "Python-Problem" nicht mehr auftaucht.
-
Bullseye bringt ein aktuelles python richtig vorkonfiguriert mit.
-
@thomas-braun
Heute hab ich es geschafft. Läuft wieder alles ohne Probleme.Danke dir nochmal!