• Register
    • Login
    • Search

    Solved EXT-Pir Error during install

    EXT-Pir
    2
    7
    65
    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
      derferd1 last edited by

      Hey all,
      with the most recent updates I had to upgrade my Magicmirror from buster to bullseye because EXT-Screen and EXT-Pir wouldn’t update otherwise.
      Now I’m getting errors during installation.
      I’m using node v16.19.1 and npm v9.6.3. It worked with those beforehand.

      This is the error:

      Reinstalling EXT-Pir...
      npm WARN deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs
      npm ERR! code 1
      npm ERR! path /home/pi/MagicMirror/modules/EXT-Pir/node_modules/epoll
      npm ERR! command failed
      npm ERR! command sh -c node-gyp rebuild
      npm ERR! make: Verzeichnis „/home/pi/MagicMirror/modules/EXT-Pir/node_modules/epoll/build“ wird betreten
      npm ERR!   CXX(target) Release/obj.target/epoll/src/epoll.o
      npm ERR! make: Verzeichnis „/home/pi/MagicMirror/modules/EXT-Pir/node_modules/epoll/build“ wird verlassen
      npm ERR! gyp info it worked if it ends with ok
      npm ERR! gyp info using node-gyp@9.3.1
      npm ERR! gyp info using node@16.19.1 | linux | arm
      npm ERR! gyp info find Python using Python version 3.9.2 found at "/usr/bin/python3"
      npm ERR! gyp info spawn /usr/bin/python3
      npm ERR! gyp info spawn args [
      npm ERR! gyp info spawn args   '/home/pi/MagicMirror/modules/EXT-Pir/node_modules/node-gyp/gyp/gyp_main.py',
      npm ERR! gyp info spawn args   'binding.gyp',
      npm ERR! gyp info spawn args   '-f',
      npm ERR! gyp info spawn args   'make',
      npm ERR! gyp info spawn args   '-I',
      npm ERR! gyp info spawn args   '/home/pi/MagicMirror/modules/EXT-Pir/node_modules/epoll/build/config.gypi',
      npm ERR! gyp info spawn args   '-I',
      npm ERR! gyp info spawn args   '/home/pi/MagicMirror/modules/EXT-Pir/node_modules/node-gyp/addon.gypi',
      npm ERR! gyp info spawn args   '-I',
      npm ERR! gyp info spawn args   '/home/pi/.cache/node-gyp/16.19.1/include/node/common.gypi',
      npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
      npm ERR! gyp info spawn args   '-Dvisibility=default',
      npm ERR! gyp info spawn args   '-Dnode_root_dir=/home/pi/.cache/node-gyp/16.19.1',
      npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/home/pi/MagicMirror/modules/EXT-Pir/node_modules/node-gyp',
      npm ERR! gyp info spawn args   '-Dnode_lib_file=/home/pi/.cache/node-gyp/16.19.1/<(target_arch)/node.lib',
      npm ERR! gyp info spawn args   '-Dmodule_root_dir=/home/pi/MagicMirror/modules/EXT-Pir/node_modules/epoll',
      npm ERR! gyp info spawn args   '-Dnode_engine=v8',
      npm ERR! gyp info spawn args   '--depth=.',
      npm ERR! gyp info spawn args   '--no-parallel',
      npm ERR! gyp info spawn args   '--generator-output',
      npm ERR! gyp info spawn args   'build',
      npm ERR! gyp info spawn args   '-Goutput_dir=.'
      npm ERR! gyp info spawn args ]
      npm ERR! gyp info spawn make
      npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
      npm ERR! make: g++: Datei oder Verzeichnis nicht gefunden
      npm ERR! make: *** [epoll.target.mk:115: Release/obj.target/epoll/src/epoll.o] Fehler 127
      npm ERR! gyp ERR! build error
      npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
      npm ERR! gyp ERR! stack     at ChildProcess.onExit (/home/pi/MagicMirror/modules/EXT-Pir/node_modules/node-gyp/lib/build.js:203:23)
      npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:513:28)
      npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:293:12)
      npm ERR! gyp ERR! System Linux 6.1.19-v7+
      npm ERR! gyp ERR! command "/usr/bin/node" "/home/pi/MagicMirror/modules/EXT-Pir/node_modules/.bin/node-gyp" "rebuild"
      npm ERR! gyp ERR! cwd /home/pi/MagicMirror/modules/EXT-Pir/node_modules/epoll
      npm ERR! gyp ERR! node -v v16.19.1
      npm ERR! gyp ERR! node-gyp -v v9.3.1
      npm ERR! gyp ERR! not ok
      npm ERR! A complete log of this run can be found in: /home/pi/.npm/_logs/2023-04-03T18_16_38_889Z-debug-0.log
      
      1 Reply Last reply Reply Quote 0
      • bugsounet
        bugsounet Main Coder last edited by

        Hi,

        Can past the result of

        uname -a
        

        Thanks

        My place in France Top committers of Github:
        committers.top badge

        1 Reply Last reply Reply Quote 0
        • D
          derferd1 last edited by

          Thank you for your reply.
          Here’s the output:

          Linux raspberrypi 6.1.19-v7+ #1637 SMP Tue Mar 14 11:04:52 GMT 2023 armv7l GNU/Linu
          
          1 Reply Last reply Reply Quote 0
          • bugsounet
            bugsounet Main Coder last edited by

            and give me the result of this:

            cd ~/MagicMirror/modules/EXT-Pir
            npm remove onoff && npm install onoff magicmirror-rebuild && ./node_modules/.bin/MagicMirror-rebuild
            

            (copy and past it for no error)

            My place in France Top committers of Github:
            committers.top badge

            1 Reply Last reply Reply Quote 0
            • D
              derferd1 last edited by

              npm WARN deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs
              added 232 packages, and audited 233 packages in 2m
              39 packages are looking for funding
                run `npm fund` for details
              found 0 vulnerabilities
              npm ERR! code 1
              npm ERR! path /home/pi/MagicMirror/modules/EXT-Pir/node_modules/epoll
              npm ERR! command failed
              npm ERR! command sh -c node-gyp rebuild
              npm ERR! make: Verzeichnis „/home/pi/MagicMirror/modules/EXT-Pir/node_modules/epoll/build“ wird betreten
              npm ERR!   CXX(target) Release/obj.target/epoll/src/epoll.o
              npm ERR! make: Verzeichnis „/home/pi/MagicMirror/modules/EXT-Pir/node_modules/epoll/build“ wird verlassen
              npm ERR! gyp info it worked if it ends with ok
              npm ERR! gyp info using node-gyp@9.3.1
              npm ERR! gyp info using node@16.19.1 | linux | arm
              npm ERR! gyp info find Python using Python version 3.9.2 found at "/usr/bin/python3"
              npm ERR! gyp info spawn /usr/bin/python3
              npm ERR! gyp info spawn args [
              npm ERR! gyp info spawn args   '/home/pi/MagicMirror/modules/EXT-Pir/node_modules/node-gyp/gyp/gyp_main.py',
              npm ERR! gyp info spawn args   'binding.gyp',
              npm ERR! gyp info spawn args   '-f',
              npm ERR! gyp info spawn args   'make',
              npm ERR! gyp info spawn args   '-I',
              npm ERR! gyp info spawn args   '/home/pi/MagicMirror/modules/EXT-Pir/node_modules/epoll/build/config.gypi',
              npm ERR! gyp info spawn args   '-I',
              npm ERR! gyp info spawn args   '/home/pi/MagicMirror/modules/EXT-Pir/node_modules/node-gyp/addon.gypi',
              npm ERR! gyp info spawn args   '-I',
              npm ERR! gyp info spawn args   '/home/pi/.cache/node-gyp/16.19.1/include/node/common.gypi',
              npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
              npm ERR! gyp info spawn args   '-Dvisibility=default',
              npm ERR! gyp info spawn args   '-Dnode_root_dir=/home/pi/.cache/node-gyp/16.19.1',
              npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/home/pi/MagicMirror/modules/EXT-Pir/node_modules/node-gyp',
              npm ERR! gyp info spawn args   '-Dnode_lib_file=/home/pi/.cache/node-gyp/16.19.1/<(target_arch)/node.lib',
              npm ERR! gyp info spawn args   '-Dmodule_root_dir=/home/pi/MagicMirror/modules/EXT-Pir/node_modules/epoll',
              npm ERR! gyp info spawn args   '-Dnode_engine=v8',
              npm ERR! gyp info spawn args   '--depth=.',
              npm ERR! gyp info spawn args   '--no-parallel',
              npm ERR! gyp info spawn args   '--generator-output',
              npm ERR! gyp info spawn args   'build',
              npm ERR! gyp info spawn args   '-Goutput_dir=.'
              npm ERR! gyp info spawn args ]
              npm ERR! gyp info spawn make
              npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
              npm ERR! make: g++: Datei oder Verzeichnis nicht gefunden
              npm ERR! make: *** [epoll.target.mk:115: Release/obj.target/epoll/src/epoll.o] Fehler 127
              npm ERR! gyp ERR! build error
              npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
              npm ERR! gyp ERR! stack     at ChildProcess.onExit (/home/pi/MagicMirror/modules/EXT-Pir/node_modules/node-gyp/lib/build.js:203:23)
              npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:513:28)
              npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:293:12)
              npm ERR! gyp ERR! System Linux 6.1.19-v7+
              npm ERR! gyp ERR! command "/usr/bin/node" "/home/pi/MagicMirror/modules/EXT-Pir/node_modules/.bin/node-gyp" "rebuild"
              npm ERR! gyp ERR! cwd /home/pi/MagicMirror/modules/EXT-Pir/node_modules/epoll
              npm ERR! gyp ERR! node -v v16.19.1
              npm ERR! gyp ERR! node-gyp -v v9.3.1
              npm ERR! gyp ERR! not ok
              npm ERR! A complete log of this run can be found in: /home/pi/.npm/_logs/2023-04-03T21_05_49_866Z-debug-0.log
              
              1 Reply Last reply Reply Quote 0
              • bugsounet
                bugsounet Main Coder last edited by bugsounet

                ok, that’s weird, it seems that build-essential is not installed (to use g++) [—> g++: Datei oder Verzeichnis nicht gefunden]
                It should be installed with EXT-Detector for using MMM-GoogleAssistant

                I will not check if it is installed knowing that it is installed with another mandatory plugin

                Anyway… let’s install it:

                sudo apt-get install build-essential
                

                Past log of this installation

                And Then, if installation of this package is ok, you can start the installation:

                cd ~/MagicMirror/modules/EXT-Pir
                npm run clean
                npm install
                

                My place in France Top committers of Github:
                committers.top badge

                1 Reply Last reply Reply Quote 0
                • D
                  derferd1 last edited by

                  That did work. Thank you for your help!
                  I don’t understand why it didn’t work suddenly but maybe build-essential got deleted while upgrading the mirror according to your guide.
                  Anyway, thank you for your modules and support. I’m looking into your other modules and will donate for your work!

                  1 Reply Last reply Reply Quote 1
                  • undefined  bugsounet bugsounet 
                  • First post
                    Last post
                  Powered by NodeBB | @bugsounet ©2023