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.

    Installing modules on windows

    Scheduled Pinned Locked Moved Troubleshooting
    16 Posts 2 Posters 5.9k 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.
    • V Offline
      vintage89
      last edited by

      I’m trying to install modules on windows - but I get the following error. I’ve installed python - but no change.
      Any suggestions? :)

      
      gyp ERR! find Python
      gyp ERR! find Python Python is not set from command line or npm configuration
      gyp ERR! find Python Python is not set from environment variable PYTHON
      gyp ERR! find Python checking if "python" can be used
      gyp ERR! find Python - "python" is not in PATH or produced an error
      gyp ERR! find Python checking if "python2" can be used
      gyp ERR! find Python - "python2" is not in PATH or produced an error
      gyp ERR! find Python checking if "python3" can be used
      gyp ERR! find Python - "python3" is not in PATH or produced an error
      gyp ERR! find Python checking if the py launcher can be used to find Python 2
      gyp ERR! find Python - "py.exe" is not in PATH or produced an error
      gyp ERR! find Python checking if Python is C:\Python27\python.exe
      gyp ERR! find Python - "C:\Python27\python.exe" could not be run
      gyp ERR! find Python checking if Python is C:\Python37\python.exe
      gyp ERR! find Python - "C:\Python37\python.exe" could not be run
      gyp ERR! find Python
      gyp ERR! find Python **********************************************************
      gyp ERR! find Python You need to install the latest version of Python.
      gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
      gyp ERR! find Python you can try one of the following options:
      gyp ERR! find Python - Use the switch --python="C:\Path\To\python.exe"
      gyp ERR! find Python   (accepted by both node-gyp and npm)
      gyp ERR! find Python - Set the environment variable PYTHON
      gyp ERR! find Python - Set the npm configuration variable python:
      gyp ERR! find Python   npm config set python "C:\Path\To\python.exe"
      gyp ERR! find Python For more information consult the documentation at:
      gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
      gyp ERR! find Python **********************************************************
      gyp ERR! fi
      
      
      S 2 Replies Last reply Reply Quote 0
      • S Offline
        sdetweil @vintage89
        last edited by

        @vintage89 which git did u install? mine is a binary

        Sam

        How to add modules

        learning how to use browser developers window for css changes

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

          @vintage89 also, after installing python, did you close and re-open the command prompt? the path is set only when the window opens

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • V Offline
            vintage89 @sdetweil
            last edited by

            @sdetweil Tried installing this module https://github.com/Thlb/MMM-synology-ds

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

              @vintage89 said in Installing modules on windows:

              https://github.com/Thlb/MMM-synology-ds

              ok, that installed, fine, but has an embedded component that is electron version sensitive

              so

              cd ~/MagicMirror
              npm install electron-rebuild
              cd modules/MMM-synology-ds
              ../../node_modules/.bin/electron-rebuild
              cd ~/MagicMirror
              npm start
              

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • V Offline
                vintage89
                last edited by vintage89

                @sdetweil
                Thanks :)
                I´ve run the script, but when I tried to start it gave me this:

                
                pi@raspberrypi:~/MagicMirror $ npm start
                
                > magicmirror@2.11.0 start /home/pi/MagicMirror
                > electron js/electron.js
                
                
                (electron:8589): Gtk-WARNING **: 14:59:29.032: cannot open display: 
                npm ERR! code ELIFECYCLE
                npm ERR! errno 1
                npm ERR! magicmirror@2.11.0 start: `electron js/electron.js`
                npm ERR! Exit status 1
                npm ERR! 
                npm ERR! Failed at the magicmirror@2.11.0 start script.
                npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
                
                npm ERR! A complete log of this run can be found in:
                npm ERR!     /home/pi/.npm/_logs/2020-04-11T12_59_29_059Z-debug.log
                
                

                I changed the package.json to this - like you said in my other post:

                4E9946A3-9DCE-41FA-9833-5CA4345521F6.jpeg

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

                  @vintage89 do

                  export DISPLAY=:0

                  then
                  npm start

                  these two steps are what the original code did, would have worked on linux… just not on Windows…
                  windows doesn’t have ‘xwindows display’

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  V 2 Replies Last reply Reply Quote 0
                  • V Offline
                    vintage89 @sdetweil
                    last edited by

                    @sdetweil
                    Gave me this, did I do something wrong? :)

                    
                    pi@raspberrypi:~ $ export DISPLAY=:0
                    pi@raspberrypi:~ $ cd MagicMirror/
                    pi@raspberrypi:~/MagicMirror $ npm start
                    
                    > magicmirror@2.11.0 start /home/pi/MagicMirror
                    > electron js/electron.js
                    
                    
                    (electron:813): Gtk-WARNING **: 15:08:03.027: cannot open display: :0
                    npm ERR! code ELIFECYCLE
                    npm ERR! errno 1
                    npm ERR! magicmirror@2.11.0 start: `electron js/electron.js`
                    npm ERR! Exit status 1
                    npm ERR! 
                    npm ERR! Failed at the magicmirror@2.11.0 start script.
                    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
                    
                    npm ERR! A complete log of this run can be found in:
                    npm ERR!     /home/pi/.npm/_logs/2020-04-11T13_08_03_102Z-debug.log
                    
                    
                    1 Reply Last reply Reply Quote 0
                    • V Offline
                      vintage89 @sdetweil
                      last edited by

                      @sdetweil ahh, sorry - forgot to mention that I got my rassberry today, so I’m on a raspberry now. My bad!!

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

                        @vintage89 how are u connected to the pi? ssh, vnc, on the monitor?

                        and you are using the graphical desktop version of Raspian, right?? u must to display on the pi…

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        V 1 Reply Last reply Reply Quote 0
                        • V Offline
                          vintage89 @sdetweil
                          last edited by

                          @sdetweil
                          I’m connected via ssh and vnc. I managed to start it with the original config.json. It’s after I put in the synology-module that everything went out the window.

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

                            @vintage89 eh… I cut/pasted the sample config for that module into config.js at the end of the module list and it came up just fine

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            V 1 Reply Last reply Reply Quote 0
                            • V Offline
                              vintage89 @sdetweil
                              last edited by

                              @sdetweil
                              I´ll try and start from scratch again :)
                              So If I understand you correctly - I don’t have to change the package.json when I’m on the raspberry? :)

                              S 2 Replies Last reply Reply Quote 0
                              • S Offline
                                sdetweil @vintage89
                                last edited by

                                @vintage89 correct… (long as its a pi3 or 4)

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

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

                                  @vintage89 u don’t need to start from scratch… just copy the config/config.js.sample to config/config.js

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

                                  1 Reply Last reply Reply Quote 0
                                  • V Offline
                                    vintage89
                                    last edited by

                                    @sdetweil Hehe, allready did - and now things are playing along well :D Thanks alot!

                                    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