Open nirvaan97 opened 2 years ago
Sorry about that!
I opened #245 to remind myself, but this documentation really needs more visibility. The solution is hidden in https://github.com/n-riesco/ijavascript/issues/221#issuecomment-784648092 and the comments of some installation issues.
Basically, iJavascript
depends on zeromq
(which distributes pre-built binaries for each OS and Node.js
version). Unfortunately, zeromq
hasn't caught up with the newer versions of Node.js
.
Really, I should give more visibility to this issue in the README.
Anyways, for Debian and Ubuntu, the following should do the trick:
sudo apt-get install nodejs npm jupyter libzmq3-dev
npm config set prefix $HOME
npm install -g ijavascript
ijsinstall
In your case, sudo apt-get install libzmq3-dev
should be enough, as it sounds like jupyter
and node
are already installed in your machine.
Sorry to be a bother again but that thing did not help and i don't seem to understand the problem
and again i have
jupyter 4.6.3-3 all Interactive computing environment (metapackage) /home/nirvaan/.local/bin/jupyter
nodejs v16.14.0 installed via snap (and even is workable in the terminal as well as vs code "/snap/bin/node"
npm 8.7.0
jupyter-lab installed via the pip of the python 3.8 "/home/nirvaan/.local/bin/jupyter-lab"
and now with your suggested package i seem to full fill all the requirement but still its not working
That error message is telling us that zeromq
didn't find the binary for your installation.
My guess would be that IJavascript needs reinstalling to make sure it builds a binary from source:
$ npm uninstall -g ijavascript
$ npm install -g ijavascript
$ ijsinstall
If that doesn't work either, I'd install a kernelspec with full paths, to rule out using a previous installation of IJavascript:
$ ijsinstall --spec-path=full
sorry to respond this late , but i guess this is not for me as still its giving me the same errors as it was giving me earlier. Even this thing is not installing over the windows10 and there its giving me ERROR 1 from the npm. Thanks by the way for responding so quickly.
I'd need to know what command is failing and the error messages to be able to help further (the error number doesn't help me enough).
To build from source in Windows, VS is needed. If you're using VS 2022, see #253 . But again, error logs would help.
just to show what a already have installed these were the errors i got while installing over the window 10
23dda48 .png)
Ubuntu errors
In Windows, npm install -g ijavascript
fails, because it can't locate an installation of Visual Studio. See here the requirements to build from source.
In Ubuntu, jupyter
fails to launch the Ijavascript kernel, because it can't locate the binary for zeromq
:
npm uninstall -g ijavascript
?npm install -g ijavascript
?ijsinstall --spec-path=full
?In Ubuntu, jupyter fails to launch the Ijavascript kernel, because it can't locate the binary for zeromq: How do i solve it cuz i did install it the way you told me earlier
sudo apt-get install libzmq3-dev
Yeah i did try them but nothing helped.
Just to be clear: after running sudo apt-get install libzmq3-dev
, you also need to:
$ npm uninstall -g ijavascript
$ npm install -g ijavascript
$ ijsinstall
Please, let me know if you get any errors when you run npm install -g ijavascript
.
If you get no errors and it's still not working, try to install the kernelspec with full paths:
$ ijsinstall --spec-path=full
If it's still not working, please, could you run the following and post the output here?:
$ jupyter kernelspec list --json
$ which ijsinstall
here i installed sudo apt-get install libzmq3-dev
and reinstalled the ijsintall
Please, let me know if you get any errors when you run npm install -g ijavascript.
If you get no errors and it's still not working, try to install the kernelspec with full paths: $ ijsinstall --spec-path=full
$ jupyter kernelspec list --json
$ which ijsinstall
Sorry: /home/nirvaan/bin/ijsinstall
must be a file link. Could you run ll $(which ijsinstall)
, please? I want to check that it's using the Ijavascript installation in /home/nirvaan/lib/node_modules/ijavascript
.
If it does, I can't explain why you didn't see any errors during npm i -g ijavascript
(other than the uuid warning). But you could try to rebuild Ijavascript manually, by doing the following:
$ cd /home/nirvaan/lib/node_modules/ijavascript
$ rm -rf /home/nirvaan/lib/node_modules/ijavascript/node_modules
$ npm i
If after this it isn't working, I'll try to reproduce the issue in a VM, but I can't do it today.
Could you run ll $(which ijsinstall), please? I want to check that it's using the Ijavascript installation in /home/nirvaan/lib/node_modules/ijavascript.
ll $(which ijsinstall),
which ijsinstall
which gave following
owing but that you already knowIf after this it isn't working, I'll try to reproduce the issue in a VM, but I can't do it today
I been trying to install ijavascript on my machine which is running ubuntu 20.04 lts but , i already have installed jupyter-lab via pip and have snap package for node 16x and npm 8x but still when i installed ijavascript except for the uuid error saying it was deprecated , every thing else went without any error, Except when i opened the jupyter lab and tried to use the node kernel it said that no such kernel, i even installed the jupyter package as so mentioned on the first instruction of the ubuntu installation . but still i was not able to use the package.
so please look into this and be kind enough to give a complete dependency resoled installation Thank you.
one more thing the method you mentioned for the windows i was too not able to installl via that