samshull / node-proxy

Deprecated: Harmony Proxies in node (no longer needed)
MIT License
162 stars 29 forks source link

AttributeError: 'module' object has no attribute 'script_main' #34

Closed blargism closed 10 years ago

blargism commented 10 years ago

The following build error occurred on Amazon Linux (EL6 kernel). We are using a module that calls node-proxy as one of it's requirements.

Thank you for your attention, please ask for more details if you need them.

npm http GET https://registry.npmjs.org/node-proxy
npm http 304 https://registry.npmjs.org/node-proxy
Traceback (most recent call last):
  File "/usr/lib/node_modules/node-gyp/gyp/gyp_main.py", line 18, in <module>
    sys.exit(gyp.script_main())
AttributeError: 'module' object has no attribute 'script_main'
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/lib/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:789:12)
gyp ERR! System Linux 3.4.57-48.42.amzn1.x86_64
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /OUR_PATH/node_modules/slug/node_modules/unicode/node_modules/bufferstream/node_modules/buffertools
gyp ERR! node -v v0.10.16
gyp ERR! node-gyp -v v0.12.1
gyp ERR! not ok 
npm WARN optional dep failed, continuing buffertools@2.0.0

> node-proxy@0.6.0 install /OUR_PATH/node_modules/echonest/node_modules/fermata/node_modules/node-proxy
> node-gyp configure build

Traceback (most recent call last):
  File "/usr/lib/node_modules/node-gyp/gyp/gyp_main.py", line 18, in <module>
    sys.exit(gyp.script_main())
AttributeError: 'module' object has no attribute 'script_main'
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/lib/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:789:12)
gyp ERR! System Linux 3.4.57-48.42.amzn1.x86_64
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build"
gyp ERR! cwd /OUR_PATH/node_modules/echonest/node_modules/fermata/node_modules/node-proxy
gyp ERR! node -v v0.10.16
gyp ERR! node-gyp -v v0.12.1
gyp ERR! not ok 
npm ERR! weird error 1
npm ERR! not ok code 0
samshull commented 10 years ago

It is clearly a problem with node-gyp.

samshull commented 10 years ago

Closing due to inactivity.