Skip to content
New issue

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 3.4 not supported #12

Closed
fonnesbeck opened this issue May 21, 2015 · 8 comments
Closed

Python 3.4 not supported #12

fonnesbeck opened this issue May 21, 2015 · 8 comments

Comments

@fonnesbeck
Copy link

It looks like one of the dependencies (gyp) is not compatible with Python >= 3:

$ apm install hydrogen
Installing hydrogen to /Users/fonnescj/.atom/packages ✗

> zmq@2.11.0 install /private/var/folders/z_/kgsm76k94s7_jhnkfydfnd380000gn/T/apm-install-dir-115420-19773-pwklwc/node_modules/Hydrogen/node_modules/zmq
> node-gyp rebuild


gyp ERR! configure error 
gyp ERR! stack Error: Python executable "python" is v3.4.2, 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/z_/kgsm76k94s7_jhnkfydfnd380000gn/T/apm-install-dir-115420-19773-pwklwc/node_modules/Hydrogen/node_modules/zmq
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/fonnescj/.atom/.apm/.apmrc" "--userconfig" "/Users/fonnescj/.atom/.apmrc" "install" "/private/var/folders/z_/kgsm76k94s7_jhnkfydfnd380000gn/T/d-115420-19773-1756kxc/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! zmq@2.11.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the zmq@2.11.0 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the zmq 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 zmq
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/z_/kgsm76k94s7_jhnkfydfnd380000gn/T/apm-install-dir-115420-19773-pwklwc/npm-debug.log
@rgbkrk
Copy link
Member

rgbkrk commented May 21, 2015

Hey @fonnesbeck!

That's a known issue with node-gyp (nodejs/node-gyp#384), which builds native add ons (in this case zmq). I've been pushing to fix this upstream in node-gyp but haven't seen any responses by maintainers (even on issues from 2014).

Can you try installing hydrogen with the command line apm tool, setting the PYTHON environment variable?

PYTHON=python2.7 apm install hydrogen

Technically, the node-gyp instructions tell people to set it via node-gyp or npm config but with apm bundling both node-gyp and npm I'm not sure how to overwrite it.

@fonnesbeck
Copy link
Author

I see. That's a deal breaker for me, as I work exclusively in Python 3 these days. Bizarre that they won't update their package.

@willwhitney
Copy link
Collaborator

@fonnesbeck It will still run Python 3, it's only the installer for node-gyp that needs Python 2.

@rgbkrk
Copy link
Member

rgbkrk commented May 21, 2015

From nodejs/node-gyp#193, seems like much of the issue actually comes from gyp: https://code.google.com/p/gyp/issues/detail?id=36

@fonnesbeck
Copy link
Author

@willwhitney I see; I had assumed it was associated with the IPython that gets used by hydrogen. setting the PYTHON flag seems to work. Thanks.

@willwhitney
Copy link
Collaborator

Awesome, glad you're up and running now.

@rgbkrk I'm starting to really wish for a Javascript ZMQ implementation — gyp seems to be causing a lot of problems.

@rgbkrk
Copy link
Member

rgbkrk commented May 24, 2015

With new versions of node-gyp, they'll now also check for python2 (via nodejs/node-gyp#527). Hurrah!

@willwhitney
Copy link
Collaborator

Nice!

On Sun, May 24, 2015, 7:57 PM Kyle Kelley notifications@github.com wrote:

With new versions of node-gyp, they'll now also check for python2. Hurrah!


Reply to this email directly or view it on GitHub
#12 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants