Git Product home page Git Product logo

Comments (28)

speg avatar speg commented on May 21, 2024

Also failing on OS X 10.10.3:

> [email protected] install /private/var/folders/_z/76phwkm974n8lgtp70xv4zzc0000z8/T/apm-install-dir-115421-528-gnhwxo/node_modules/Hydrogen/node_modules/zmq
> node-gyp rebuild


/bin/sh: pkg-config: command not found
gyp: Call to 'pkg-config libzmq --libs' returned exit status 127. while trying to load binding.gyp
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/node_modules/node-gyp/lib/configure.js:343:16)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:820:12)
gyp ERR! System Darwin 14.3.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/76phwkm974n8lgtp70xv4zzc0000z8/T/apm-install-dir-115421-528-gnhwxo/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.3.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/Steve/.atom/.apm/.apmrc" "--userconfig" "/Users/Steve/.atom/.apmrc" "install" "/private/var/folders/_z/76phwkm974n8lgtp70xv4zzc0000z8/T/d-115421-528-1ffwoyp/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 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/76phwkm974n8lgtp70xv4zzc0000z8/T/apm-install-dir-115421-528-gnhwxo/npm-debug.log

from hydrogen.

willwhitney avatar willwhitney commented on May 21, 2024

@speg This is a different problem β€” run brew install pkg-config first. It says to in the readme, but I should make it more prominent.

from hydrogen.

speg avatar speg commented on May 21, 2024

@willwhitney Ah, sorry. I read it as install pkg-config if zeromq fails. But I see you just fixed that in 8504fff! Thanks, I am up and running! :shipit:

from hydrogen.

willwhitney avatar willwhitney commented on May 21, 2024

@bilderbuchi Seems like node's zmq package isn't working properly on Windows. I'll look into why.

from hydrogen.

willwhitney avatar willwhitney commented on May 21, 2024

Looks like it's node-gyp that's the root cause.

@bilderbuchi (or anyone else with a Windows machine): would you be willing to spend a few minutes on a pull request to get the kinks worked out with Windows? It would be very helpful!

from hydrogen.

bilderbuchi avatar bilderbuchi commented on May 21, 2024

I don't speak *script, so I think whipping up a PR is out of my reach. I could try installing devbuilds or whatever, though, if you tell me how, but I'm pretty busy at work in the coming weeks (and my home machine is Linux only ;-) :-/ ).

from hydrogen.

jzthree avatar jzthree commented on May 21, 2024

I can install sucessfully on Windows Server 2012 although there are some other compatibility issues. I had the node-gyp rebuild problem before when using MSVS2010 compiler. It worked fine after I uninstalled MSVS2010 and use MSVS2012 C++ compiler.

But to make it functional it seems that we still need some compatibility fixes. I will report my partial progress so far. The first issue is related to ipython/jupyter kernels path in kernel-manager.coffee. I worked-around that and now it is the line "child_process.execSync('mkdir -p ' + @fileStoragePath)" in config-manager.coffee complaining with "bad file descriptor error". Any idea on what's going on here?

from hydrogen.

willwhitney avatar willwhitney commented on May 21, 2024

Unfortunately there are a few things that will break on Windows.

The path that I store kernel config files in uses a Unix slash, plus instead of shelling out that should be using fs.mkdirSync.

I think that changing the line to fileStoragePath: path.join(__dirname, '..', 'kernel-configs') should work in Windows, then instead of execSync on the line it should be fs.mkdirSync(@fileStoragePath).

from hydrogen.

willwhitney avatar willwhitney commented on May 21, 2024

@jzthree Just made those changes to config-manager.coffee and pushed to master, so you can pull them or copy-paste them to see if that helps.

from hydrogen.

jzthree avatar jzthree commented on May 21, 2024

Yes this basically fixed it. I made a few minor compatibility changes see pull request #16 so it now runs python kernel on my machine without problem (I haven't tested other kernels. UPDATE: I just tested IJulia and it also works out of the box). Thanks for the awesome package and being so helpful!!

from hydrogen.

willwhitney avatar willwhitney commented on May 21, 2024

@jzthree You're amazing! Thanks for the help!

from hydrogen.

bilderbuchi avatar bilderbuchi commented on May 21, 2024

@willwhitney this is not fixed for me, I still get the same error message as originally reported afaict, for hydrogen 0.3.5.
However, I saw this other issue #12 about installation not working with Python 3 - Python 3 is the only python on my system, but I don't get the error message as reported in #12 about the Python executable mismatch, so I'm not sure I'm hitting this.

from hydrogen.

willwhitney avatar willwhitney commented on May 21, 2024

@bilderbuchi right, sorry. Since it looks like the issue is with node-gyp, try following their install instructions. It looks like they have some extra dependencies on Windows. You will also need to use Python 2.x for sure β€”Β the underlying gyp tool doesn't support 3.x (which is ridiculous, and I would love a way to replace the current zmq module to fix all this).

If that works for you, I'll add some info to the install instructions for Windows.

from hydrogen.

bilderbuchi avatar bilderbuchi commented on May 21, 2024

Thanks for the follow-up. I have to say I'm hesitant to pull in the extra dependencies of Python2 and Visuals Studio (both which I don't use). I think I'll give up on trying to get this on windows, and try installing this on my Linux machine, instead. Sorry for the noise.

from hydrogen.

bilderbuchi avatar bilderbuchi commented on May 21, 2024

Happy to say, after installing libzmq3-dev, this installed and works on Ubuntu. :-) Feel free to close this or keep open for other unfortunate souls...

from hydrogen.

willwhitney avatar willwhitney commented on May 21, 2024

Glad you've got it running :)

Sorry installation on Windows is such a drag. Something really needs to replace node-gyp as the build tool of choice for Node.

from hydrogen.

rgbkrk avatar rgbkrk commented on May 21, 2024

Here we go...

screenshot 2015-05-23 08 55 54

FML

screenshot 2015-05-23 08 59 14

from hydrogen.

willwhitney avatar willwhitney commented on May 21, 2024

@rgbkrk how did you get this working?

from hydrogen.

rgbkrk avatar rgbkrk commented on May 21, 2024

That was just a base install of Atom, nothing fancy.

from hydrogen.

willwhitney avatar willwhitney commented on May 21, 2024

Yup, figured it out. I thought you had gotten Hydrogen running on it.

from hydrogen.

rgbkrk avatar rgbkrk commented on May 21, 2024

Check this out:

screenshot 2015-05-25 09 31 04

Steps for me to get there:

from hydrogen.

rgbkrk avatar rgbkrk commented on May 21, 2024

Proof, there it is:

screenshot 2015-05-25 09 41 15

from hydrogen.

rgbkrk avatar rgbkrk commented on May 21, 2024

I'll go ahead and update the README.

from hydrogen.

willwhitney avatar willwhitney commented on May 21, 2024

Whoa, way to go! I'll merge that immediately.

from hydrogen.

DavidPowell avatar DavidPowell commented on May 21, 2024

I followed @rgbkrk's instructions but I still get errors. I have multiple microsoft compilers installed to compile extensions for python 2.7 and 3.4, so I wonder if one of these is somehow getting called instead of the visual studio community edition 2015. Is there some way that the relevant binaries can be distributed, instead of end users needing to compile them?

from hydrogen.

willwhitney avatar willwhitney commented on May 21, 2024

Oof, I'm sorry. Our current state of affairs regarding ZMQ really sucks.

We're working on ways around this, including a bundled Go binary that intermediates between talking ZMQ to the kernel and websockets to the client. That would allow Hydrogen to be pure JS.

Here's the project: https://github.com/rgbkrk/juno
If you know any Go, contributions would be welcomed!

from hydrogen.

rgbkrk avatar rgbkrk commented on May 21, 2024

Juno will be the base library for comms, the opinionated version for hydrogen will be under a separate name. I'm hoping to try out goczmq and its model for idiomatic go for working with zmq.

from hydrogen.

TKCen avatar TKCen commented on May 21, 2024

Updated the windows requirements in pull request #95

from hydrogen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.