nteract / hydrogen

:atom: Run code interactively, inspect data, and plot. All the power of Jupyter kernels, inside your favorite text editor.
https://nteract.gitbooks.io/hydrogen/
MIT License
3.92k stars 334 forks source link

installing Hydrogen package on Windows with Mingw-64 #79

Closed stonebig closed 9 years ago

stonebig commented 9 years ago

Hello,

I would like to have Atom+Hydrogen working nicely with Winpython, which include a compiler Mingw-64.

Unfortunately, it seems the compilation steps, when installing Hydrogen, tries to use VisualStudio (as I see a .vcxprojin the long error report. Is there any workaround to have it compiled with Mingw-64 ?

[Enter steps to reproduce below:]

1. install a Winpython
2. unzip an atom-windows.zip in the subdirectory \tools\Atom (so we have `\tools\Atom\atom.exe`
3. modify the \scripts\env.bat file to add `%WINPYDIR%\..\tools\Atom` in the PATH 
4. launch `\scripts\cmd.bat` and then type Atom <Enter> .... Atom launches itself
5. modify default settings to subdirectory `\settings\github` 
6. ask to install Hydrogen, and then ...

Installing “Hydrogen@0.4.2” failed.Hide output…

> zmq@2.11.1 install C:\Users\famille\AppData\Local\Temp\apm-install-dir-11567-5256-w6eczq\node_modules\Hydrogen\node_modules\zmq
> node-gyp rebuild

C:\Users\famille\AppData\Local\Temp\apm-install-dir-11567-5256-w6eczq\node_modules\Hydrogen\node_modules\zmq>node "D:\result_tests\winpython-2.7.10.2build1.amd64\tools\Atom\resources\app\apm\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild 
G�n�ration des projets individuellement dans cette solution. Pour activer la g�n�ration en parall�le, ajoutez le commutateur "/m".
  binding.cc
C:\Users\famille\.atom\.node-gyp\.node-gyp\0.22.0\deps\v8\include\v8.h(3903): error C2332: 'enum'�: nom de balise manquant [C:\Users\famille\AppData\Local\Temp\apm-install-dir-11567-5256-w6eczq\node_modules\Hydrogen\node_modules\zmq\build\zmq.vcxproj]
C:\Users\famille\.atom\.node-gyp\.node-gyp\0.22.0\deps\v8\include\v8.h(3903): error C2236: 'class' 'v8::PropertyHandlerFlags' inattendu. N'auriez-vous pas oubli� un ';'�? [C:\Users\famille\AppData\Local\Temp\apm-install-dir-11567-5256-w6eczq\node_modules\Hydrogen\node_modules\zmq\build\zmq.vcxproj]
C:\Users\famille\.atom\.node-gyp\.node-gyp\0.22.0\deps\v8\include\v8.h(3903): error C3381: 'v8::PropertyHandlerFlags'�: les sp�cificateurs d'acc�s � l'assembly ne sont disponibles que dans le code compil� � l'aide de l'option /clr [C:\Users\famille\AppData\Local\Temp\apm-install-dir-11567-5256-w6eczq\node_modules\Hydrogen\node_modules\zmq\build\zmq.vcxproj]
C:\Users\famille\.atom\.node-gyp\.node-gyp\0.22.0\deps\v8\include\v8.h(3903): error C4430: sp�cificateur de type manquant - int est pris en compte par d�faut. Remarque�: C++ ne prend pas en charge int par d�faut [C:\Users\famille\AppData\Local\Temp\apm-install-dir-11567-5256-w6eczq\node_modules\Hydrogen\node_modules\zmq\build\zmq.vcxproj]
C:\Users\famille\.atom\.node-gyp\.node-gyp\0.22.0\deps\v8\include\v8.h(3903): error C2864: 'v8::PropertyHandlerFlags::kNone'�: seules les donn�es membres static const int�grales peuvent �tre initialis�es dans une classe [C:\Users\famille\AppData\Local\Temp\apm-install-dir-11567-5256-w6eczq\node_modules\Hydrogen\node_modules\zmq\build\zmq.vcxproj]
C:\Users\famille\.atom\.node-gyp\.node-gyp\0.22.0\deps\v8\include\v8.h(3903): error C4430: sp�cificateur de type manquant - int est pris en compte par d�faut. Remarque�: C++ ne prend pas en charge int par d�faut [C:\Users\famille\AppData\Local\Temp\apm-install-dir-11567-5256-w6eczq\node_modules\Hydrogen\node_modules\zmq\build\zmq.vcxproj]
C:\Users\famille\.atom\.node-gyp\.node-gyp\0.22.0\deps\v8\include\v8.h(3903): error C2864: 'v8::PropertyHandlerFlags::kAllCanRead'�: seules les donn�es membres static const int�grales peuvent �tre initialis�es dans une classe [C:\Users\famille\AppData\Local\Temp\apm-install-dir-11567-5256-w6eczq\node_modules\Hydrogen\node_modules\zmq\build\zmq.vcxproj]
C:\Users\famille\.atom\.node-gyp\.node-gyp\0.22.0\deps\v8\include\v8.h(3903): error C2143: erreur de syntaxe�: absence de ';' avant '}' [C:\Users\famille\AppData\Local\Temp\apm-install-dir-11567-5256-w6eczq\node_modules\Hydrogen\node_modules\zmq\build\zmq.vcxproj]
C:\Users\famille\.atom\.node-gyp\.node-gyp\0.22.0\deps\v8\include\v8.h(3907): error C2039: 'kNone'�: n'est pas membre de 'v8::PropertyHandlerFlags' [C:\Users\famille\AppData\Local\Temp\apm-install-dir-11567-5256-w6eczq\node_modules\Hydrogen\node_modules\zmq\build\zmq.vcxproj]
          C:\Users\famille\.atom\.node-gyp\.node-gyp\0.22.0\deps\v8\include\v8.h(3903)�: voir la d�claration de 'v8::PropertyHandlerFlags'
C:\Users\famille\.atom\.node-gyp\.node-gyp\0.22.0\deps\v8\include\v8.h(3907): error C2039: 'kNone'�: n'est pas membre de 'v8::PropertyHandlerFlags' [C:\Users\famille\AppData\Local\Temp\apm-install-dir-11567-5256-w6eczq\node_modules\Hydrogen\node_modules\zmq\build\zmq.vcxproj]
          C:\Users\famille\.atom\.node-gyp\.node-gyp\0.22.0\deps\v8\include\v8.h(3903)�: voir la d�claration de 'v8::PropertyHandlerFlags'
C:\Users\famille\.atom\.node-gyp\.node-gyp\0.22.0\deps\v8\include\v8.h(3935): error C2039: 'kNone'�: n'est pas membre de 'v8::PropertyHandlerFlags' [C:\Users\famille\AppData\Local\Temp\apm-install-dir-11567-5256-w6eczq\node_modules\Hydrogen\node_modules\zmq\build\zmq.vcxproj]
          C:\Users\famille\.atom\.node-gyp\.node-gyp\0.22.0\deps\v8\include\v8.h(3903)�: voir la d�claration de 'v8::PropertyHandlerFlags'
C:\Users\famille\.atom\.node-gyp\.node-gyp\0.22.0\deps\v8\include\v8.h(3935): error C2039: 'kNone'�: n'est pas membre de 'v8::PropertyHandlerFlags' [C:\Users\famille\AppData\Local\Temp\apm-install-dir-11567-5256-w6eczq\node_modules\Hydrogen\node_modules\zmq\build\zmq.vcxproj]
          C:\Users\famille\.atom\.node-gyp\.node-gyp\0.22.0\deps\v8\include\v8.h(3903)�: voir la d�claration de 'v8::PropertyHandlerFlags'
C:\Users\famille\.atom\.node-gyp\.node-gyp\0.22.0\deps\v8\include\v8.h(3935): error C2065: 'kNone'�: identificateur non d�clar� [C:\Users\famille\AppData\Local\Temp\apm-install-dir-11567-5256-w6eczq\node_modules\Hydrogen\node_modules\zmq\build\zmq.vcxproj]
..\binding.cc(591): warning C4344: changement de comportement�: l'utilisation d'arguments template explicites entra�ne l'appel de 'v8::Local<T> NanNew<v8::String,char*>(A0)' [C:\Users\famille\AppData\Local\Temp\apm-install-dir-11567-5256-w6eczq\node_modules\Hydrogen\node_modules\zmq\build\zmq.vcxproj]
          with
          [
              T=v8::String,
              A0=char *
          ]
          mais la fonction r�guli�re 'v8::Local<T> NanNew(const char *)' est meilleure
          with
          [
              T=v8::String
          ]
          si 'v8::Local<T> NanNew(const char *)' doit �tre appel�, il doit �tre une sp�cialisation explicite
          with
          [
              T=v8::String
          ]
..\binding.cc(617): warning C4244: 'argument'�: conversion de 'int64_t' en 'const int', perte possible de donn�es [C:\Users\famille\AppData\Local\Temp\apm-install-dir-11567-5256-w6eczq\node_modules\Hydrogen\node_modules\zmq\build\zmq.vcxproj]
..\binding.cc(618): warning C4244: 'argument'�: conversion de 'int64_t' en 'int', perte possible de donn�es [C:\Users\famille\AppData\Local\Temp\apm-install-dir-11567-5256-w6eczq\node_modules\Hydrogen\node_modules\zmq\build\zmq.vcxproj]
..\binding.cc(619): warning C4244: 'argument'�: conversion de 'int64_t' en 'const int', perte possible de donn�es [C:\Users\famille\AppData\Local\Temp\apm-install-dir-11567-5256-w6eczq\node_modules\Hydrogen\node_modules\zmq\build\zmq.vcxproj]
..\binding.cc(620): warning C4244: 'argument'�: conversion de 'int64_t' en 'int', perte possible de donn�es [C:\Users\famille\AppData\Local\Temp\apm-install-dir-11567-5256-w6eczq\node_modules\Hydrogen\node_modules\zmq\build\zmq.vcxproj]
..\binding.cc(621): warning C4244: 'argument'�: conversion de 'int64_t' en 'const int', perte possible de donn�es [C:\Users\famille\AppData\Local\Temp\apm-install-dir-11567-5256-w6eczq\node_modules\Hydrogen\node_modules\zmq\build\zmq.vcxproj]
..\binding.cc(622): warning C4244: 'argument'�: conversion de 'int64_t' en 'int', perte possible de donn�es [C:\Users\famille\AppData\Local\Temp\apm-install-dir-11567-5256-w6eczq\node_modules\Hydrogen\node_modules\zmq\build\zmq.vcxproj]
..\binding.cc(623): warning C4244: 'argument'�: conversion de 'int64_t' en 'const int', perte possible de donn�es [C:\Users\famille\AppData\Local\Temp\apm-install-dir-11567-5256-w6eczq\node_modules\Hydrogen\node_modules\zmq\build\zmq.vcxproj]
..\binding.cc(624): warning C4244: 'argument'�: conversion de 'int64_t' en 'int', perte possible de donn�es [C:\Users\famille\AppData\Local\Temp\apm-install-dir-11567-5256-w6eczq\node_modules\Hydrogen\node_modules\zmq\build\zmq.vcxproj]
..\binding.cc(625): warning C4244: 'argument'�: conversion de 'int64_t' en 'const int', perte possible de donn�es [C:\Users\famille\AppData\Local\Temp\apm-install-dir-11567-5256-w6eczq\node_modules\Hydrogen\node_modules\zmq\build\zmq.vcxproj]
..\binding.cc(626): warning C4244: 'argument'�: conversion de 'int64_t' en 'int', perte possible de donn�es [C:\Users\famille\AppData\Local\Temp\apm-install-dir-11567-5256-w6eczq\node_modules\Hydrogen\node_modules\zmq\build\zmq.vcxproj]
..\binding.cc(641): warning C4244: 'argument'�: conversion de 'int64_t' en 'const int', perte possible de donn�es [C:\Users\famille\AppData\Local\Temp\apm-install-dir-11567-5256-w6eczq\node_modules\Hydrogen\node_modules\zmq\build\zmq.vcxproj]
..\binding.cc(642): warning C4244: 'argument'�: conversion de 'int64_t' en 'int', perte possible de donn�es [C:\Users\famille\AppData\Local\Temp\apm-install-dir-11567-5256-w6eczq\node_modules\Hydrogen\node_modules\zmq\build\zmq.vcxproj]
..\binding.cc(643): warning C4244: 'argument'�: conversion de 'int64_t' en 'const int', perte possible de donn�es [C:\Users\famille\AppData\Local\Temp\apm-install-dir-11567-5256-w6eczq\node_modules\Hydrogen\node_modules\zmq\build\zmq.vcxproj]
..\binding.cc(644): warning C4244: 'argument'�: conversion de 'int64_t' en 'int', perte possible de donn�es [C:\Users\famille\AppData\Local\Temp\apm-install-dir-11567-5256-w6eczq\node_modules\Hydrogen\node_modules\zmq\build\zmq.vcxproj]
..\binding.cc(645): warning C4244: 'argument'�: conversion de 'int64_t' en 'const int', perte possible de donn�es [C:\Users\famille\AppData\Local\Temp\apm-install-dir-11567-5256-w6eczq\node_modules\Hydrogen\node_modules\zmq\build\zmq.vcxproj]
..\binding.cc(646): warning C4244: 'argument'�: conversion de 'int64_t' en 'int', perte possible de donn�es [C:\Users\famille\AppData\Local\Temp\apm-install-dir-11567-5256-w6eczq\node_modules\Hydrogen\node_modules\zmq\build\zmq.vcxproj]
..\binding.cc(647): warning C4244: 'argument'�: conversion de 'int64_t' en 'const int', perte possible de donn�es [C:\Users\famille\AppData\Local\Temp\apm-install-dir-11567-5256-w6eczq\node_modules\Hydrogen\node_modules\zmq\build\zmq.vcxproj]
..\binding.cc(648): warning C4244: 'argument'�: conversion de 'int64_t' en 'int', perte possible de donn�es [C:\Users\famille\AppData\Local\Temp\apm-install-dir-11567-5256-w6eczq\node_modules\Hydrogen\node_modules\zmq\build\zmq.vcxproj]
..\binding.cc(649): warning C4244: 'argument'�: conversion de 'int64_t' en 'const int', perte possible de donn�es [C:\Users\famille\AppData\Local\Temp\apm-install-dir-11567-5256-w6eczq\node_modules\Hydrogen\node_modules\zmq\build\zmq.vcxproj]
..\binding.cc(650): warning C4244: 'argument'�: conversion de 'int64_t' en 'int', perte possible de donn�es [C:\Users\famille\AppData\Local\Temp\apm-install-dir-11567-5256-w6eczq\node_modules\Hydrogen\node_modules\zmq\build\zmq.vcxproj]
..\binding.cc(984): warning C4244: '='�: conversion de 'int64_t' en 'int', perte possible de donn�es [C:\Users\famille\AppData\Local\Temp\apm-install-dir-11567-5256-w6eczq\node_modules\Hydrogen\node_modules\zmq\build\zmq.vcxproj]
..\binding.cc(1085): warning C4244: '='�: conversion de 'int64_t' en 'int', perte possible de donn�es [C:\Users\famille\AppData\Local\Temp\apm-install-dir-11567-5256-w6eczq\node_modules\Hydrogen\node_modules\zmq\build\zmq.vcxproj]
..\binding.cc(1179): warning C4344: changement de comportement�: l'utilisation d'arguments template explicites entra�ne l'appel de 'v8::Local<T> NanNew<v8::String,char*>(A0)' [C:\Users\famille\AppData\Local\Temp\apm-install-dir-11567-5256-w6eczq\node_modules\Hydrogen\node_modules\zmq\build\zmq.vcxproj]
          with
          [
              T=v8::String,
              A0=char *
          ]
          mais la fonction r�guli�re 'v8::Local<T> NanNew(const char *)' est meilleure
          with
          [
              T=v8::String
          ]
          si 'v8::Local<T> NanNew(const char *)' doit �tre appel�, il doit �tre une sp�cialisation explicite
          with
          [
              T=v8::String
          ]

gypnpm ERR! Windows_NT 6.1.7601
npm ERR! argv "D:\\result_tests\\winpython-2.7.10.2build1.amd64\\tools\\Atom\\resources\\app\\apm\\bin\\\\node.exe" "D:\\result_tests\\winpython-2.7.10.2build1.amd64\\tools\\Atom\\resources\\app\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "C:\\Users\\famille\\.atom\\.apm\\.apmrc" "--userconfig" "C:\\Users\\famille\\.atom\\.apmrc" "install" "C:\\Users\\famille\\AppData\\Local\\Temp\\d-11567-5256-a9l9zo\\package.tgz" "--target=0.22.0" "--arch=ia32" "--msvs_version=2010"
npm ERR! node v0.10.35
npm ERR! npm  v2.5.1
npm ERR! code ELIFECYCLE

npm ERR! zmq@2.11.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the zmq@2.11.1 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.

0.4.23 295
Hydrogen Run code and get results inline using Jupyter kernels like IPython, IJulia, and iTorch
willwhitney
Install
0.2.0290
ipynb Reserved package
rgbkrk
Install
0.1.021
language-hy Hy language support in Atom
bollwyvl
Install
0.1.223
drop-up Drag and drop image files to editor, upload and insert link, Github style.
sikhapol
Install
0.1.4322
drag-drop-text Drag and drop text (and cut/copy/paste) with only the mouse.
mark-hahn
Install
0.0.216
droiuby An atom package for the Droiuby framework
jedld
Install
0.28.086
dsl-progress A package for develop with 4GL Progress
akaytatsu
Install
0.1.00
android Android development package for Atom
dalinaum
Install
0.1.19
cnfgen A Chuck Norris facts generator
k0pernicus
Install
1.0.04 383
symbol-gen Generate symbols with cmd-alt-g so you can fuzzy search for symbols across your project.
weskinner
Install
0.2.3623
simple-drag-drop-text Adds basic drag and drop text feature to Atom editor.
mark-hahn
Install
1.2.1398
uuidgen A package to generate UUIDs
nrodrigues
Install
0.3.050
genrandom A package to generate random text.
espresso3389
Install
0.0.271
magento-tools Magento Tools is perfect for those who want to be fast and practical in Magento development.
rafaelstz
Install
0.1.08
language-proguard Atom language support for ProGuard configuration
xingrz
Install
0.1.078
Sprite-generator Sprite generator integration in Atom.io
mgrenier
Install
2.1.0197
genesis-snippets Essential snippets for the Genesis framework
wesleycole
Install
0.0.4145
dao-generator-for-node-js Change text Table(col1, col2, col3) into DAO. Current hotkey is ctrl-alt-d
tanadee
Install
1.2.4232
Magento-snippets Magento Snippets is perfect for those who want to be fast and practical in Magento development.
rafaelstz
Install
0.8.060
language-gentoo Gentoo Linux development package
aegypius
Install
0.2.1127
language-doxygen Doxyfile syntax highlighting
thibault-martinez
Install
0.1.10189
jsdoc-generator generate jsdoc.
t-ishii
Install
1.0.232
sudden-death-generator Convert selected text to an ascii art of sudden death (aka totsuzen-no-shi)
oinume
Install
0.2.0827
language-generic-config Provides basic syntax highlighting for configuration files that are just composed of comments or non-comments
lee-dohm
Install
1.5.0212
package-js-generator Generate Atom.io packages in Javascript. Like `package-generator:generate-package` command but the packages are generated in JS instead of CoffeeScript.
Nicolab
Install
0.40.087 393
package-generator Generates and opens a new sample package or syntax theme.
atom
UninstallDisable
1.1.12
multiple-service-generator A short description of
fabiusss
Install
Featured Packages
2.0.9324 265
color-picker Right click or press CMD-SHIFT-C/CTRL-ALT-C to open it.
thomaslindstrom
Install
1.3.2116 119
merge-conflicts Resolve git conflicts within Atom
smashwilson
Install
4.10.2447 527
minimap A preview of the full source code.
atom-minimap
Install
0.8.326 470
pigments A package to display colors in project and files.
abe33
Install
0.15.126 703
travis-ci-status Add Travis CI status of the project to the Atom status bar.
tombell
Install
0.54.0195 936
vim-mode Add vim modal control
atom
Install
4.4.11 874
jonikorpi-atom-theme-ui A minimalistic UI theme based on One Dark. Styling loosely based on Light Table (http://lighttable.com). Created by @jonikorpi (https://twitter.com/jonikorpi).
jonikorpi
Install
0.14.0237 765
monokai A monokai theme
kevinsawicki
Install
0.4.0117 775
seti-syntax Seti Syntax - A subtle dark colored theme for Atom.
jesseweed
Install
2.0.1186 484
unity-ui An Atom theme for a more native experience on OS X.
orderedlist
Install
Settings
willwhitney commented 9 years ago

Not that I know of. This sounds like a problem with node-gyp (inherited from gyp), which requires some very particular dependencies on Windows. More information: https://github.com/TooTallNate/node-gyp

Let me know if you figure out a way!

stonebig commented 9 years ago

not a clue, but I will try.