adafruit / adafruit/node_mpr121

Error: Could not locate the bindings file. Tried:

Open
#5 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
11
Forks
6
PR merge metrics
No merged PRs in 30d

Description

While i try to run example.js, i facing this issue.

Respberry PI - 3 Model B ... using specified raspberry pi TOUCH hat MPR121

```
/usr/lib/node_modules/adafruit-mpr121/node_modules/bindings/bindings.js:91
throw err
^
Error: Could not locate the bindings file. Tried:
→ /usr/lib/node_modules/adafruit-mpr121/node_modules/i2c-bus/build/i2c.node
→ /usr/lib/node_modules/adafruit-mpr121/node_modules/i2c-bus/build/Debug/i2c.node
→ /usr/lib/node_modules/adafruit-mpr121/node_modules/i2c-bus/build/Release/i2c.node
→ /usr/lib/node_modules/adafruit-mpr121/node_modules/i2c-bus/out/Debug/i2c.node
→ /usr/lib/node_modules/adafruit-mpr121/node_modules/i2c-bus/Debug/i2c.node
→ /usr/lib/node_modules/adafruit-mpr121/node_modules/i2c-bus/out/Release/i2c.node
→ /usr/lib/node_modules/adafruit-mpr121/node_modules/i2c-bus/Release/i2c.node
→ /usr/lib/node_modules/adafruit-mpr121/node_modules/i2c-bus/build/default/i2c.node
→ /usr/lib/node_modules/adafruit-mpr121/node_modules/i2c-bus/compiled/6.11.0/linux/arm/i2c.node
at bindings (/usr/lib/node_modules/adafruit-mpr121/node_modules/bindings/bindings.js:88:9)
at Object. (/usr/lib/node_modules/adafruit-mpr121/node_modules/i2c-bus/i2c-bus.js:4:28)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (/usr/lib/node_modules/adafruit-mpr121/index.js:3:13)
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the failure while running example.js on the Raspberry Pi 3. Read bindings/bindings.js and i2c-bus/i2c-bus.js around the reported stack frames, then investigate why the listed i2c.node locations are empty; done means the native binding loads and example.js runs successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js, raspberry-pi
Domain
embedded-iot
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.