Skip to content

Give a documented dependency install on Linux (ubuntu)Β #270

Open

Description

@nirvaan97

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

Activity

  1. n-riesco commented on Apr 19, 2022

    @n-riesco
    Owner

    Sorry about that!

    I opened #245 to remind myself, but this documentation really needs more visibility. The solution is hidden in #221 (comment) 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.

  2. nirvaan97 commented on Apr 19, 2022

    @nirvaan97
    Author

    problem
    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

  3. n-riesco commented on Apr 19, 2022

    @n-riesco
    Owner

    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
    
  4. nirvaan97 commented on Apr 21, 2022

    @nirvaan97
    Author

    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.

  5. n-riesco commented on Apr 22, 2022

    @n-riesco
    Owner

    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.

  6. nirvaan97 commented on Apr 22, 2022

    @nirvaan97
    Author

    Screenshot (58)
    just to show what a already have installed
    Screenshot (60)
    Screenshot (59)
    these were the errors i got while installing over the window 10

  7. nirvaan97 commented on Apr 22, 2022

    @nirvaan97
    Author

    Screenshot from 2022-04-22 21-36-17

    Screenshot from 2022-04-22 21-36-33
    23dda48
    Screenshot from 2022-04-22 21-36-37
    .png)
    Screenshot from 2022-04-22 21-36-54

    Ubuntu errors

  8. n-riesco commented on Apr 22, 2022

    @n-riesco
    Owner

    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:

    • Did you run npm uninstall -g ijavascript?
    • Did you get any errors when you you run npm install -g ijavascript?
    • Did you try ijsinstall --spec-path=full?
  9. nirvaan97 commented on Apr 22, 2022

    @nirvaan97
    Author

    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.

    • Did you run npm uninstall -g ijavascript?
    • Did you get any errors when you you run npm install -g ijavascript?
    • Did you try ijsinstall --spec-path=full?
  10. n-riesco commented on Apr 22, 2022

    @n-riesco
    Owner

    Just to be clear: after running sudo apt-get install libzmq3-dev, you also need to:

    • reinstall IJavascript:
    $ npm uninstall -g ijavascript
    $ npm install -g ijavascript
    
    • and reinstall the kernelspec
    $ 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
    
  11. nirvaan97 commented on Apr 22, 2022

    @nirvaan97
    Author
    1. here i installed sudo apt-get install libzmq3-dev and reinstalled the ijsintall
      Screenshot from 2022-04-23 00-04-19

    2. Please, let me know if you get any errors when you run npm install -g ijavascript.

    • the only error i ever got was following
      Screenshot from 2022-04-23 00-04-19
    1. If you get no errors and it's still not working, try to install the kernelspec with full paths: $ ijsinstall --spec-path=full
    • but still got that same no kernel error

    Screenshot from 2022-04-23 00-07-40

    1. If it's still not working, please, could you run the following and post the output here?:
    $ jupyter kernelspec list --json
    $ which ijsinstall
    
    
    

    Screenshot from 2022-04-23 00-09-56

  12. n-riesco commented on Apr 22, 2022

    @n-riesco
    Owner

    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.

  13. nirvaan97 commented on Apr 22, 2022

    @nirvaan97
    Author
    1. 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.
    • i did not get what you meant by Could you run ll $(which ijsinstall),
    • i hope it meant going to the directory so i did that
      Screenshot from 2022-04-23 00-53-13
    • i also ran which ijsinstall which gave following
      Screenshot from 2022-04-23 00-09-56
      owing but that you already know
    1. If after this it isn't working, I'll try to reproduce the issue in a VM, but I can't do it today
    • no worry you take your time .
      and let me take time to thank you a lot for all the help you are giving,
      really Thanks a lot.
  14. SugarRayLua commented on May 27, 2025

    @SugarRayLua

    Hi, @n-riesco ,
    Has any more progress or solutions been found for @nirvaan97 's issue posted above?
    I'm having the same issues and on Ubuntu derivative 24.04
    Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions