4 Replies Latest reply on Oct 11, 2016 5:36 PM by Intel Corporation

    Is it possible to use the grove kit with node-red on Windows 10 or Ubuntu x64?

    andrecarlucci

      Node-red runs fine on Windows 10, but I couldn't install module mraa on Windows 10.

       

      gyp ERR! configure error
      gyp ERR! stack Error: `gyp` failed with exit code: 1
      gyp ERR! stack     at ChildProcess.onCpExit (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:343:16)
      gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
      gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
      gyp ERR! System Windows_NT 6.3.9600
      gyp ERR! command "node" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
      gyp ERR! cwd C:\Users\andrecarlucci\AppData\Roaming\npm\node_modules\mraa
      gyp ERR! node -v v0.12.2
      gyp ERR! node-gyp -v v1.0.3
      gyp ERR! not ok
      npm ERR! Windows_NT 6.3.9600
      npm ERR! argv "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "mraa"
      npm ERR! node v0.12.2
      npm ERR! npm  v2.7.4
      npm ERR! code ELIFECYCLE
      
      
      npm ERR! mraa@1.3.0 install: `node-gyp rebuild`
      npm ERR! Exit status 1
      npm ERR!
      npm ERR! Failed at the mraa@1.3.0 install script 'node-gyp rebuild'.
      npm ERR! This is most likely a problem with the mraa package,
      npm ERR! not with npm itself.
      npm ERR! Tell the author that this fails on your system:
      npm ERR!     node-gyp rebuild
      npm ERR! You can get their info via:
      npm ERR!     npm owner ls mraa
      npm ERR! There is likely additional logging output above.
      

       

      On Ubuntu x64 I went as far as running node-red and got this error:

       

      Welcome to Node-RED
      ===================
      
      
      3 Oct 14:40:37 - [info] Node-RED version: v0.14.6
      3 Oct 14:40:37 - [info] Node.js  version: v6.7.0
      3 Oct 14:40:37 - [info] Linux 3.4.0+ x64 LE
      3 Oct 14:40:37 - [info] Loading palette nodes
      3 Oct 14:40:38 - [warn] ------------------------------------------------------
      3 Oct 14:40:38 - [warn] [rpi-gpio] Info : Ignoring Raspberry Pi specific node
      3 Oct 14:40:38 - [warn] [upm-grove-button] Error: /usr/lib/node_modules/jsupm_grove/jsupm_grove.node: wrong ELF class: ELFCLASS32
      3 Oct 14:40:38 - [warn] [upm-grove-led] Error: /usr/lib/node_modules/jsupm_grove/jsupm_grove.node: wrong ELF class: ELFCLASS32
      3 Oct 14:40:38 - [warn] [upm-grove-light] Error: /usr/lib/node_modules/jsupm_grove/jsupm_grove.node: wrong ELF class: ELFCLASS32
      3 Oct 14:40:38 - [warn] [upm-grove-relay] Error: /usr/lib/node_modules/jsupm_grove/jsupm_grove.node: wrong ELF class: ELFCLASS32
      3 Oct 14:40:38 - [warn] [upm-grove-rgb-lcd] Error: /usr/lib/node_modules/jsupm_i2clcd/jsupm_i2clcd.node: wrong ELF class: ELFCLASS32
      

       

      Any thoughts?

        • 1. Re: Is it possible to use the grove kit with node-red on Windows 10 or Ubuntu x64?
          Intel Corporation
          This message was posted on behalf of Intel Corporation

          Hi Andre,

          Thank you for contacting us, let us try to help you solve the issue.
          Which commands are you using to install mraa and where are you getting it from? Did you get it from source or from AlexT’s repository? Let us know every detail from your process to see if we can spot the issue or at least help you in getting it solved.

          Regards,
          -Pablo

          • 2. Re: Is it possible to use the grove kit with node-red on Windows 10 or Ubuntu x64?
            andrecarlucci

            Hi Pablo, thanks for your help.

            On Windows 10

             

            This is what I get when running node-red:

             

            andrecarlucci@CARLUCCI-WAY2 C:\dev\labs\node-red
            $ node-red
            
            
            
            
            Welcome to Node-RED
            ===================
            
            
            4 Oct 15:53:38 - [info] Node-RED version: v0.14.6
            4 Oct 15:53:38 - [info] Node.js  version: v0.12.2
            4 Oct 15:53:38 - [info] Windows_NT 6.3.9600 ia32 LE
            4 Oct 15:53:38 - [info] Loading palette nodes
            4 Oct 15:53:40 - [warn] ------------------------------------------------------
            4 Oct 15:53:40 - [warn] [rpi-gpio] Info : Ignoring Raspberry Pi specific node
            4 Oct 15:53:40 - [warn] [tail] Not currently supported on Windows.
            4 Oct 15:53:40 - [warn] [upm-grove-button] Error: Cannot find module 'mraa'
            4 Oct 15:53:40 - [warn] [upm-grove-led] Error: Cannot find module 'mraa'
            4 Oct 15:53:40 - [warn] [upm-grove-light] Error: Cannot find module 'mraa'
            4 Oct 15:53:40 - [warn] [upm-grove-relay] Error: Cannot find module 'mraa'
            4 Oct 15:53:40 - [warn] [upm-grove-rgb-lcd] Error: Cannot find module 'mraa'
            4 Oct 15:53:40 - [warn] [upm-grove-rotary] Error: Cannot find module 'mraa'
            4 Oct 15:53:40 - [warn] [upm-grove-sound] Error: Cannot find module 'mraa'
            4 Oct 15:53:40 - [warn] [upm-grove-temperature] Error: Cannot find module 'mraa'
            4 Oct 15:53:40 - [warn] [upm-grove-servo] Error: Cannot find module 'mraa'
            4 Oct 15:53:40 - [warn] [upm-curieimu] Error: Cannot find module 'mraa'
            4 Oct 15:53:40 - [warn] ------------------------------------------------------
            4 Oct 15:53:40 - [info] Settings file  : C:\Users\andrecarlucci\AppData\Roaming\npm\node_modules\node-red\settings.js
            4 Oct 15:53:40 - [info] User directory : \Users\andrecarlucci\.node-red
            4 Oct 15:53:40 - [info] Flows file     : \Users\andrecarlucci\.node-red\flows_CARLUCCI-WAY2.json
            4 Oct 15:53:40 - [info] Creating new flow file
            4 Oct 15:53:40 - [info] Starting flows
            4 Oct 15:53:40 - [info] Started flows
            4 Oct 15:53:40 - [info] Server now running at http://127.0.0.1:1880/
            4 Oct 15:53:44 - [info] Stopping flows
            Terminate batch job (Y/N)? Y
            
            
            andrecarlucci@CARLUCCI-WAY2 C:\dev\labs\node-red
            

             

             

            npm install -g mraa
            

            See attached document for logs.

             

             

            On bash for Windows 10 (Ubuntu):

            mraa installs just fine.

            When I type node-red, I get this:

            andrecarlucci@CARLUCCI-WAY2:~/node-red$ node-red
            
            
            
            
            Welcome to Node-RED
            ===================
            
            
            4 Oct 18:49:58 - [info] Node-RED version: v0.14.6
            4 Oct 18:49:58 - [info] Node.js  version: v6.7.0
            4 Oct 18:49:58 - [info] Linux 3.4.0+ x64 LE
            4 Oct 18:49:58 - [info] Loading palette nodes
            4 Oct 18:50:05 - [warn] ------------------------------------------------------
            4 Oct 18:50:05 - [warn] [rpi-gpio] Info : Ignoring Raspberry Pi specific node
            4 Oct 18:50:05 - [warn] [upm-grove-button] Error: /usr/lib/node_modules/jsupm_grove/jsupm_grove.node: wrong ELF class: ELFCLASS32
            4 Oct 18:50:05 - [warn] [upm-grove-led] Error: /usr/lib/node_modules/jsupm_grove/jsupm_grove.node: wrong ELF class: ELFCLASS32
            4 Oct 18:50:05 - [warn] [upm-grove-light] Error: /usr/lib/node_modules/jsupm_grove/jsupm_grove.node: wrong ELF class: ELFCLASS32
            4 Oct 18:50:05 - [warn] [upm-grove-relay] Error: /usr/lib/node_modules/jsupm_grove/jsupm_grove.node: wrong ELF class: ELFCLASS32
            4 Oct 18:50:05 - [warn] [upm-grove-rgb-lcd] Error: /usr/lib/node_modules/jsupm_i2clcd/jsupm_i2clcd.node: wrong ELF class: ELFCLASS32
            4 Oct 18:50:05 - [warn] [upm-grove-rotary] Error: /usr/lib/node_modules/jsupm_grove/jsupm_grove.node: wrong ELF class: ELFCLASS32
            4 Oct 18:50:05 - [warn] [upm-grove-temperature] Error: /usr/lib/node_modules/jsupm_grove/jsupm_grove.node: wrong ELF class: ELFCLASS32
            4 Oct 18:50:05 - [warn] [upm-grove-servo] Error: /usr/lib/node_modules/jsupm_servo/jsupm_servo.node: wrong ELF class: ELFCLASS32
            4 Oct 18:50:05 - [warn] [upm-curieimu] Error: Cannot find module 'jsupm_curieimu'
            4 Oct 18:50:05 - [warn] ------------------------------------------------------
            4 Oct 18:50:05 - [info] Settings file  : /home/andrecarlucci/.node-red/settings.js
            4 Oct 18:50:05 - [info] User directory : /home/andrecarlucci/.node-red
            4 Oct 18:50:05 - [info] Flows file     : /home/andrecarlucci/.node-red/flows_CARLUCCI-WAY2.json
            4 Oct 18:50:05 - [info] Creating new flow file
            4 Oct 18:50:05 - [info] Starting flows
            4 Oct 18:50:05 - [info] Started flows
            4 Oct 18:50:05 - [info] Server now running at http://127.0.0.1:1880/
            

             

            I'm using npm repository.

             

            Btw, I'm trying to make my Arduino 101 with Grove to work directly with my notebook, I don't actually have an Edson board.

             

            Thanks!

            • 3. Re: Is it possible to use the grove kit with node-red on Windows 10 or Ubuntu x64?
              Intel Corporation
              This message was posted on behalf of Intel Corporation

              Hi Andre,

              I’m still not sure what you’re exactly trying to achieve with your project, and I would like to first clarify on that. Could you please answer the following questions?

              • Which Grove kit are you using and how do you plan to implement your Arduino 101 board with it?
              • Are you trying to use Windows 10 and/or Ubuntu as your “IoT device” instead of the Edison board? Please let me know if I’m mistaken so I can try to help you.
              • Have you checked this guide before http://www.instructables.com/id/Intel-Edison-Simple-coding-with-Node-Red/step4/Ping-test-code/? This guide uses the Edison board as the target device to install node-red, so keep in mind that you might not get the same results.
              Also, remember that the Arduino Support team is the one in charge of handling the Arduino 101 cases, so it might be a good idea to let them know your questions, here’s the link https://forum.arduino.cc/index.php?board=103.0.

              Regards,
              -Pablo
              • 4. Re: Is it possible to use the grove kit with node-red on Windows 10 or Ubuntu x64?
                Intel Corporation
                This message was posted on behalf of Intel Corporation

                Hi Andre,

                I’m wondering if you received a notification for our last post in this thread. Have you been able to work on this case lately? Do you have any updates? I would like to help you with this so I would appreciate if you could answer the questions from my previous post.

                Regards,
                -Pablo