Moin
ich habe heute versucht, das ganze mal zu installieren.
leider kommt bei
sudo pigpiod nur. command not found
und wird dieses Skript dazu benötigt !? pwmfanhelper.py
Irgendwie stockt das ganze bei mir . Dachte es ist "Easy " oder wie habt ihr das evtl gelöst...
Danke
Ach, nur das Plugin installieren bewirkt, das Hoobs nicht mehr startet und folgendes auswirft
[Homebridge] [4/8/2020, 14:18:49] Error: pwmfanhelper error: Traceback (most recent call last):
File "/home/hoobs/.hoobs/node_modules/homebridge-pwm-fan/pwmfanhelper.py", line 19, in <module>
import pigpio
ImportError: No module named pigpio
at Socket.<anonymous> (/home/hoobs/.hoobs/node_modules/homebridge-pwm-fan/fan.js:53:13)
at Socket.emit (events.js:210:5)
at addChunk (_stream_readable.js:309:12)
at readableAddChunk (_stream_readable.js:290:11)
at Socket.Readable.push (_stream_readable.js:224:10)
at Pipe.onStreamRead (internal/stream_base_commons.js:182:23)
[Homebridge] [4/8/2020, 14:18:49] Got SIGTERM, shutting down service...
Alles anzeigen
sschuste , hast du evtl eine Ahnung weshalb das schon schief läuft?
pi@raspberrypi:~ $ sudo npm i pigpio
> [email protected] install /home/pi/node_modules/pigpio
> node-gyp rebuild
gyp WARN EACCES current user ("pi") does not have permission to access the dev dir "/root/.cache/node-gyp/12.13.1"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/home/pi/node_modules/pigpio/.node-gyp"
make: Entering directory '/home/pi/node_modules/pigpio/build'
CXX(target) Release/obj.target/pigpio/src/pigpio.o
../src/pigpio.cc:2:10: fatal error: pigpio.h: No such file or directory
#include <pigpio.h>
^~~~~~~~~~
compilation terminated.
make: *** [pigpio.target.mk:111: Release/obj.target/pigpio/src/pigpio.o] Error 1
make: Leaving directory '/home/pi/node_modules/pigpio/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:210:5)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Linux 4.19.75-v7+
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/pi/node_modules/pigpio
gyp ERR! node -v v12.13.1
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open '/home/pi/package.json'
npm WARN pi No description
npm WARN pi No repository field.
npm WARN pi No README data
npm WARN pi No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-04-09T05_11_23_427Z-debug.log
Alles anzeigen