• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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-AssistantMk2 problems when using electron-rebuild

Scheduled Pinned Locked Moved Troubleshooting
40 Posts 6 Posters 17.8k Views 6 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.
  • Y Offline
    yep_DD
    last edited by Aug 21, 2018, 10:44 AM

    Hi @Sean
    I have the same problem trying to build from scratch. It fails at grpc, I tried your solution but is the same

    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-AssistantMk2/node_modules/node-gyp/lib/build.js:262:23)
    gyp ERR! stack     at ChildProcess.emit (events.js:180:13)
    gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)
    gyp ERR! System Linux 4.14.62-v7+
    gyp ERR! command "/usr/bin/node" "/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/.bin/node-gyp" "rebuild" "--target=2.0.0" "--arch=arm" "--dist-url=https://atom.io/download/electron" "--build-from-source" "--module_name=grpc_node" "--module_path=/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/node/extension_binary/electron-v2.0-linux-arm-glibc" "--host=https://node-precompiled-binaries.grpc.io/" "--remote_path={name}/v1.14.1" "--package_name=electron-v2.0-linux-arm-glibc.tar.gz"
    gyp ERR! cwd /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc
    gyp ERR! node -v v9.11.2
    gyp ERR! node-gyp -v v3.8.0
    gyp ERR! not ok 
    
    
    
    ? 1 Reply Last reply Aug 21, 2018, 10:47 AM Reply Quote 0
    • ? Offline
      A Former User @yep_DD
      last edited by A Former User Aug 21, 2018, 10:48 AM Aug 21, 2018, 10:47 AM

      @yep_dd
      Here is the answer from grpc-node community
      https://github.com/grpc/grpc-node/issues/507#issuecomment-414465022

      0_1534848427079_grpc_rebuilding_for_Electron_failed__·Issue__507·_grpc_grpc-node.png

      So, wait for a while… It’s not the fault of my module… T_T

      1 Reply Last reply Reply Quote 0
      • Y Offline
        yep_DD
        last edited by Aug 21, 2018, 11:10 AM

        @sean said in MMM-AssistantMk2 problems when using electron-rebuild:

        rm -rf grpc

        Hi @Sean,

        cool that helps. You you just advice for some of the not so advanced npm and node users how to downgrade?

        Thank you so much,

        Stephan

        ? 1 Reply Last reply Aug 21, 2018, 11:16 AM Reply Quote 0
        • ? Offline
          A Former User @yep_DD
          last edited by Aug 21, 2018, 11:16 AM

          @yep_dd
          Currently, I’m not in front of my device, so I write this without test.

           npm install [package]@[version]
          

          That is a usual form.

          Thus,

          cd ~/MagicMirror/modules/MMM-AssistantMk2
          rm -rf ./node_modules/grpc
          npm install grpc@1.13
          

          would work, I think.

          1 Reply Last reply Reply Quote 0
          • D Offline
            dvbit
            last edited by dvbit Aug 21, 2018, 11:40 AM Aug 21, 2018, 11:40 AM

            if anybody needs a working raspie3b+ image with hotword/notification/assistant installed drop a pm

            :-)

            1 Reply Last reply Reply Quote 0
            • Y Offline
              yep_DD
              last edited by Aug 21, 2018, 1:16 PM

              @Sean
              works like a charm, thank you

              1 Reply Last reply Reply Quote 0
              • Y Offline
                yep_DD
                last edited by Aug 21, 2018, 3:00 PM

                @Sean

                off topic: is there a way to set the audio output (Device / Program) routing like “record” for the mic?

                ? 2 Replies Last reply Aug 21, 2018, 3:04 PM Reply Quote 0
                • ? Offline
                  A Former User @yep_DD
                  last edited by Aug 21, 2018, 3:04 PM

                  This post is deleted!
                  1 Reply Last reply Reply Quote 0
                  • ? Offline
                    A Former User @yep_DD
                    last edited by A Former User Aug 21, 2018, 3:11 PM Aug 21, 2018, 3:10 PM

                    @yep_dd
                    I didn’t make it configurable much. But you can modify ‘node_helper.js’ by yourself

                    var speaker = new Speaker({
                    channels: 1,
                    sampleRate: cfgInstance.conversation.audio.sampleRateOut,
                    });

                    You can add here ‘device:”hw:1,0”,”. I’ll fix them to be configurable next update.

                    1 Reply Last reply Reply Quote 0
                    • Y Offline
                      yep_DD
                      last edited by Aug 21, 2018, 3:18 PM

                      @Sean

                      cool, works, thank you so much. Would you know where youtube audio is configured? Because that still uses the standard.

                      ? 1 Reply Last reply Aug 21, 2018, 3:21 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 3 / 4
                      3 / 4
                      • First post
                        23/40
                        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