homebridge-gpio-device icon indicating copy to clipboard operation
homebridge-gpio-device copied to clipboard

Error: Could not locate the bindings file.

Open varna33 opened this issue 6 years ago • 8 comments

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 avatar Apr 27 '19 17:04 varna33

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

varna33 avatar Apr 27 '19 22:04 varna33

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

toshibochan avatar May 18 '19 08:05 toshibochan

git.drogon.net is not available any more

wiringpi's author said goodbye

a-x- avatar Jan 06 '20 19:01 a-x-

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- avatar Jan 06 '20 19:01 a-x-

I have raspbian lite installation

a-x- avatar Jan 06 '20 20:01 a-x-

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] ====================

migabc avatar Jan 14 '20 11:01 migabc

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

johnnygoodface avatar Apr 25 '20 12:04 johnnygoodface

Yes indeed I am having this issue too

danalvi avatar Nov 28 '20 13:11 danalvi