git-blame icon indicating copy to clipboard operation
git-blame copied to clipboard

Update fails by stating it requires Python < 3 ?

Open michaelaye opened this issue 10 years ago • 1 comments

I installed the previous version with succes, but this update fails: Here's the output:

> [email protected] install /private/var/folders/tt/k11390b92vl_dygt4m0s7gjr008bbb/T/apm-install-dir-115612-80331-hlelem/node_modules/git-blame/node_modules/pathwatcher/node_modules/runas
> node-gyp rebuild


gyp ERR! configure error 
gyp ERR! stack Error: Python executable "python" is v3.4.3, which is not supported by gyp.
gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0.
gyp ERR! stack     at failPythonVersion (/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/node_modules/node-gyp/lib/configure.js:108:14)
gyp ERR! stack     at /Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/node_modules/node-gyp/lib/configure.js:97:9
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:656:7)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at maybeClose (child_process.js:766:16)
gyp ERR! stack     at Socket.<anonymous> (child_process.js:979:11)
gyp ERR! stack     at Socket.emit (events.js:95:17)
gyp ERR! stack     at Pipe.close (net.js:466:12)
gyp ERR! System Darwin 14.4.0
gyp ERR! command "node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /private/var/folders/tt/k11390b92vl_dygt4m0s7gjr008bbb/T/apm-install-dir-115612-80331-hlelem/node_modules/git-blame/node_modules/pathwatcher/node_modules/runas
gyp ERR! node -v v0.10.35
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok 
npm ERR! Darwin 14.4.0
npm ERR! argv "/Applications/Atom.app/Contents/Resources/app/apm/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/Users/klay6683/.atom/.apm/.apmrc" "--userconfig" "/Users/klay6683/.atom/.apmrc" "install" "/private/var/folders/tt/k11390b92vl_dygt4m0s7gjr008bbb/T/d-115612-80331-1s2ya8/package.tgz" "--target=0.22.0" "--arch=x64"
npm ERR! node v0.10.35
npm ERR! npm  v2.5.1
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the runas 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 runas
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /private/var/folders/tt/k11390b92vl_dygt4m0s7gjr008bbb/T/apm-install-dir-115612-80331-hlelem/npm-debug.log

michaelaye avatar Jul 13 '15 00:07 michaelaye

I know this is a rather old ticket, but I thought I'd add some information on its current relevancy and to cross-reference some fixes.

This was a npm configuration issue on certain linux distributions, see atom/apm#95 and could be fixed with export PYTHON=python2 or npm config set python /usr/bin/python2 -g, asuming python2 was actually installed on those systems.

There is currently a regression in apm 1.15.3 that nullifies this fixes, see atom/apm#698. I think this issue can be closed (once atom/apm#698 is fixed).

Hufschmidt avatar Mar 14 '17 09:03 Hufschmidt