Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wait to load the kernel Fatal error: cannot load shared library dlllwt_unix_stubs #110

Closed
JigaoLuo opened this issue Nov 13, 2018 · 8 comments
Labels

Comments

@JigaoLuo
Copy link

JigaoLuo commented Nov 13, 2018

Hi I have installed this kernel, but not able to use that.
Following is appeared, when I want to use the ocaml kernel.
I do try with the default python2 and 3's kernel, they are working!

~$ jupyter notebook
[I 15:29:36.709 NotebookApp] The port 8888 is already in use, trying another port.
[I 15:29:36.710 NotebookApp] The port 8889 is already in use, trying another port.
[I 15:29:36.718 NotebookApp] Serving notebooks from local directory: /home/jigao
[I 15:29:36.718 NotebookApp] The Jupyter Notebook is running at:
[I 15:29:36.718 NotebookApp] http://localhost:8890/?token=aa5f3a3bd8d80c6cdd56359cb162d632267a08c904d6325c
[I 15:29:36.719 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 15:29:36.719 NotebookApp] 
    
    Copy/paste this URL into your browser when you connect for the first time,
    to login with a token:
        http://localhost:8890/?token=aa5f3a3bd8d80c6cdd56359cb162d632267a08c904d6325c
[I 15:29:37.860 NotebookApp] Accepting one-time-token-authenticated connection from 127.0.0.1
Created new window in existing browser session.
[I 15:29:47.811 NotebookApp] Creating new notebook in /Desktop
[I 15:29:49.973 NotebookApp] Kernel started: c425e9d6-e07c-4d48-908d-a8026b869e81
/home/jigao/.opam/4.06.1/share/jupyter/kernel.sh: 1: set: Illegal option -g
[I 15:29:52.968 NotebookApp] KernelRestarter: restarting kernel (1/5), new random ports
/home/jigao/.opam/4.06.1/share/jupyter/kernel.sh: 1: set: Illegal option -g
[I 15:29:55.976 NotebookApp] KernelRestarter: restarting kernel (2/5), new random ports
/home/jigao/.opam/4.06.1/share/jupyter/kernel.sh: 1: set: Illegal option -g
[I 15:29:58.985 NotebookApp] KernelRestarter: restarting kernel (3/5), new random ports
/home/jigao/.opam/4.06.1/share/jupyter/kernel.sh: 1: set: Illegal option -g
[I 15:30:02.026 NotebookApp] KernelRestarter: restarting kernel (4/5), new random ports
/home/jigao/.opam/4.06.1/share/jupyter/kernel.sh: 1: set: Illegal option -g
[W 15:30:05.085 NotebookApp] KernelRestarter: restart failed
[W 15:30:05.085 NotebookApp] Kernel c425e9d6-e07c-4d48-908d-a8026b869e81 died, removing from map.
[W 15:30:50.237 NotebookApp] Timeout waiting for kernel_info reply from c425e9d6-e07c-4d48-908d-a8026b869e81
[E 15:30:50.242 NotebookApp] Error opening stream: HTTP 404: Not Found (Kernel does not exist: c425e9d6-e07c-4d48-908d-a8026b869e81)

I have a chrome Version 69.0.3497.100 (Official Build) (64-bit).
On a ubuntu Release: 18.04
With jupyter notebook --version 5.7.0

I have read #101, but I think no helpful for me. And there is not detailed documented how to solve such kind of problem.
Thanks for all kinds of hints!

Edit: sorry for reopening this issue. But I do have the newest ocaml jupyter kernel. Maybe this problem lays on other place.

 ~> opam install "jupyter>=2.3.4"
[NOTE] Package jupyter is already installed (current version is 2.4.0).
@JigaoLuo
Copy link
Author

JigaoLuo commented Nov 13, 2018

I found that we must have the 4.06.1 at our PC
Try to use opam switch -y 4.06.1

@akabe
Copy link
Owner

akabe commented Nov 14, 2018

ocaml-jupyter kernel automatically calls opam switch since v2.3.4. Upgrading and re-registration of the kernel probably solve the trouble more easily:

opam update
opam install "jupyter>=2.3.4"
jupyter kernelspec install --name ocaml-jupyter "$(opam config var share)/jupyter"  # Remember to install the new kernel

@JigaoLuo JigaoLuo reopened this Nov 16, 2018
@JigaoLuo
Copy link
Author

Edit: sorry for reopening this issue. But I still can't figure out how to solve that. All the my information above is already updated. Thanks

@akabe
Copy link
Owner

akabe commented Nov 17, 2018

I cannot reproduce your problem on Ubuntu 18.04 on Docker. Your environment seems wrong.

docker run -it --rm -p 8888:8888 ubuntu:18.04 bash

Input commands:

apt-get update && \
apt-get install -y curl patch gcc m4 make unzip python3-pip pkg-config libgmp-dev zlib1g-dev libzmq3-dev && \
sh <(curl -sL https://raw.githubusercontent.com/ocaml/opam/master/shell/install.sh) && \
opam init -a --compiler=4.06.1 --disable-sandboxing && \
eval $(opam config env) && \
opam install -y 'jupyter=2.4.0' && \
pip3 install jupyter && \
jupyter kernelspec install --name ocaml-jupyter /root/.opam/4.06.1/share/jupyter && \
jupyter notebook --allow-root --ip=0.0.0.0

@JigaoLuo
Copy link
Author

I still have a such a error. Other commands produce no error.

jigao@jigao-CW35S:~$ opam install jupyter-archimedes
The following actions will be performed:
  ∗ install jupyter-archimedes 2.3.2

<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[jupyter-archimedes.2.3.2] found in cache

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[ERROR] The compilation of jupyter-archimedes failed at
        "/home/jigao/.opam/opam-init/hooks/sandbox.sh build dune build -p jupyter-archimedes -j
        3".

#=== ERROR while compiling jupyter-archimedes.2.3.2 ===========================#
# context     2.0.1 | linux/x86_64 | ocaml-base-compiler.4.06.1 | https://opam.ocaml.org#7f6dd222
# path        ~/.opam/4.06.1/.opam-switch/build/jupyter-archimedes.2.3.2
# command     ~/.opam/opam-init/hooks/sandbox.sh build dune build -p jupyter-archimedes -j 3
# exit-code   1
# env-file    ~/.opam/log/jupyter-archimedes-6759-05296d.env
# output-file ~/.opam/log/jupyter-archimedes-6759-05296d.out
### output ###
# File "jupyter-archimedes/src/dune", line 10, characters 14-30:
# 10 |               archimedes.cairo))
#                    ^^^^^^^^^^^^^^^^
# Error: Library "archimedes.cairo" in /home/jigao/.opam/4.06.1/lib/archimedes is hidden (unsatisfied 'exist_if').
# Hint: try: dune external-lib-deps --missing -p jupyter-archimedes @@default



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
┌─ The following actions failed
│ λ build jupyter-archimedes 2.3.2
└─ 
╶─ No changes have been performed

@JigaoLuo
Copy link
Author

I also have tried to re-install ocaml, opam, pip, pip3. But still have such a error. When I try to use notebook, the ocaml kernel does not appear.

@akabe
Copy link
Owner

akabe commented Nov 19, 2018

jupyter-archimedes sometimes failed to install because of ocaml/opam-repository#12774 (comment).
opam install -y cairo && opam install -y archimedes && opam install -y jupyter-archimedes will succeed.

I also have tried to re-install ocaml, opam, pip, pip3. But still have such a error. When I try to use notebook, the ocaml kernel does not appear.

I think debugging your environment is hard for me because I cannot reproduce your trouble. I recommend you to use docker.

@akabe akabe added the question label Nov 20, 2018
@JigaoLuo
Copy link
Author

The docker works well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants