dubocr / homebridge-gpio-device

Homebridge GPIO device expose several HomeKit accessories interacting with GPIO
Apache License 2.0
65 stars 22 forks source link

Error: Could not locate the bindings file. #58

Open varna33 opened 5 years ago

varna33 commented 5 years ago

Hello,

After the April Raspbian and homebridge-gpio-device releases I can't anymore install the system. It was perfectly working month ago, but now even after 20 new fresh installations I can't get it working.

I always have these errors. How to fix the problem? I really need your help, as all my projects are now blocked and I can't get any automation anymore working with this wonderful plug-in.

[2019-4-27 19:43:34] Loaded config.json with 6 accessories and 0 platforms. [2019-4-27 19:43:34] --- [2019-4-27 19:43:34] ==================== [2019-4-27 19:43:34] ERROR LOADING PLUGIN homebridge-gpio-device: [2019-4-27 19:43:34] Error: Could not locate the bindings file. Tried: → /usr/local/lib/node_modules/homebridge-gpio-device/node_modules/node-wiring-pi/build/nodeWiringPi.node → /usr/local/lib/node_modules/homebridge-gpio-device/node_modules/node-wiring-pi/build/Debug/nodeWiringPi.node → /usr/local/lib/node_modules/homebridge-gpio-device/node_modules/node-wiring-pi/build/Release/nodeWiringPi.node → /usr/local/lib/node_modules/homebridge-gpio-device/node_modules/node-wiring-pi/out/Debug/nodeWiringPi.node → /usr/local/lib/node_modules/homebridge-gpio-device/node_modules/node-wiring-pi/Debug/nodeWiringPi.node → /usr/local/lib/node_modules/homebridge-gpio-device/node_modules/node-wiring-pi/out/Release/nodeWiringPi.node → /usr/local/lib/node_modules/homebridge-gpio-device/node_modules/node-wiring-pi/Release/nodeWiringPi.node → /usr/local/lib/node_modules/homebridge-gpio-device/node_modules/node-wiring-pi/build/default/nodeWiringPi.node → /usr/local/lib/node_modules/homebridge-gpio-device/node_modules/node-wiring-pi/compiled/9.9.0/linux/arm/nodeWiringPi.node at bindings (/usr/local/lib/node_modules/homebridge-gpio-device/node_modules/bindings/bindings.js:88:9) at Object. (/usr/local/lib/node_modules/homebridge-gpio-device/node_modules/node-wiring-pi/index.js:1:99) at Module._compile (module.js:649:30) at Object.Module._extensions..js (module.js:660:10) at Module.load (module.js:561:32) at tryModuleLoad (module.js:501:12) at Function.Module._load (module.js:493:3) at Module.require (module.js:593:17) at require (internal/module.js:11:18) at Object. (/usr/local/lib/node_modules/homebridge-gpio-device/index.js:3:11) [2019-4-27 19:43:34] ==================== [2019-4-27 19:43:34] No plugins found. See the README for information on installing plugins. [2019-4-27 19:43:34] Loading 6 accessories... [2019-4-27 19:43:34] Error: The requested accessory 'GPIODevice' was not registered by any plugin. at API.accessory (/usr/local/lib/node_modules/homebridge/lib/api.js:64:13) at Server._loadAccessories (/usr/local/lib/node_modules/homebridge/lib/server.js:297:42) at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:91:38) at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:59:10) at Object. (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22) at Module._compile (module.js:649:30) at Object.Module._extensions..js (module.js:660:10) at Module.load (module.js:561:32) at tryModuleLoad (module.js:501:12) at Function.Module._load (module.js:493:3) [2019-4-27 19:43:34] Got SIGTERM, shutting down Homebridge...

Janis

varna33 commented 5 years ago

Hi,

Kept playing around and found solution. The base for installation should be Raspbian Lite. Then it works.

If installation is based on Full or version with Desktop, then above error appears.

Janis

toshibochan commented 5 years ago

I was able to install after I did this:

Install wiringpi:

sudo apt-get purge wiringpi hash -r sudo apt-get install git-core git clone git://git.drogon.net/wiringPi cd ~/wiringPi ./build

Uninstall wiringpi:

cd ~/wiringPi ./build uninstall

install wiringpi-2.46-1:

cd /tmp wget https://unicorn.drogon.net/wiringpi-2.46-1.deb sudo dpkg -i wiringpi-2.46-1.deb

install homebridge-gpio-device: sudo npm install -g homebridge-gpio-device --unsafe-perm

a-x- commented 4 years ago

git.drogon.net is not available any more

wiringpi's author said goodbye

a-x- commented 4 years ago

I tried

wget https://unicorn.drogon.net/wiringpi-2.46-1.deb
sudo dpkg -i wiringpi-2.46-1.deb

it didn't help

a-x- commented 4 years ago

I have raspbian lite installation

migabc commented 4 years ago

I have the same issue. Any help appreciated

Already have 2.46

pi@raspberrypi-attic:~ $ gpio -v gpio version: 2.46

But I still get this error when starting homebridge:

Jan 14 11:32:11 raspberrypi-mainfloor homebridge[6661]: [1/14/2020, 11:32:11 AM] ==================== Jan 14 11:32:11 raspberrypi-mainfloor homebridge[6661]: [1/14/2020, 11:32:11 AM] ERROR LOADING PLUGIN homebridge-gpio-device: Jan 14 11:32:11 raspberrypi-mainfloor homebridge[6661]: [1/14/2020, 11:32:11 AM] Error: Could not locate the bindings file. Tried: Jan 14 11:32:11 raspberrypi-mainfloor homebridge[6661]: → /usr/lib/node_modules/homebridge-gpio-device/node_modules/node-wiring-pi/build/nodeWiringPi.node Jan 14 11:32:11 raspberrypi-mainfloor homebridge[6661]: → /usr/lib/node_modules/homebridge-gpio-device/node_modules/node-wiring-pi/build/Debug/nodeWiringPi.node Jan 14 11:32:11 raspberrypi-mainfloor homebridge[6661]: → /usr/lib/node_modules/homebridge-gpio-device/node_modules/node-wiring-pi/build/Release/nodeWiringPi.node Jan 14 11:32:11 raspberrypi-mainfloor homebridge[6661]: → /usr/lib/node_modules/homebridge-gpio-device/node_modules/node-wiring-pi/out/Debug/nodeWiringPi.node Jan 14 11:32:11 raspberrypi-mainfloor homebridge[6661]: → /usr/lib/node_modules/homebridge-gpio-device/node_modules/node-wiring-pi/Debug/nodeWiringPi.node Jan 14 11:32:11 raspberrypi-mainfloor homebridge[6661]: → /usr/lib/node_modules/homebridge-gpio-device/node_modules/node-wiring-pi/out/Release/nodeWiringPi.node Jan 14 11:32:11 raspberrypi-mainfloor homebridge[6661]: → /usr/lib/node_modules/homebridge-gpio-device/node_modules/node-wiring-pi/Release/nodeWiringPi.node Jan 14 11:32:11 raspberrypi-mainfloor homebridge[6661]: → /usr/lib/node_modules/homebridge-gpio-device/node_modules/node-wiring-pi/build/default/nodeWiringPi.node Jan 14 11:32:11 raspberrypi-mainfloor homebridge[6661]: → /usr/lib/node_modules/homebridge-gpio-device/node_modules/node-wiring-pi/compiled/11.15.0/linux/arm/nodeWiringPi.node Jan 14 11:32:11 raspberrypi-mainfloor homebridge[6661]: at bindings (/usr/lib/node_modules/homebridge-gpio-device/node_modules/bindings/bindings.js:88:9) Jan 14 11:32:11 raspberrypi-mainfloor homebridge[6661]: at Object. (/usr/lib/node_modules/homebridge-gpio-device/node_modules/node-wiring-pi/index.js:1:37) Jan 14 11:32:11 raspberrypi-mainfloor homebridge[6661]: at Module._compile (internal/modules/cjs/loader.js:816:30) Jan 14 11:32:11 raspberrypi-mainfloor homebridge[6661]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10) Jan 14 11:32:11 raspberrypi-mainfloor homebridge[6661]: at Module.load (internal/modules/cjs/loader.js:685:32) Jan 14 11:32:11 raspberrypi-mainfloor homebridge[6661]: at Function.Module._load (internal/modules/cjs/loader.js:620:12) Jan 14 11:32:11 raspberrypi-mainfloor homebridge[6661]: at Module.require (internal/modules/cjs/loader.js:723:19) Jan 14 11:32:11 raspberrypi-mainfloor homebridge[6661]: at require (internal/modules/cjs/helpers.js:14:16) Jan 14 11:32:11 raspberrypi-mainfloor homebridge[6661]: at Object. (/usr/lib/node_modules/homebridge-gpio-device/index.js:3:11) Jan 14 11:32:11 raspberrypi-mainfloor homebridge[6661]: at Module._compile (internal/modules/cjs/loader.js:816:30) Jan 14 11:32:11 raspberrypi-mainfloor homebridge[6661]: [1/14/2020, 11:32:11 AM] ====================

johnnygoodface commented 4 years ago

Still reachable as of 04-25-2020: cd /tmp wget https://unicorn.drogon.net/wiringpi-2.46-1.deb sudo dpkg -i wiringpi-2.46-1.deb

But I still get the same error

danalvi commented 3 years ago

Yes indeed I am having this issue too