ocaml-jupyter: Fail to install with opam

Apparently, the installation script tries to install the kernel to /usr/share/jupyter/kernels/, which would require root rights, but I am unable to either launch opam install jupter with the good options or with sudo.

The error is:

[Errno 13] Permission denied: '/usr/local/share/jupyter/kernels/ocaml-jupyter-4.04.2'
Perhaps you want to install with `sudo` or `--user`?
E: Failure("Command './kernelspec.sh install true /home/lilian/.opam/4.04.2/share/ocaml-jupyter' terminated with error code 1")

I tried to manually hack the kernelspec.sh script to force using sudo jupyter ... and reinstalling from local archive (manually modified), but this is not working.

Any insights? Any easy way of fixing that? Thanks!

PS: it could help to also provide instructions on how to compile and install from the git repository.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 16 (12 by maintainers)

Most upvoted comments

OK good. It is working for me since the manual install, and I don’t have time right now to try again but I believe it is fixed. Will try on another laptop asap.

I fixed the bug at v1.0.1: https://github.com/akabe/ocaml-jupyter/pull/44

I agree that opam upgrade sometimes fails. Maybe I can solve the problem if you show me output log of opam upgrade.