installation problems in Windows 7 SP1 #299

idotuchman opened this Issue Jan 30, 2014 · 3 comments


None yet

3 participants

I'm trying to install johnny-five and node-serialport on my windows machine. I installed visual studios 2013 desktop, python27, and node. I'm getting the following error:

c:\Users\Tuchman Law\node\node_modules\serialport>node "C:\Program Files\nodejs\
Traceback (most recent call last):
  File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\gyp_m", line 18, in <module>
  File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib
\gyp\", line 534, in script_main
    return main(sys.argv[1:])
  File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib
\gyp\", line 527, in main
    return gyp_main(args)
  File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib
\gyp\", line 503, in gyp_main
  File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib
\gyp\", line 91, in Load
    generator = __import__(generator_name, globals(), locals(), generator_name)
  File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib
\gyp\generator\", line 19, in <module>
    import gyp.MSVSUserFile as MSVSUserFile
  File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib
\gyp\", line 9, in <module>
    import socket # for gethostname
  File "c:\Python27\lib\", line 47, in <module>
    import _socket
ImportError: DLL load failed: The specified procedure could not be found.
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (C:\Program Files\nodejs\node_module
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:797:
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modu
les\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd c:\Users\Tuchman Law\node\node_modules\serialport
gyp ERR! node -v v0.10.25
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
npm ERR! serialport@1.3.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the serialport@1.3.1 install script.

I've been working with @reconbot and he can't get it to install.

@reconbot wanted me to mention #248 and how the link for the latest node-gyp doesn't work.


This seems to be an error in python itself finding a matching windows file. Could you try reinstalling python 2.7.6 on your machine? I found a few similar cases on the web, all seemed to be related to either an older version of 2.7.x or a corrupt install:


Closing due to age.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment