-
Notifications
You must be signed in to change notification settings - Fork 13
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
Module did not self-register #12
Comments
onoff and epoll can only be used to interact with GPIO pins on Linux machines such as the Raspberry Pi and BeagleBone. What is your project trying to achieve with onoff on a Windows PC? |
This means that Node.js should be installed on the Raspberry Pi or BeagleBone and then onoff is installed on the Raspberry Pi or BeagleBone. |
Yeah, just tested the project few minutes ago on raspi and it works perfectly... I am using a WindowsPC with VisualStudio (and nodejs tools for VS) for development and then I push the files to the raspi. I will just mock the gpio access layer during developing on Win and use the onoff library when running on raspi. Sorry for not realizing sooner my mistake, I guess the 'ticket' can be closed. PS: Amazing lib BTW, congrats and thank you for providing it! |
No problem and thanks :) |
I am trying to install epoll in Mac OS X and getting this same error. Does this mean, I cant include this library in Mac OS X? I am using Node.js v0.12 |
This is correct. The epoll module relies on the Linux epoll event notification facility which isn't available on OS X. |
I'm experiencing this error on a Beaglebone Black running Debian 8.1:
Any suggestions? |
This may be happening because epoll (or octalbonescript in this case) was installed and compiled with one version of Node.js but a different version of Node.js is being used at runtime. It may also be happening because user smartpumps and root have access to different versions of Node.js. (calling To determine whether there is a fundamental problem with epoll perform the following test in an empty directory. npm install epoll
cd node_modules/epoll/test/
./runtests If the output of the tests looks similar to the following, everything is ok with epoll, and chances are something is configured incorrectly on the system:
|
Let me know what is result of it. If any update is needed on OBS part, I will do it. |
Trying to use the onoff library inside my project but I always get a "Module did not self-register" error from the epoll module (bindings.js line 83).
Using latest nodejs version (tried with several other older versions back to 0.10.x). Trying inside VisualStudio, Win8.1 64bit.
Same error happens also if I try to require only the 'epoll' module.
Any idea what's causing this?
Thanks
TG
The text was updated successfully, but these errors were encountered: