atom-julia-client icon indicating copy to clipboard operation
atom-julia-client copied to clipboard

How to install julia-client offline?

Open xiaodaigh opened this issue 6 years ago • 1 comments

I tried to find a way to install julia-client offline so I found these instructions on SO but after following them it still doesn't work.

I work in a big corporate that's behind a firewall and has a strict binary file scanner. Is there a way to download all the ingredients for julia-client and do a manual install? The automatic approach simply doesn't work.

I get

Juno: Error installing package julia-client Please check your internet connection, or report this to http://discuss.junolab.org and we'll try to help. ––– Error: Installing “[email protected]” failed.

I also get this error if it helps

[email protected] install C:\Users\L098905\AppData\Local\Temp\apm-install-dir-11921-7528-alp11i.w7fh6\node_modules\julia-client\node_modules\node-pty-prebuilt prebuild-install || node scripts/install.js

C:\Users\L098905\AppData\Local\Temp\apm-install-dir-11921-7528-alp11i.w7fh6\node_modules\julia-client\node_modules\node-pty-prebuilt>if not defined npm_config_node_gyp (node "C:\Users\L098905\AppData\Local\atom\app-1.34.0\resources\app\apm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild --build_v8_with_gn=false ) else (node "C:\Users\L098905\AppData\Local\atom\app-1.34.0\resources\app\apm\bin\..\node_modules\node-gyp\bin\node-gyp.js" rebuild --build_v8_with_gn=false )

npm WARN deprecated [email protected]: CoffeeScript on NPM has moved to "coffeescript" (no hyphen) prebuild-install WARN install No prebuilt binaries found (target=2.0.16 runtime=electron arch=x64 libc= platform=win32) gyp info it worked if it ends with ok gyp verb cli [ 'C:\Users\L098905\AppData\Local\atom\app-1.34.0\resources\app\apm\bin\node.exe', gyp verb cli 'C:\Users\L098905\AppData\Local\atom\app-1.34.0\resources\app\apm\node_modules\node-gyp\bin\node-gyp.js', gyp verb cli 'rebuild', gyp verb cli '--build_v8_with_gn=false' ] gyp info using [email protected] gyp info using [email protected] | win32 | x64 gyp verb command rebuild [] gyp verb command clean [] gyp verb clean removing "build" directory gyp verb command configure [] gyp verb check python checking for Python executable "python2" in the PATH gyp verb which failed Error: not found: python2 gyp verb which failed at getNotFoundError (C:\Users\L098905\AppData\Local\atom\app-1.34.0\resources\app\apm\node_modules\which\which.js:13:12) gyp verb which failed at F (C:\Users\L098905\AppData\Local\atom\app-1.34.0\resources\app\apm\node_modules\which\which.js:68:19) gyp verb which failed at E (C:\Users\L098905\AppData\Local\atom\app-1.34.0\resources\app\apm\node_modules\which\which.js:80:29) gyp verb which failed at C:\Users\L098905\AppData\Local\atom\app-1.34.0\resources\app\apm\node_modules\which\which.js:89:16 gyp verb which failed at C:\Users\L098905\AppData\Local\atom\app-1.34.0\resources\app\apm\node_modules\isexe\index.js:42:5 gyp verb which failed at C:\Users\L098905\AppData\Local\atom\app-1.34.0\resources\app\apm\node_modules\isexe\windows.js:36:5 gyp verb which failed at FSReqWrap.oncomplete (fs.js:152:21) gyp verb which failed python2 { Error: not found: python2 gyp verb which failed at getNotFoundError (C:\Users\L098905\AppData\Local\atom\app-1.34.0\resources\app\apm\node_modules\which\which.js:13:12) gyp verb which failed at F (C:\Users\L098905\AppData\Local\atom\app-1.34.0\resources\app\apm\node_modules\which\which.js:68:19) gyp verb which failed at E (C:\Users\L098905\AppData\Local\atom\app-1.34.0\resources\app\apm\node_modules\which\which.js:80:29) gyp verb which failed at C:\Users\L098905\AppData\Local\atom\app-1.34.0\resources\app\apm\node_modules\which\which.js:89:16 gyp verb which failed at C:\Users\L098905\AppData\Local\atom\app-1.34.0\resources\app\apm\node_modules\isexe\index.js:42:5 gyp verb which failed at C:\Users\L098905\AppData\Local\atom\app-1.34.0\resources\app\apm\node_modules\isexe\windows.js:36:5 gyp verb which failed at FSReqWrap.oncomplete (fs.js:152:21) code: 'ENOENT' } gyp verb check python checking for Python executable "python" in the PATH gyp verb which succeeded python C:\Users\L098905\AppData\Local\Continuum\anaconda3\python.EXE gyp verb check python version C:\Users\L098905\AppData\Local\Continuum\anaconda3\python.EXE -c "import platform; print(platform.python_version());" returned: "3.6.5\r\n" gyp ERR! configure error gyp ERR! stack Error: Python executable "C:\Users\L098905\AppData\Local\Continuum\anaconda3\python.EXE" is v3.6.5, 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 (C:\Users\L098905\AppData\Local\atom\app-1.34.0\resources\app\apm\node_modules\node-gyp\lib\configure.js:454:14) gyp ERR! stack at C:\Users\L098905\AppData\Local\atom\app-1.34.0\resources\app\apm\node_modules\node-gyp\lib\configure.js:443:9 gyp ERR! stack at ChildProcess.exithandler (child_process.js:267:7) gyp ERR! stack at emitTwo (events.js:126:13) gyp ERR! stack at ChildProcess.emit (events.js:214:7) gyp ERR! stack at maybeClose (internal/child_process.js:925:16) gyp ERR! stack at Socket.stream.socket.on (internal/child_process.js:346:11) gyp ERR! stack at emitOne (events.js:116:13) gyp ERR! stack at Socket.emit (events.js:211:7) gyp ERR! stack at Pipe._handle.close [as _onclose] (net.js:554:12) gyp ERR! System Windows_NT 6.1.7601 gyp ERR! command "C:\Users\L098905\AppData\Local\atom\app-1.34.0\resources\app\apm\bin\node.exe" "C:\Users\L098905\AppData\Local\atom\app-1.34.0\resources\app\apm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--build_v8_with_gn=false" gyp ERR! cwd C:\Users\L098905\AppData\Local\Temp\apm-install-dir-11921-7528-alp11i.w7fh6\node_modules\julia-client\node_modules\node-pty-prebuilt gyp ERR! node -v v8.9.3 gyp ERR! node-gyp -v v3.4.0 gyp ERR! not ok npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\L098905\AppData\Local\Temp\apm-install-dir-11921-7528-alp11i.w7fh6\package.json' npm WARN apm-install-dir-11921-7528-alp11i.w7fh6 No description npm WARN apm-install-dir-11921-7528-alp11i.w7fh6 No repository field. npm WARN apm-install-dir-11921-7528-alp11i.w7fh6 No README data npm WARN apm-install-dir-11921-7528-alp11i.w7fh6 No license field.

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] install: prebuild-install || node scripts/install.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\L098905.atom.apm_logs\2019-03-01T02_57_44_402Z-debug.log

xiaodaigh avatar Mar 01 '19 03:03 xiaodaigh

This should be easy if you have another similar machine outside of the firewall -- just install Juno and copy the C:\Users\you\.atom\packages (or C:\Users\you\.atom\packages\julia-client if you only want this package) folder to the machine behind the firewall.

Note that the binary file scanner still might complain about winpty (used by node-pty), so you might need to get someone to whitelist that for you (but then the normal installation should work as well).

pfitzseb avatar Mar 01 '19 09:03 pfitzseb