Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find_button Error #3

Closed
CCOSTAN opened this issue Oct 14, 2015 · 2 comments
Closed

Find_button Error #3

CCOSTAN opened this issue Oct 14, 2015 · 2 comments

Comments

@CCOSTAN
Copy link
Contributor

CCOSTAN commented Oct 14, 2015

find_button is throwing an error. Here's the log with the libpcap-dev installed, npm install completed and then the traceback.

Setting up libpcap-dev (1.3.0-1) ...
(homeassistant) pi@carlo-pi ~/dasher $ npm install
\
> socketwatcher@0.2.1 install /home/pi/dasher/node_modules/node-dash-button/node_modules/pcap/node_modules/socketwatcher
> node-gyp rebuild

make: Entering directory '/home/pi/dasher/node_modules/node-dash-button/node_modules/pcap/node_modules/socketwatcher/build'
  CXX(target) Release/obj.target/socketwatcher/socket_watcher.o
  SOLINK_MODULE(target) Release/obj.target/socketwatcher.node
  COPY Release/socketwatcher.node
make: Leaving directory '/home/pi/dasher/node_modules/node-dash-button/node_modules/pcap/node_modules/socketwatcher/build'

> pcap@2.0.1 install /home/pi/dasher/node_modules/node-dash-button/node_modules/pcap
> node-gyp rebuild

make: Entering directory '/home/pi/dasher/node_modules/node-dash-button/node_modules/pcap/build'
  CXX(target) Release/obj.target/pcap_binding/pcap_binding.o
  CXX(target) Release/obj.target/pcap_binding/pcap_session.o
  SOLINK_MODULE(target) Release/obj.target/pcap_binding.node
  COPY Release/pcap_binding.node
make: Leaving directory '/home/pi/dasher/node_modules/node-dash-button/node_modules/pcap/build'
node-dash-button@0.1.5 node_modules/node-dash-button
âââ underscore@1.8.3
âââ pcap@2.0.1 (nan@1.6.2, socketwatcher@0.2.1)
(homeassistant) pi@carlo-pi ~/dasher $ cd script/
(homeassistant) pi@carlo-pi ~/dasher/script $ ls
bootstrap  find_button  install  restart  server  uninstall  upgrade
(homeassistant) pi@carlo-pi ~/dasher/script $ sudo ./find_button
module.js:338
    throw err;
          ^
Error: Cannot find module '/home/pi/dasher/script/node_modules/node-dash-button/bin/findbutton'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:278:25)
    at Function.Module.runMain (module.js:501:10)
    at startup (node.js:129:16)
    at node.js:814:3
@maddox
Copy link
Owner

maddox commented Oct 14, 2015

You're in the wrong directory. You should be running script/find_button from the root of the repo.

@CCOSTAN
Copy link
Contributor Author

CCOSTAN commented Oct 14, 2015

:doh:

@CCOSTAN CCOSTAN closed this as completed Oct 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants