rsg98 / homebridge-gpio-wpi2

Homebridge Raspberry Pi GPIO Platform (API 2) Plugin - using WiringPi as a backend
48 stars 16 forks source link

ERROR LOADING PLUGIN homebridge-gpio-wpi2 #46

Open dcaccount opened 6 years ago

dcaccount commented 6 years ago

Hello, I have successfully installed Homebridge and I have installed homebridge-gpio-wpi2 as per instructions found:

sudo apt-get install wiringpi sudo npm install -g homebridge-gpio-wpi2

But when I launch Homebridge I always get following error:

ERROR LOADING PLUGIN homebridge-gpio-wpi2: [2018-4-25 14:56:19] Error: Could not locate the bindings file. Tried: → /usr/lib/node_modules/homebridge-gpio-wpi2/node_modules/node-wiring-pi/build/nodeWiringPi.node → /usr/lib/node_modules/homebridge-gpio-wpi2/node_modules/node-wiring-pi/build/Debug/nodeWiringPi.node → /usr/lib/node_modules/homebridge-gpio-wpi2/node_modules/node-wiring-pi/build/Release/nodeWiringPi.node → /usr/lib/node_modules/homebridge-gpio-wpi2/node_modules/node-wiring-pi/out/Debug/nodeWiringPi.node → /usr/lib/node_modules/homebridge-gpio-wpi2/node_modules/node-wiring-pi/Debug/nodeWiringPi.node → /usr/lib/node_modules/homebridge-gpio-wpi2/node_modules/node-wiring-pi/out/Release/nodeWiringPi.node → /usr/lib/node_modules/homebridge-gpio-wpi2/node_modules/node-wiring-pi/Release/nodeWiringPi.node → /usr/lib/node_modules/homebridge-gpio-wpi2/node_modules/node-wiring-pi/build/default/nodeWiringPi.node → /usr/lib/node_modules/homebridge-gpio-wpi2/node_modules/node-wiring-pi/compiled/8.11.1/linux/arm/nodeWiringPi.node at bindings (/usr/lib/node_modules/homebridge-gpio-wpi2/node_modules/bindings/bindings.js:88:9) at Object. (/usr/lib/node_modules/homebridge-gpio-wpi2/node_modules/node-wiring-pi/index.js:1:99) at Module._compile (module.js:652:30) at Object.Module._extensions..js (module.js:663:10) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3) at Module.require (module.js:596:17) at require (internal/module.js:11:18) at Object. (/usr/lib/node_modules/homebridge-gpio-wpi2/index.js:1:75)

I tried to read all similar problems but I have not been able to save it.

Can anyone please help? Thanks, Dan

rsg98 commented 6 years ago

Can you try:

npm install node-wiring-pi

And post the messages / errors it generates? On Wed, 25 Apr 2018 at 14:01, dcaccount notifications@github.com wrote:

Hello, I have successfully installed Homebridge and I have installed homebridge-gpio-wpi2 as per instructions found:

sudo apt-get install wiringpi sudo npm install -g homebridge-gpio-wpi2

But when I launch Homebridge I always get following error:

ERROR LOADING PLUGIN homebridge-gpio-wpi2: [2018-4-25 14:56:19] Error: Could not locate the bindings file. Tried: → /usr/lib/node_modules/homebridge-gpio-wpi2/node_modules/node-wiring-pi/build/nodeWiringPi.node → /usr/lib/node_modules/homebridge-gpio-wpi2/node_modules/node-wiring-pi/build/Debug/nodeWiringPi.node → /usr/lib/node_modules/homebridge-gpio-wpi2/node_modules/node-wiring-pi/build/Release/nodeWiringPi.node → /usr/lib/node_modules/homebridge-gpio-wpi2/node_modules/node-wiring-pi/out/Debug/nodeWiringPi.node → /usr/lib/node_modules/homebridge-gpio-wpi2/node_modules/node-wiring-pi/Debug/nodeWiringPi.node → /usr/lib/node_modules/homebridge-gpio-wpi2/node_modules/node-wiring-pi/out/Release/nodeWiringPi.node → /usr/lib/node_modules/homebridge-gpio-wpi2/node_modules/node-wiring-pi/Release/nodeWiringPi.node → /usr/lib/node_modules/homebridge-gpio-wpi2/node_modules/node-wiring-pi/build/default/nodeWiringPi.node → /usr/lib/node_modules/homebridge-gpio-wpi2/node_modules/node-wiring-pi/compiled/8.11.1/linux/arm/nodeWiringPi.node at bindings (/usr/lib/node_modules/homebridge-gpio-wpi2/node_modules/bindings/bindings.js:88:9) at Object. (/usr/lib/node_modules/homebridge-gpio-wpi2/node_modules/node-wiring-pi/index.js:1:99) at Module._compile (module.js:652:30) at Object.Module._extensions..js (module.js:663:10) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3) at Module.require (module.js:596:17) at require (internal/module.js:11:18) at Object. (/usr/lib/node_modules/homebridge-gpio-wpi2/index.js:1:75)

I tried to read all similar problems but I have not been able to save it.

Can anyone please help? Thanks, Dan

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rsg98/homebridge-gpio-wpi2/issues/46, or mute the thread https://github.com/notifications/unsubscribe-auth/ARe_tfEPEf8I_727JJBReAC3-EY_blXmks5tsHO7gaJpZM4TjYVu .

dcaccount commented 6 years ago

Thanks, In few minutes I will post it, as I am restoring the system for a fresh install.

By the way, instead of: sudo npm install -g homebridge-gpio-wpi2

shall I try?

sudo npm install -g —unsafe-perm homebridge-gpio-wpi2?

Thanks, dan

Il giorno 25 apr 2018, alle ore 15:28, Richard Grime notifications@github.com ha scritto:

Can you try:

npm install node-wiring-pi

And post the messages / errors it generates? On Wed, 25 Apr 2018 at 14:01, dcaccount notifications@github.com wrote:

Hello, I have successfully installed Homebridge and I have installed homebridge-gpio-wpi2 as per instructions found:

sudo apt-get install wiringpi sudo npm install -g homebridge-gpio-wpi2

But when I launch Homebridge I always get following error:

ERROR LOADING PLUGIN homebridge-gpio-wpi2: [2018-4-25 14:56:19] Error: Could not locate the bindings file. Tried: → /usr/lib/node_modules/homebridge-gpio-wpi2/node_modules/node-wiring-pi/build/nodeWiringPi.node → /usr/lib/node_modules/homebridge-gpio-wpi2/node_modules/node-wiring-pi/build/Debug/nodeWiringPi.node → /usr/lib/node_modules/homebridge-gpio-wpi2/node_modules/node-wiring-pi/build/Release/nodeWiringPi.node → /usr/lib/node_modules/homebridge-gpio-wpi2/node_modules/node-wiring-pi/out/Debug/nodeWiringPi.node → /usr/lib/node_modules/homebridge-gpio-wpi2/node_modules/node-wiring-pi/Debug/nodeWiringPi.node → /usr/lib/node_modules/homebridge-gpio-wpi2/node_modules/node-wiring-pi/out/Release/nodeWiringPi.node → /usr/lib/node_modules/homebridge-gpio-wpi2/node_modules/node-wiring-pi/Release/nodeWiringPi.node → /usr/lib/node_modules/homebridge-gpio-wpi2/node_modules/node-wiring-pi/build/default/nodeWiringPi.node → /usr/lib/node_modules/homebridge-gpio-wpi2/node_modules/node-wiring-pi/compiled/8.11.1/linux/arm/nodeWiringPi.node at bindings (/usr/lib/node_modules/homebridge-gpio-wpi2/node_modules/bindings/bindings.js:88:9) at Object. (/usr/lib/node_modules/homebridge-gpio-wpi2/node_modules/node-wiring-pi/index.js:1:99) at Module._compile (module.js:652:30) at Object.Module._extensions..js (module.js:663:10) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3) at Module.require (module.js:596:17) at require (internal/module.js:11:18) at Object. (/usr/lib/node_modules/homebridge-gpio-wpi2/index.js:1:75)

I tried to read all similar problems but I have not been able to save it.

Can anyone please help? Thanks, Dan

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rsg98/homebridge-gpio-wpi2/issues/46, or mute the thread https://github.com/notifications/unsubscribe-auth/ARe_tfEPEf8I_727JJBReAC3-EY_blXmks5tsHO7gaJpZM4TjYVu .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rsg98/homebridge-gpio-wpi2/issues/46#issuecomment-384286240, or mute the thread https://github.com/notifications/unsubscribe-auth/AkhSkf7WAKuHX1XVwuctrjJOahKi1c8zks5tsHn2gaJpZM4TjYVu.

dcaccount commented 6 years ago

Hello, it looks like I have solved the issue. I have installed with: sudo npm install -g --unsafe-perm homebridge-gpio-wpi2

Any idea why?

Thanks, dan