installation problems in Windows 7 SP1 #299

Closed
idotuchman opened this Issue Jan 30, 2014 · 3 comments

Projects

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\
node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js"
rebuild
Traceback (most recent call last):
  File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\gyp_m
ain.py", line 18, in <module>
    sys.exit(gyp.script_main())
  File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib
\gyp\__init__.py", 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\__init__.py", line 527, in main
    return gyp_main(args)
  File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib
\gyp\__init__.py", line 503, in gyp_main
    options.circular_check)
  File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib
\gyp\__init__.py", 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\msvs.py", line 19, in <module>
    import gyp.MSVSUserFile as MSVSUserFile
  File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib
\gyp\MSVSUserFile.py", line 9, in <module>
    import socket # for gethostname
  File "c:\Python27\lib\socket.py", 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
s\npm\node_modules\node-gyp\lib\configure.js:337:16)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:797:
12)
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.

Collaborator

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:

http://stackoverflow.com/questions/6521828/importerror-dll-load-failed-when-trying-to-run-play-framework-for-the-first-t

http://www.velocityreviews.com/forums/t950973-python-2-7-import-socket-urllib-fails-to-load-module-not-found.html

http://lmgtfy.com/?q=ImportError%3A+DLL+load+failed%3A+The+specified+procedure+could+not+be+found.+import+_socket

Collaborator

Closing due to age.

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