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.

    Update MMM

    Scheduled Pinned Locked Moved Solved Troubleshooting
    75 Posts 8 Posters 36.0k Views 9 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.
    • S Offline
      sdetweil @mattx38
      last edited by sdetweil

      @mattx38 for hotword, from the hotword doc, try
      in the MMm_Hotword folder

      git clone https://github.com/Kitt-AI/snowboy.git
      cd snowboy
      rm -rf .git
      cp -r resources/models ..
      npm install -y nan node-pre-gyp
      ./node_modules/node-pre-gyp/bin/node-pre-gyp clean configure build
      npm install -y
      npm install -y electron-rebuild
      ./node_modules/.bin/electron-rebuild
      

      its because electron changed versions… some modules are compiled at certain node and electron versions
      if u change the versions (how would u know), then these modules break… Hotword and PIR are two such modules…

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • M Offline
        mattx38
        last edited by

        Now it is the Jarvis Assitant :

        [2020-04-01 22:22:29.776] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Failed to load gRPC binary module because it was not installed for the current system
        Expected directory: electron-v6.1-linux-arm-glibc
        Found: [electron-v3.1-linux-arm-glibc, node-v64-linux-arm-glibc]
        This problem can often be fixed by running “npm rebuild” on the current system
        Original error: Cannot find module ‘/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/node/extension_binary/electron-v6.1-linux-arm-glibc/grpc_node.node’
        Require stack:

        • /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/grpc_extension.js
        • /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/client_interceptors.js
        • /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/client.js
        • /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/index.js
        • /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/google-assistant/components/assistant.js
        • /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/google-assistant/index.js
        • /home/pi/MagicMirror/modules/MMM-AssistantMk2/components/assistant.js
        • /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_helper.js
        • /home/pi/MagicMirror/js/app.js
        • /home/pi/MagicMirror/js/electron.js
        • /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @mattx38
          last edited by

          @mattx38 said in Update MMM:

          MMM-AssistantMk2

          yep assistant… same problem as hotword… incompatible binary versions

          assistant doc

          Then, you need to rebuild grpc module for electron of MagicMirror.
          
          npm install --save-dev electron-rebuild
          ./node_modules/.bin/electron-rebuild
          

          Sam

          How to add modules

          learning how to use browser developers window for css changes

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

            for pir-sensor try

            cd ~/MagicMirror
            npm install electron-rebuild
            node_modules/.bin/electron-rebuild
            

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • M Offline
              mattx38 @sdetweil
              last edited by

              @sdetweil said in Update MMM:

              @mattx38 said in Update MMM:

              MMM-AssistantMk2

              yep assistant… same problem as hotword… incompatible binary versions

              assistant doc

              Then, you need to rebuild grpc module for electron of MagicMirror.
              
              npm install --save-dev electron-rebuild
              ./node_modules/.bin/electron-rebuild
              

              For the last command, it is very long to achieve ; 5 minutes that it runs.
              It’s written : Building module : grpc, Completed: 0

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

                @mattx38 every machine is different… I ignore how long it takes…

                did i work?

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • M Offline
                  mattx38
                  last edited by mattx38

                  Don’t know yet.
                  Did I do something wrong with the update ?
                  Everything seams to be broken…

                  Anyway, thank you very much for your precious help and sorry for my poor english (I’m from France)

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

                    @mattx38 no issue… the ‘default’ instructions don’t consider all the other things that will break.

                    even my upgrade script does not handle these problems… as they are so module specific…

                    my french is a LOT worse than your english!..

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      mattx38
                      last edited by

                      Ok I understand.
                      I saw a message on the Remote Control module github and it seams there is also a problem with it after the MMM update.

                      My MagicMirror was running as a charm till this update. I saw the alert on the MM screen so I did it… what a shame

                      1 Reply Last reply Reply Quote 0
                      • M Offline
                        mattx38
                        last edited by mattx38

                        It is still running, but nothing changed into the terminal.
                        After the command “npm install --save-dev electron-rebuild” I had this message :

                        • electron-rebuild@1.10.1
                          updated 2 packages and audited 822 packages in 16.302s

                        3 packages are looking for funding
                        run npm fund for details

                        found 9 low severity vulnerabilities
                        run npm audit fix to fix them, or npm audit for details

                        Should I run “npm fund” and “npm audit fix” before launching the second command ?

                        S 2 Replies Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 5
                        • 6
                        • 7
                        • 8
                        • 1 / 8
                        • 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