node-soap icon indicating copy to clipboard operation
node-soap copied to clipboard

OSX Mountain Lion install issue

Open Storm9 opened this issue 13 years ago • 6 comments

Hey guys, I'm new to node...so need some help installing this. I tried a few things... including installing expat using macports command: "sudo port install expat" which seemed to install fine...

Below is the command I ran:

storm9s-macbook-pro:node storm$ npm i soap npm WARN package.json [email protected] No repository field. npm WARN package.json [email protected] No readme data. npm WARN package.json [email protected] No repository field. npm http GET https://registry.npmjs.org/soap npm http 304 https://registry.npmjs.org/soap npm http GET https://registry.npmjs.org/node-expat npm http GET https://registry.npmjs.org/request npm http 304 https://registry.npmjs.org/node-expat npm http 304 https://registry.npmjs.org/request npm http GET https://registry.npmjs.org/http-signature npm http GET https://registry.npmjs.org/hawk npm http GET https://registry.npmjs.org/form-data/0.0.8

[email protected] install /Users/Karthik/Development/node/node_modules/soap/node_modules/node-expat node-gyp rebuild

Traceback (most recent call last): File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp", line 15, in import gyp File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/init.py", line 8, in import gyp.input File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 15, in import multiprocessing ImportError: No module named multiprocessing gyp ERR! configure error gyp ERR! stack Error: gyp failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:415:16) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12) gyp ERR! System Darwin 12.3.0 gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /Users/Karthik/Development/node/node_modules/soap/node_modules/node-expat gyp ERR! node -v v0.10.7 gyp ERR! node-gyp -v v0.9.5 gyp ERR! not ok npm ERR! weird error 1 npm http 304 https://registry.npmjs.org/form-data/0.0.8 npm http 304 https://registry.npmjs.org/http-signature npm http 304 https://registry.npmjs.org/hawk npm http GET https://registry.npmjs.org/ctype/0.5.2 npm http GET https://registry.npmjs.org/assert-plus/0.1.2 npm http GET https://registry.npmjs.org/asn1/0.1.11 npm http GET https://registry.npmjs.org/hoek npm http GET https://registry.npmjs.org/boom npm http GET https://registry.npmjs.org/cryptiles npm http GET https://registry.npmjs.org/sntp npm http GET https://registry.npmjs.org/combined-stream npm http GET https://registry.npmjs.org/async npm http 304 https://registry.npmjs.org/asn1/0.1.11 npm http 304 https://registry.npmjs.org/ctype/0.5.2 npm WARN package.json [email protected] No repository field. npm http 304 https://registry.npmjs.org/assert-plus/0.1.2 npm WARN package.json [email protected] No repository field. npm http 304 https://registry.npmjs.org/hoek npm http 304 https://registry.npmjs.org/boom npm http 304 https://registry.npmjs.org/combined-stream npm http 304 https://registry.npmjs.org/cryptiles npm http 304 https://registry.npmjs.org/async npm http 304 https://registry.npmjs.org/sntp npm http GET https://registry.npmjs.org/delayed-stream/0.0.5 npm http 304 https://registry.npmjs.org/delayed-stream/0.0.5 npm ERR! not ok code 0

Storm9 avatar May 24 '13 03:05 Storm9

Your problem is actually that you don't have the multiprocessing library for your python install. You should be able to install it using pip. Multiprocessing was added in Python 2.6 and there's a backport for older versions. In general, I'd recommend upgrading to python 2.7 or (if you don't mind pain) 3.x

alanbly avatar May 24 '13 04:05 alanbly

Installed multiprocessing as well as python 2.7. Still seeing same error.

Storm9 avatar May 24 '13 21:05 Storm9

python2.7 also needs to be your default (if you type 'python -V I'm guessing you still get v2.4), type 'export VERSIONER_PYTHON_VERSION=2.7' and you should get the right python (at least until you close your browser)

AdamMcCormick avatar May 24 '13 21:05 AdamMcCormick

Python V2.7 was the default already.

Storm9 avatar May 24 '13 21:05 Storm9

Hmm, and you're still getting the error "ImportError: No module named multiprocessing" from npm? Ok, try typing 'python', then at the prompt typing "import multiprocessing"

AdamMcCormick avatar May 24 '13 21:05 AdamMcCormick

Problems with node-expat should not occur in newer versions of this library as it was replaced by sax (see #246).

Closed.

herom avatar Sep 15 '14 17:09 herom