Gyp err stack error python executable python

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mac osx python path needed to be set #58

Mac osx python path needed to be set #58

Comments

gyp ERR! configure error
gyp ERR! stack Error: Can’t find Python executable «/usr/local/bin/python», you can set the PYTHON env variable.
gyp ERR! stack at failNoPython (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:449:14)
gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:353:11
gyp ERR! stack at F (/usr/local/lib/node_modules/npm/node_modules/which/which.js:69:16)
gyp ERR! stack at E (/usr/local/lib/node_modules/npm/node_modules/which/which.js:81:29)
gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/which/which.js:90:16
gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/which/node_modules/isexe/index.js:44:5
gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/which/node_modules/isexe/access.js:8:5
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:123:15)
gyp ERR! System Darwin 16.7.0
gyp ERR! command «/usr/local/bin/node» «/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js» «rebuild»
gyp ERR! cwd /Users/leotreasure/aletheia-app/node_modules/node-webcrypto-ossl
gyp ERR! node -v v6.9.1
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok

Solution is to set the correct python path for npm like this:

Читайте также:  Python read stdin while

npm config set python /usr/bin/python

The text was updated successfully, but these errors were encountered:

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python executable «python» is v3.4.3, which is not supported by gyp #746

Python executable «python» is v3.4.3, which is not supported by gyp #746

Comments

> 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 (/home/hacko/npm/lib/node_modules/wintersmith/node_modules/npm/node_modules/node-gyp/lib/configure.js:108:14) gyp ERR! stack at /home/hacko/npm/lib/node_modules/wintersmith/node_modules/npm/node_modules/node-gyp/lib/configure.js:97:9 gyp ERR! stack at ChildProcess.exithandler (child_process.js:194:7) gyp ERR! stack at emitTwo (events.js:87:13) gyp ERR! stack at ChildProcess.emit (events.js:172:7) gyp ERR! stack at maybeClose (internal/child_process.js:817:16) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5) gyp ERR! System Linux 4.1.8-1-ck gyp ERR! command "/usr/bin/node" "/home/hacko/npm/lib/node_modules/wintersmith/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/hacko/Projects/git/abougouffa/node_modules/wintersmith-livereload/node_modules/ws/node_modules/bufferutil gyp ERR! node -v v4.1.1 gyp ERR! node-gyp -v v1.0.3 gyp ERR! not ok warn npm: optional dep failed, continuing utf-8-validate@1.1.0 warn npm: optional dep failed, continuing bufferutil@1.1.0 warn npm: optional dep failed, continuing fsevents@0.2.1 warn npm: optional dep failed, continuing fsevents@1.0.0

Because in my distro (Arch Linux) and many others, python3 is the default python interpreter (the «python» executable is a link for «python3»).

You can use «python2» instead of «python» in the shebang line, this is a standard since 2011 PEP-394

The text was updated successfully, but these errors were encountered:

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Python executable «python» is v3.4.1, which is not supported by gyp. #577

Error: Python executable «python» is v3.4.1, which is not supported by gyp. #577

Comments

> fsevents@0.3.1 install /Users/node_modules/polyfill-service/node_modules/6to5/node_modules/chokidar/node_modules/fsevents > node-gyp rebuild gyp ERR! configure error gyp ERR! stack Error: Python executable "python" is v3.4.1, 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 (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:108:14) gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:97:9 gyp ERR! stack at ChildProcess.exithandler (child_process.js:646:7) gyp ERR! stack at ChildProcess.emit (events.js:98:17) gyp ERR! stack at maybeClose (child_process.js:756:16) gyp ERR! stack at Socket.(child_process.js:969:11) gyp ERR! stack at Socket.emit (events.js:95:17) gyp ERR! stack at Pipe.close (net.js:465:12) gyp ERR! System Darwin 14.1.0 gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /Users/node_modules/polyfill-service/node_modules/6to5/node_modules/chokidar/node_modules/fsevents gyp ERR! node -v v0.10.33 gyp ERR! node-gyp -v v1.0.1 gyp ERR! not ok npm WARN optional dep failed, continuing fsevents@0.3.1 npm ERR! Error: Command failed: fatal: bad object 9fe698067f2667f0dcc9aca6e56fcd14274143cf npm ERR! npm ERR! at ChildProcess.exithandler (child_process.js:648:15) npm ERR! at ChildProcess.emit (events.js:98:17) npm ERR! at maybeClose (child_process.js:756:16) npm ERR! at Socket. (child_process.js:969:11) npm ERR! at Socket.emit (events.js:95:17) npm ERR! at Pipe.close (net.js:465:12) npm ERR! If you need help, you may report this *entire* log, npm ERR! including the npm and node versions, at: npm ERR! npm ERR! System Darwin 14.1.0 npm ERR! command "node" "/usr/local/bin/npm" "install" "polyfill-service" npm ERR! cwd /Users/ npm ERR! node -v v0.10.33 npm ERR! npm -v 1.4.28 npm ERR! code 128 npm ERR! not ok code 0 

The text was updated successfully, but these errors were encountered:

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Can't find Python executable "python" after installing #56

Can't find Python executable "python" after installing #56

Comments

node-gyp is failing because it can't find python. windows-build-tools did its thing and python is installed:

$ $(npm config get python) Python 2.7.11 (v2.7.11:6d1b6a68f775, Dec 5 2015, 20:32:19) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> exit() $ npm --version 4.5.0 $ node --version v7.9.0 

Here's the output from node-gyp :

+ node_modules/.bin/electron-rebuild --arch x64 -f -p -w serialport -m electron-app × Rebuild Failed An unhandled error occurred inside electron-rebuild gyp info it worked if it ends with ok gyp info using node-gyp@3.6.0 gyp info using node@7.9.0 | win32 | x64 gyp ERR! configure error gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable. gyp ERR! stack at PythonFinder.failNoPython (C:\Users\mike\Work\dronefuse-client\node_modules\node-gyp\lib\configure.js:482:19) gyp ERR! stack at PythonFinder. (C:\Users\mike\Work\dronefuse-client\node_modules\node-gyp\lib\configure.js:508:16) gyp ERR! stack at C:\Users\mike\Work\dronefuse-client\node_modules\graceful-fs\polyfills.js:284:29 gyp ERR! stack at FSReqWrap.oncomplete (fs.js:114:15) gyp ERR! System Windows_NT 10.0.15063 gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\mike\\Work\\dronefuse-client\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--target=1.4.13" "--arch=x64" "--dist-url=https://atom.io/download/electron" "--build-from-source" "--module_name=serialport" "--module_path=C:\\Users\\mike\\Work\\dronefuse-client\\electron-app\\node_modules\\serialport\\build\\Release" "--host=https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7" gyp ERR! cwd C:\Users\mike\Work\dronefuse-client\electron-app\node_modules\serialport gyp ERR! node -v v7.9.0 gyp ERR! node-gyp -v v3.6.0 gyp ERR! not ok 

The text was updated successfully, but these errors were encountered:

Источник

Оцените статью