MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MMM-Keybindings evdev module install error

    Scheduled Pinned Locked Moved Troubleshooting
    5 Posts 2 Posters 601 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D Offline
      DeMaddin
      last edited by

      Hello.
      I tried to install MMM-Keybindings on a fresh MM installation (pi4, raspi os buster) but unfortunately i cannot manage.

      I want to use the FireTV bluetooth remote!

      After npm install in Keybindings directory i get this error```
      code_text

      MMM-KeyBindings@1.3.1 postinstall /home/pi/MagicMirror/modules/MMM-KeyBindings
      ./postinstall.sh

      ✖ Rebuild Failed

      An unhandled error occurred inside electron-rebuild
      make: Verzeichnis „/home/pi/MagicMirror/modules/MMM-KeyBindings/node_modules/evdev/build“ wird betreten
      CXX(target) Release/obj.target/ioctls/src/ioctls.o
      In file included from /home/pi/.electron-gyp/6.1.12/include/node/v8-internal.h:14,
      from /home/pi/.electron-gyp/6.1.12/include/node/v8.h:25,
      from /home/pi/.electron-gyp/6.1.12/include/node/node.h:63,
      from …/…/nan/nan.h:56,
      from …/src/ioctls.cc:1:
      /home/pi/.electron-gyp/6.1.12/include/node/v8config.h:326:49: warning: ‘MicrotasksCompletedCallback’ is deprecated [-Wdeprecated-declarations]
      declarator attribute((deprecated(message)))
      ^
      /home/pi/.electron-gyp/6.1.12/include/node/v8.h:8205:3: note: in expansion of macro ‘V8_DEPRECATE_SOON’
      V8_DEPRECATE_SOON("Use WithData version.",
      ^~~~~~~~~~~~~~~~~
      /home/pi/.electron-gyp/6.1.12/include/node/v8config.h:326:49: warning: ‘MicrotasksCompletedCallback’ is deprecated [-Wdeprecated-declarations]
      declarator attribute((deprecated(message)))
      ^
      /home/pi/.electron-gyp/6.1.12/include/node/v8.h:8214:3: note: in expansion of macro ‘V8_DEPRECATE_SOON’
      V8_DEPRECATE_SOON("Use WithData version.",
      ^~~~~~~~~~~~~~~~~
      …/src/ioctls.cc:10:11: error: ‘v8::Handle’ has not been declared
      using v8::Handle;
      ^~~~~~
      In file included from …/…/nan/nan.h:56,
      from …/src/ioctls.cc:1:
      /home/pi/.electron-gyp/6.1.12/include/node/node.h:572:43: warning: cast between incompatible function types from ‘void (
      )(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (
      )(v8::Locct>)’} to ‘node::addon_register_func’ {aka ‘void ()(v8::Localv8::Object, v8::Localv8::Value, void)’} [-Wcast-function-type]
      (node::addon_register_func) (regfunc),
      ^
      /home/pi/.electron-gyp/6.1.12/include/node/node.h:606:3: note: in expansion of macro ‘NODE_MODULE_X’
      NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
      ^~~~~~~~~~~~~
      …/src/ioctls.cc:46:1: note: in expansion of macro ‘NODE_MODULE’
      NODE_MODULE(ioctls, Init)
      ^~~~~~~~~~~
      In file included from /home/pi/.electron-gyp/6.1.12/include/node/node.h:63,
      from …/…/nan/nan.h:56,
      from …/src/ioctls.cc:1:
      /home/pi/.electron-gyp/6.1.12/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P*, typename v8::WeakCallbackInfo

      ::Callback, v8::WeakCallbackType) [with P = tWrap; T = v8::Object; typename v8::WeakCallbackInfo

      ::Callback = void ()(const v8::WeakCallbackInfonode::ObjectWrap&)]’:
      /home/pi/.electron-gyp/6.1.12/include/node/node_object_wrap.h:84:78: required from here
      /home/pi/.electron-gyp/6.1.12/include/node/v8.h:9810:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfonode::ObjectWrap::Callback’ {aka ‘void (
      )(const v8ackInfonode::ObjectWrap&)’} to ‘Callback’ {aka ‘void ()(const v8::WeakCallbackInfo&)’} [-Wcast-function-type]
      reinterpret_cast(callback), type);
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /home/pi/.electron-gyp/6.1.12/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P
      , typename v8::WeakCallbackInfo

      ::Callback, v8::WeakCallbackType) [with P = Wrap; T = v8::Object; typename v8::WeakCallbackInfo

      ::Callback = void ()(const v8::WeakCallbackInfoNan::ObjectWrap&)]’:
      …/…/nan/nan_object_wrap.h:65:61: required from here
      /home/pi/.electron-gyp/6.1.12/include/node/v8.h:9810:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfoNan::ObjectWrap::Callback’ {aka ‘void (
      )(const v8:ckInfoNan::ObjectWrap&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo&)’} [-Wcast-function-type]
      make: *** [ioctls.target.mk:105: Release/obj.target/ioctls/src/ioctls.o] Fehler 1
      make: Verzeichnis „/home/pi/MagicMirror/modules/MMM-KeyBindings/node_modules/evdev/build“ wird verlassen
      gyp ERR! build error
      gyp ERR! stack Error: make failed with exit code: 2
      gyp ERR! stack at ChildProcess.onExit (/home/pi/MagicMirror/modules/MMM-KeyBindings/node_modules/node-gyp/lib/build.js:194:23)
      gyp ERR! stack at ChildProcess.emit (events.js:198:13)
      gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
      gyp ERR! System Linux 5.4.79-v7l+
      gyp ERR! command “/usr/bin/node” “/home/pi/MagicMirror/modules/MMM-KeyBindings/node_modules/.bin/node-gyp” “rebuild” “–target=6.1.12” “–arch=arm” “–dist-url=https://www.electronjs.org--build-from-source”
      gyp ERR! cwd /home/pi/MagicMirror/modules/MMM-KeyBindings/node_modules/evdev
      gyp ERR! node -v v10.21.0
      gyp ERR! node-gyp -v v6.1.0
      gyp ERR! not ok

      Failed with exit code: 1

      Error: make: Verzeichnis „/home/pi/MagicMirror/modules/MMM-KeyBindings/node_modules/evdev/build“ wird betreten
      CXX(target) Release/obj.target/ioctls/src/ioctls.o
      In file included from /home/pi/.electron-gyp/6.1.12/include/node/v8-internal.h:14,
      from /home/pi/.electron-gyp/6.1.12/include/node/v8.h:25,
      from /home/pi/.electron-gyp/6.1.12/include/node/node.h:63,
      from …/…/nan/nan.h:56,
      from …/src/ioctls.cc:1:
      /home/pi/.electron-gyp/6.1.12/include/node/v8config.h:326:49: warning: ‘MicrotasksCompletedCallback’ is deprecated [-Wdeprecated-declarations]
      declarator attribute((deprecated(message)))
      ^
      /home/pi/.electron-gyp/6.1.12/include/node/v8.h:8205:3: note: in expansion of macro ‘V8_DEPRECATE_SOON’
      V8_DEPRECATE_SOON("Use WithData version.",
      ^~~~~~~~~~~~~~~~~
      /home/pi/.electron-gyp/6.1.12/include/node/v8config.h:326:49: warning: ‘MicrotasksCompletedCallback’ is deprecated [-Wdeprecated-declarations]
      declarator attribute((deprecated(message)))
      ^
      /home/pi/.electron-gyp/6.1.12/include/node/v8.h:8214:3: note: in expansion of macro ‘V8_DEPRECATE_SOON’
      V8_DEPRECATE_SOON("Use WithData version.",
      ^~~~~~~~~~~~~~~~~
      …/src/ioctls.cc:10:11: error: ‘v8::Handle’ has not been declared
      using v8::Handle;
      ^~~~~~
      In file included from …/…/nan/nan.h:56,
      from …/src/ioctls.cc:1:
      /home/pi/.electron-gyp/6.1.12/include/node/node.h:572:43: warning: cast between incompatible function types from ‘void (
      )(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (
      )(v8::Locct>)’} to ‘node::addon_register_func’ {aka ‘void ()(v8::Localv8::Object, v8::Localv8::Value, void)’} [-Wcast-function-type]
      (node::addon_register_func) (regfunc),
      ^
      /home/pi/.electron-gyp/6.1.12/include/node/node.h:606:3: note: in expansion of macro ‘NODE_MODULE_X’
      NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
      ^~~~~~~~~~~~~
      …/src/ioctls.cc:46:1: note: in expansion of macro ‘NODE_MODULE’
      NODE_MODULE(ioctls, Init)
      ^~~~~~~~~~~
      In file included from /home/pi/.electron-gyp/6.1.12/include/node/node.h:63,
      from …/…/nan/nan.h:56,
      from …/src/ioctls.cc:1:
      /home/pi/.electron-gyp/6.1.12/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P*, typename v8::WeakCallbackInfo

      ::Callback, v8::WeakCallbackType) [with P = tWrap; T = v8::Object; typename v8::WeakCallbackInfo

      ::Callback = void ()(const v8::WeakCallbackInfonode::ObjectWrap&)]’:
      /home/pi/.electron-gyp/6.1.12/include/node/node_object_wrap.h:84:78: required from here
      /home/pi/.electron-gyp/6.1.12/include/node/v8.h:9810:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfonode::ObjectWrap::Callback’ {aka ‘void (
      )(const v8ackInfonode::ObjectWrap&)’} to ‘Callback’ {aka ‘void ()(const v8::WeakCallbackInfo&)’} [-Wcast-function-type]
      reinterpret_cast(callback), type);
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /home/pi/.electron-gyp/6.1.12/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P
      , typename v8::WeakCallbackInfo

      ::Callback, v8::WeakCallbackType) [with P = Wrap; T = v8::Object; typename v8::WeakCallbackInfo

      ::Callback = void ()(const v8::WeakCallbackInfoNan::ObjectWrap&)]’:
      …/…/nan/nan_object_wrap.h:65:61: required from here
      /home/pi/.electron-gyp/6.1.12/include/node/v8.h:9810:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfoNan::ObjectWrap::Callback’ {aka ‘void (
      )(const v8:ckInfoNan::ObjectWrap&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo&)’} [-Wcast-function-type]
      make: *** [ioctls.target.mk:105: Release/obj.target/ioctls/src/ioctls.o] Fehler 1
      make: Verzeichnis „/home/pi/MagicMirror/modules/MMM-KeyBindings/node_modules/evdev/build“ wird verlassen
      gyp ERR! build error
      gyp ERR! stack Error: make failed with exit code: 2
      gyp ERR! stack at ChildProcess.onExit (/home/pi/MagicMirror/modules/MMM-KeyBindings/node_modules/node-gyp/lib/build.js:194:23)
      gyp ERR! stack at ChildProcess.emit (events.js:198:13)
      gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
      gyp ERR! System Linux 5.4.79-v7l+
      gyp ERR! command “/usr/bin/node” “/home/pi/MagicMirror/modules/MMM-KeyBindings/node_modules/.bin/node-gyp” “rebuild” “–target=6.1.12” “–arch=arm” “–dist-url=https://www.electronjs.org--build-from-source”
      gyp ERR! cwd /home/pi/MagicMirror/modules/MMM-KeyBindings/node_modules/evdev
      gyp ERR! node -v v10.21.0
      gyp ERR! node-gyp -v v6.1.0
      gyp ERR! not ok

      Failed with exit code: 1
      at SafeSubscriber._error (/home/pi/MagicMirror/modules/MMM-KeyBindings/node_modules/spawn-rx/lib/src/index.js:267:84)
      at SafeSubscriber.__tryOrUnsub (/home/pi/MagicMirror/modules/MMM-KeyBindings/node_modules/rxjs/internal/Subscriber.js:205:16)
      at SafeSubscriber.error (/home/pi/MagicMirror/modules/MMM-KeyBindings/node_modules/rxjs/internal/Subscriber.js:156:26)
      at Subscriber._error (/home/pi/MagicMirror/modules/MMM-KeyBindings/node_modules/rxjs/internal/Subscriber.js:92:26)
      at Subscriber.error (/home/pi/MagicMirror/modules/MMM-KeyBindings/node_modules/rxjs/internal/Subscriber.js:72:18)
      at MapSubscriber.Subscriber._error (/home/pi/MagicMirror/modules/MMM-KeyBindings/node_modules/rxjs/internal/Subscriber.js:92:26)
      at MapSubscriber.Subscriber.error (/home/pi/MagicMirror/modules/MMM-KeyBindings/node_modules/rxjs/internal/Subscriber.js:72:18)
      at SafeSubscriber._next (/home/pi/MagicMirror/modules/MMM-KeyBindings/node_modules/spawn-rx/lib/src/index.js:242:65)
      at SafeSubscriber.__tryOrUnsub (/home/pi/MagicMirror/modules/MMM-KeyBindings/node_modules/rxjs/internal/Subscriber.js:205:16)
      at SafeSubscriber.next (/home/pi/MagicMirror/modules/MMM-KeyBindings/node_modules/rxjs/internal/Subscriber.js:143:22)
      npm notice created a lockfile as package-lock.json. You should commit this file.
      added 182 packages from 131 contributors and audited 182 packages in 57.601s

      4 packages are looking for funding
      run npm fund for details

      found 0 vulnerabilities

      
      
      i am trying this for weeks now, but nothing i found on the forum seems to help.
      
      
      Does anyone know how to solve this problem?
      
      Thanks in advance
      
      Martin

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @DeMaddin
        last edited by sdetweil

        @DeMaddin looks like this error (fallback to build) was reported in april 2019, but has not been resolved… the module has not been updated in 2 years.

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • D Offline
          DeMaddin
          last edited by

          Oh.

          Is there an other module for bluetooth remote control?

          If i enter MagicMirror/modules/MMM-Keybindings/node_modules/evdev and do a “npm install” i get the following error on start of MagicMirror:

          |MagicMirror  | Whoops! There was an uncaught exception...
          0|MagicMirror  | [2020-12-27 18:07:35.102] [ERROR]
          0|MagicMirror  | Error: The module '/home/pi/MagicMirror/modules/MMM-KeyBindings                                             /node_modules/evdev/build/Release/ioctls.node'
          0|MagicMirror  | was compiled against a different Node.js version using
          0|MagicMirror  | NODE_MODULE_VERSION 64. This version of Node.js requires
          0|MagicMirror  | NODE_MODULE_VERSION 73. Please try re-compiling or re-installin                                             g
          0|MagicMirror  | the module (for instance, using `npm rebuild` or `npm install`)                                             .
          0|MagicMirror  |     at process.func (electron/js2c/asar.js:138:31)
          0|MagicMirror  |     at process.func [as dlopen] (electron/js2c/asar.js:138:31)
          0|MagicMirror  |     at Object.Module._extensions..node (internal/modules/cjs/lo                                             ader.js:828:18)
          0|MagicMirror  |     at Object.func (electron/js2c/asar.js:138:31)
          0|MagicMirror  |     at Object.func [as .node] (electron/js2c/asar.js:138:31)
          0|MagicMirror  |     at Module.load (internal/modules/cjs/loader.js:645:32)
          0|MagicMirror  |     at Function.Module._load (internal/modules/cjs/loader.js:56                                             0:12)
          0|MagicMirror  |     at Module.require (internal/modules/cjs/loader.js:685:19)
          0|MagicMirror  |     at require (internal/modules/cjs/helpers.js:16:16)
          0|MagicMirror  |     at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-Key                                             Bindings/node_modules/evdev/lib/Device/index.js:1:14)
          0|MagicMirror  | [2020-12-27 18:07:35.106] [ERROR]  MagicMirror will not quit, b                                             ut it might be a good idea to check why this happened. Maybe no internet connect                                             ion?
          0|MagicMirror  | [2020-12-27 18:07:35.108] [ERROR]  If you think this really is                                              an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirro                                             r/issues
          
          

          Are you sure there is no way getting it to work?

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @DeMaddin
            last edited by

            @DeMaddin u need to run electron-rebuild, but that is the step that failed previously

            i don’t know how to fix it, or any other solution

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • D Offline
              DeMaddin
              last edited by

              ok. too bad.

              Thank you very much.

              Martin

              1 Reply Last reply Reply Quote 0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • 1 / 1
              • First post
                Last post
              Enjoying MagicMirror? Please consider a donation!
              MagicMirror created by Michael Teeuw.
              Forum managed by Sam, technical setup by Karsten.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy