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

Kernel not starting in VSCode - ocaml-jupyter-kernel -init: not found #190

Open
ncvescera opened this issue Jun 30, 2022 · 0 comments
Open

Comments

@ncvescera
Copy link

I am trying to install ocaml-jupyter inside a docker container (using the Remote Container VSCode extention) and the ocaml kernel won't start when I use it in VSCode notebook.
It works in the jupyter notebook on the web (running jupyter notebook and accessing the web page).

This is my Dockerfile:

FROM ocaml/opam:latest

RUN sudo apt-get update && sudo apt upgrade -y
RUN sudo apt-get install -y zlib1g-dev libffi-dev libcairo2-dev libgmp-dev libzmq5-dev pkg-config
RUN sudo apt install -y make python3 python3-pip
RUN pip3 install jupyter
ENV PATH $PATH:/home/opam/.local/bin
RUN opam update
RUN opam user-setup install
RUN opam install -y ocaml-lsp-server
RUN opam install -y merlin
RUN opam install jupyter
RUN opam upgrade jupyter
RUN grep topfind ~/.ocamlinit || echo '#use "topfind";;' >> ~/.ocamlinit  # For using '#require' directive
RUN grep Topfind.log ~/.ocamlinit || echo 'Topfind.log:=ignore;;' >> ~/.ocamlinit  # Suppress logging of topfind (recommended but not necessary)
RUN opam exec -- ocaml-jupyter-opam-genspec
RUN jupyter kernelspec install --user --name ocaml-jupyter "$(opam config var share)/jupyter"

And this is the error i have:

info 9:49:10.0: Execute Cell 0 /workspaces/mycontainers/devcontainers/ocaml_dev/test.ipynb
info 9:49:10.1: Starting Jupyter Session id = 'startUsingLocalKernelSpec:.ocaml-jupyter./bin/sh././bin/sh#-c#eval $(opam env --switch=4.14 --shell=sh) && /home/opam/.opam/4.14/bin/ocaml-jupyter-kernel "$@"#ocaml-jupyter-kernel#-init#/home/opam/.ocamlinit#--merlin#/home/opam/.opam/4.14/bin/ocamlmerlin#--verbosity#app#--connection-file#{connection_file}' for '/workspaces/mycontainers/devcontainers/ocaml_dev/test.ipynb' (disableUI=false)
info 9:49:10.2: Creating raw notebook for resource '/workspaces/mycontainers/devcontainers/ocaml_dev/test.ipynb'
info 9:49:10.2: Computing working directory for resource '/workspaces/mycontainers/devcontainers/ocaml_dev/test.ipynb'
info 9:49:10.2: Starting raw kernel 'OCaml 4.14' for interpreter 
info 9:49:10.4: Kernel launching with ports 9048,9049,9050,9051,9052. Start port is 9000
info 9:49:10.80: Launching Raw Kernel & not daemon OCaml 4.14 # /bin/sh
info 9:49:10.80: No custom variables for Kernel as interpreter path is not defined for kernel OCaml 4.14
info 9:49:10.86: Process Execution: > /bin/sh -c "eval $(opam env --switch=4.14 --shell=sh) && /home/opam/.opam/4.14/bin/ocaml-jupyter-kernel "$@"" ocaml-jupyter-kernel -init ~/.ocamlinit --merlin ~/.opam/4.14/bin/ocamlmerlin --verbosity app --connection-file ~/.local/share/jupyter/runtime/kernel-v2-256fdtADZ6g5I2I.json
> /bin/sh -c "eval $(opam env --switch=4.14 --shell=sh) && /home/opam/.opam/4.14/bin/ocaml-jupyter-kernel "$@"" ocaml-jupyter-kernel -init ~/.ocamlinit --merlin ~/.opam/4.14/bin/ocamlmerlin --verbosity app --connection-file ~/.local/share/jupyter/runtime/kernel-v2-256fdtADZ6g5I2I.json
info 9:49:10.86: Process Execution: cwd: /workspaces/mycontainers/devcontainers/ocaml_dev
cwd: /workspaces/mycontainers/devcontainers/ocaml_dev
warn 9:49:10.90: StdErr from Kernel Process ocaml-jupyter-kernel: 1: eval OPAM_SWITCH_PREFIX='/home/opam/.opam/4.14'; export OPAM_SWITCH_PREFIX;
CAML_LD_LIBRARY_PATH='/home/opam/.opam/4.14/lib/stublibs:/home/opam/.opam/4.14/lib/ocaml/stublibs:/home/opam/.opam/4.14/lib/ocaml'; export CAML_LD_LIBRARY_PATH;
OCAML_TOPLEVEL_PATH='/home/opam/.opam/4.14/lib/toplevel'; export OCAML_TOPLEVEL_PATH;
PKG_CONFIG_PATH='/home/opam/.opam/4.14/lib/pkgconfig:'; export PKG_CONFIG_PATH;
MANPATH=':/home/opam/.opam/4.14/man'; export MANPATH;
PATH='/home/opam/.opam/4.14/bin:/vscode/vscode-server/bin/linux-x64/30d9c6cd9483b2cc586687151bcbcd635f373630/bin/remote-cli:/home/opam/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/opam/.local/bin'; export PATH; && /home/opam/.opam/4.14/bin/ocaml-jupyter-kernel -init: not found

error 9:49:10.90: Disposing kernel process due to an error [o [Error]: The kernel died. View Jupyter [log](command:jupyter.viewOutput) for further details. 
Error: ocaml-jupyter-kernel: 1: eval OPAM_SWITCH_PREFIX='/home/opam/.opam/4.14'; export OPAM_SWITCH_PREFIX;
CAML_LD_LIBRARY_PATH='/home/opam/.opam/4.14/lib/stublibs:/home/opam/.opam/4.14/lib/ocaml/stublibs:/home/opam/.opam/4.14/lib/ocaml'; export CAML_LD_LIBRARY_PATH;
OCAML_TOPLEVEL_PATH='/home/opam/.opam/4.14/lib/toplevel'; export OCAML_TOPLEVEL_PATH;
PKG_CONFIG_PATH='/home/opam/.opam/4.14/lib/pkgconfig:'; export PKG_CONFIG_PATH;
MANPATH=':/home/opam/.opam/4.14/man'; export MANPATH;
PATH='/home/opam/.opam/4.14/bin:/vscode/vscode-server/bin/linux-x64/30d9c6cd9483b2cc586687151bcbcd635f373630/bin/remote-cli:/home/opam/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/opam/.local/bin'; export PATH; && /home/opam/.opam/4.14/bin/ocaml-jupyter-kernel -init: not found...
	at ChildProcess.<anonymous> (/home/opam/.vscode-server/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/extension.node.js:2:557187)
	at ChildProcess.emit (node:events:402:35)
	at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)] {
  category: 'kerneldied',
  kernelConnectionMetadata: {
    kind: 'startUsingLocalKernelSpec',
    kernelSpec: {
      specFile: '/home/opam/.local/share/jupyter/kernels/ocaml-jupyter/kernel.json',
      interpreterPath: undefined,
      isRegisteredByVSC: undefined,
      name: 'ocaml-jupyter',
      argv: [Array],
      language: 'OCaml',
      executable: '/bin/sh',
      display_name: 'OCaml 4.14',
      metadata: [Object],
      env: undefined,
      interrupt_mode: undefined
    },
    interpreter: undefined,
    id: '.ocaml-jupyter./bin/sh././bin/sh#-c#eval $(opam env --switch=4.14 --shell=sh) && /home/opam/.opam/4.14/bin/ocaml-jupyter-kernel "$@"#ocaml-jupyter-kernel#-init#/home/opam/.ocamlinit#--merlin#/home/opam/.opam/4.14/bin/ocamlmerlin#--verbosity#app#--connection-file#{connection_file}'
  },
  exitCode: 127,
  stdErr: "ocaml-jupyter-kernel: 1: eval OPAM_SWITCH_PREFIX='/home/opam/.opam/4.14'; export OPAM_SWITCH_PREFIX;\n" +
    "CAML_LD_LIBRARY_PATH='/home/opam/.opam/4.14/lib/stublibs:/home/opam/.opam/4.14/lib/ocaml/stublibs:/home/opam/.opam/4.14/lib/ocaml'; export CAML_LD_LIBRARY_PATH;\n" +
    "OCAML_TOPLEVEL_PATH='/home/opam/.opam/4.14/lib/toplevel'; export OCAML_TOPLEVEL_PATH;\n" +
    "PKG_CONFIG_PATH='/home/opam/.opam/4.14/lib/pkgconfig:'; export PKG_CONFIG_PATH;\n" +
    "MANPATH=':/home/opam/.opam/4.14/man'; export MANPATH;\n" +
    "PATH='/home/opam/.opam/4.14/bin:/vscode/vscode-server/bin/linux-x64/30d9c6cd9483b2cc586687151bcbcd635f373630/bin/remote-cli:/home/opam/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/opam/.local/bin'; export PATH; && /home/opam/.opam/4.14/bin/ocaml-jupyter-kernel -init: not found\n"
}
error 9:49:10.90: ocaml-jupyter-kernel: 1: eval OPAM_SWITCH_PREFIX='/home/opam/.opam/4.14'; export OPAM_SWITCH_PREFIX;
CAML_LD_LIBRARY_PATH='/home/opam/.opam/4.14/lib/stublibs:/home/opam/.opam/4.14/lib/ocaml/stublibs:/home/opam/.opam/4.14/lib/ocaml'; export CAML_LD_LIBRARY_PATH;
OCAML_TOPLEVEL_PATH='/home/opam/.opam/4.14/lib/toplevel'; export OCAML_TOPLEVEL_PATH;
PKG_CONFIG_PATH='/home/opam/.opam/4.14/lib/pkgconfig:'; export PKG_CONFIG_PATH;
MANPATH=':/home/opam/.opam/4.14/man'; export MANPATH;
PATH='/home/opam/.opam/4.14/bin:/vscode/vscode-server/bin/linux-x64/30d9c6cd9483b2cc586687151bcbcd635f373630/bin/remote-cli:/home/opam/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/opam/.local/bin'; export PATH; && /home/opam/.opam/4.14/bin/ocaml-jupyter-kernel -init: not found

error 9:49:10.92: Failed to connect raw kernel session: Error: The kernel died. View Jupyter [log](command:jupyter.viewOutput) for further details. 
Error: ocaml-jupyter-kernel: 1: eval OPAM_SWITCH_PREFIX='/home/opam/.opam/4.14'; export OPAM_SWITCH_PREFIX;
CAML_LD_LIBRARY_PATH='/home/opam/.opam/4.14/lib/stublibs:/home/opam/.opam/4.14/lib/ocaml/stublibs:/home/opam/.opam/4.14/lib/ocaml'; export CAML_LD_LIBRARY_PATH;
OCAML_TOPLEVEL_PATH='/home/opam/.opam/4.14/lib/toplevel'; export OCAML_TOPLEVEL_PATH;
PKG_CONFIG_PATH='/home/opam/.opam/4.14/lib/pkgconfig:'; export PKG_CONFIG_PATH;
MANPATH=':/home/opam/.opam/4.14/man'; export MANPATH;
PATH='/home/opam/.opam/4.14/bin:/vscode/vscode-server/bin/linux-x64/30d9c6cd9483b2cc586687151bcbcd635f373630/bin/remote-cli:/home/opam/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/opam/.local/bin'; export PATH; && /home/opam/.opam/4.14/bin/ocaml-jupyter-kernel -init: not found...
warn 9:49:10.92: Error occurred while trying to start the kernel, options.disableUI=false [o [Error]: The kernel died. View Jupyter [log](command:jupyter.viewOutput) for further details. 
Error: ocaml-jupyter-kernel: 1: eval OPAM_SWITCH_PREFIX='/home/opam/.opam/4.14'; export OPAM_SWITCH_PREFIX;
CAML_LD_LIBRARY_PATH='/home/opam/.opam/4.14/lib/stublibs:/home/opam/.opam/4.14/lib/ocaml/stublibs:/home/opam/.opam/4.14/lib/ocaml'; export CAML_LD_LIBRARY_PATH;
OCAML_TOPLEVEL_PATH='/home/opam/.opam/4.14/lib/toplevel'; export OCAML_TOPLEVEL_PATH;
PKG_CONFIG_PATH='/home/opam/.opam/4.14/lib/pkgconfig:'; export PKG_CONFIG_PATH;
MANPATH=':/home/opam/.opam/4.14/man'; export MANPATH;
PATH='/home/opam/.opam/4.14/bin:/vscode/vscode-server/bin/linux-x64/30d9c6cd9483b2cc586687151bcbcd635f373630/bin/remote-cli:/home/opam/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/opam/.local/bin'; export PATH; && /home/opam/.opam/4.14/bin/ocaml-jupyter-kernel -init: not found...
	at ChildProcess.<anonymous> (/home/opam/.vscode-server/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/extension.node.js:2:557187)
	at ChildProcess.emit (node:events:402:35)
	at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)] {
  category: 'kerneldied',
  kernelConnectionMetadata: {
    kind: 'startUsingLocalKernelSpec',
    kernelSpec: {
      specFile: '/home/opam/.local/share/jupyter/kernels/ocaml-jupyter/kernel.json',
      interpreterPath: undefined,
      isRegisteredByVSC: undefined,
      name: 'ocaml-jupyter',
      argv: [Array],
      language: 'OCaml',
      executable: '/bin/sh',
      display_name: 'OCaml 4.14',
      metadata: [Object],
      env: undefined,
      interrupt_mode: undefined
    },
    interpreter: undefined,
    id: '.ocaml-jupyter./bin/sh././bin/sh#-c#eval $(opam env --switch=4.14 --shell=sh) && /home/opam/.opam/4.14/bin/ocaml-jupyter-kernel "$@"#ocaml-jupyter-kernel#-init#/home/opam/.ocamlinit#--merlin#/home/opam/.opam/4.14/bin/ocamlmerlin#--verbosity#app#--connection-file#{connection_file}'
  },
  exitCode: 127,
  stdErr: "ocaml-jupyter-kernel: 1: eval OPAM_SWITCH_PREFIX='/home/opam/.opam/4.14'; export OPAM_SWITCH_PREFIX;\n" +
    "CAML_LD_LIBRARY_PATH='/home/opam/.opam/4.14/lib/stublibs:/home/opam/.opam/4.14/lib/ocaml/stublibs:/home/opam/.opam/4.14/lib/ocaml'; export CAML_LD_LIBRARY_PATH;\n" +
    "OCAML_TOPLEVEL_PATH='/home/opam/.opam/4.14/lib/toplevel'; export OCAML_TOPLEVEL_PATH;\n" +
    "PKG_CONFIG_PATH='/home/opam/.opam/4.14/lib/pkgconfig:'; export PKG_CONFIG_PATH;\n" +
    "MANPATH=':/home/opam/.opam/4.14/man'; export MANPATH;\n" +
    "PATH='/home/opam/.opam/4.14/bin:/vscode/vscode-server/bin/linux-x64/30d9c6cd9483b2cc586687151bcbcd635f373630/bin/remote-cli:/home/opam/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/opam/.local/bin'; export PATH; && /home/opam/.opam/4.14/bin/ocaml-jupyter-kernel -init: not found\n"
}
warn 9:49:10.93: Kernel Error, context = start [o [Error]: The kernel died. View Jupyter [log](command:jupyter.viewOutput) for further details. 
Error: ocaml-jupyter-kernel: 1: eval OPAM_SWITCH_PREFIX='/home/opam/.opam/4.14'; export OPAM_SWITCH_PREFIX;
CAML_LD_LIBRARY_PATH='/home/opam/.opam/4.14/lib/stublibs:/home/opam/.opam/4.14/lib/ocaml/stublibs:/home/opam/.opam/4.14/lib/ocaml'; export CAML_LD_LIBRARY_PATH;
OCAML_TOPLEVEL_PATH='/home/opam/.opam/4.14/lib/toplevel'; export OCAML_TOPLEVEL_PATH;
PKG_CONFIG_PATH='/home/opam/.opam/4.14/lib/pkgconfig:'; export PKG_CONFIG_PATH;
MANPATH=':/home/opam/.opam/4.14/man'; export MANPATH;
PATH='/home/opam/.opam/4.14/bin:/vscode/vscode-server/bin/linux-x64/30d9c6cd9483b2cc586687151bcbcd635f373630/bin/remote-cli:/home/opam/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/opam/.local/bin'; export PATH; && /home/opam/.opam/4.14/bin/ocaml-jupyter-kernel -init: not found...
	at ChildProcess.<anonymous> (/home/opam/.vscode-server/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/extension.node.js:2:557187)
	at ChildProcess.emit (node:events:402:35)
	at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)] {
  category: 'kerneldied',
  kernelConnectionMetadata: {
    kind: 'startUsingLocalKernelSpec',
    kernelSpec: {
      specFile: '/home/opam/.local/share/jupyter/kernels/ocaml-jupyter/kernel.json',
      interpreterPath: undefined,
      isRegisteredByVSC: undefined,
      name: 'ocaml-jupyter',
      argv: [Array],
      language: 'OCaml',
      executable: '/bin/sh',
      display_name: 'OCaml 4.14',
      metadata: [Object],
      env: undefined,
      interrupt_mode: undefined
    },
    interpreter: undefined,
    id: '.ocaml-jupyter./bin/sh././bin/sh#-c#eval $(opam env --switch=4.14 --shell=sh) && /home/opam/.opam/4.14/bin/ocaml-jupyter-kernel "$@"#ocaml-jupyter-kernel#-init#/home/opam/.ocamlinit#--merlin#/home/opam/.opam/4.14/bin/ocamlmerlin#--verbosity#app#--connection-file#{connection_file}'
  },
  exitCode: 127,
  stdErr: "ocaml-jupyter-kernel: 1: eval OPAM_SWITCH_PREFIX='/home/opam/.opam/4.14'; export OPAM_SWITCH_PREFIX;\n" +
    "CAML_LD_LIBRARY_PATH='/home/opam/.opam/4.14/lib/stublibs:/home/opam/.opam/4.14/lib/ocaml/stublibs:/home/opam/.opam/4.14/lib/ocaml'; export CAML_LD_LIBRARY_PATH;\n" +
    "OCAML_TOPLEVEL_PATH='/home/opam/.opam/4.14/lib/toplevel'; export OCAML_TOPLEVEL_PATH;\n" +
    "PKG_CONFIG_PATH='/home/opam/.opam/4.14/lib/pkgconfig:'; export PKG_CONFIG_PATH;\n" +
    "MANPATH=':/home/opam/.opam/4.14/man'; export MANPATH;\n" +
    "PATH='/home/opam/.opam/4.14/bin:/vscode/vscode-server/bin/linux-x64/30d9c6cd9483b2cc586687151bcbcd635f373630/bin/remote-cli:/home/opam/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/opam/.local/bin'; export PATH; && /home/opam/.opam/4.14/bin/ocaml-jupyter-kernel -init: not found\n"
}
info 9:49:10.93: Dispose Kernel '/workspaces/mycontainers/devcontainers/ocaml_dev/test.ipynb' associated with '/workspaces/mycontainers/devcontainers/ocaml_dev/test.ipynb'
error 9:49:10.93: Error in execution [o [Error]: The kernel died. View Jupyter [log](command:jupyter.viewOutput) for further details. 
Error: ocaml-jupyter-kernel: 1: eval OPAM_SWITCH_PREFIX='/home/opam/.opam/4.14'; export OPAM_SWITCH_PREFIX;
CAML_LD_LIBRARY_PATH='/home/opam/.opam/4.14/lib/stublibs:/home/opam/.opam/4.14/lib/ocaml/stublibs:/home/opam/.opam/4.14/lib/ocaml'; export CAML_LD_LIBRARY_PATH;
OCAML_TOPLEVEL_PATH='/home/opam/.opam/4.14/lib/toplevel'; export OCAML_TOPLEVEL_PATH;
PKG_CONFIG_PATH='/home/opam/.opam/4.14/lib/pkgconfig:'; export PKG_CONFIG_PATH;
MANPATH=':/home/opam/.opam/4.14/man'; export MANPATH;
PATH='/home/opam/.opam/4.14/bin:/vscode/vscode-server/bin/linux-x64/30d9c6cd9483b2cc586687151bcbcd635f373630/bin/remote-cli:/home/opam/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/opam/.local/bin'; export PATH; && /home/opam/.opam/4.14/bin/ocaml-jupyter-kernel -init: not found...
	at ChildProcess.<anonymous> (/home/opam/.vscode-server/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/extension.node.js:2:557187)
	at ChildProcess.emit (node:events:402:35)
	at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)] {
  category: 'kerneldied',
  kernelConnectionMetadata: {
    kind: 'startUsingLocalKernelSpec',
    kernelSpec: {
      specFile: '/home/opam/.local/share/jupyter/kernels/ocaml-jupyter/kernel.json',
      interpreterPath: undefined,
      isRegisteredByVSC: undefined,
      name: 'ocaml-jupyter',
      argv: [Array],
      language: 'OCaml',
      executable: '/bin/sh',
      display_name: 'OCaml 4.14',
      metadata: [Object],
      env: undefined,
      interrupt_mode: undefined
    },
    interpreter: undefined,
    id: '.ocaml-jupyter./bin/sh././bin/sh#-c#eval $(opam env --switch=4.14 --shell=sh) && /home/opam/.opam/4.14/bin/ocaml-jupyter-kernel "$@"#ocaml-jupyter-kernel#-init#/home/opam/.ocamlinit#--merlin#/home/opam/.opam/4.14/bin/ocamlmerlin#--verbosity#app#--connection-file#{connection_file}'
  },
  exitCode: 127,
  stdErr: "ocaml-jupyter-kernel: 1: eval OPAM_SWITCH_PREFIX='/home/opam/.opam/4.14'; export OPAM_SWITCH_PREFIX;\n" +
    "CAML_LD_LIBRARY_PATH='/home/opam/.opam/4.14/lib/stublibs:/home/opam/.opam/4.14/lib/ocaml/stublibs:/home/opam/.opam/4.14/lib/ocaml'; export CAML_LD_LIBRARY_PATH;\n" +
    "OCAML_TOPLEVEL_PATH='/home/opam/.opam/4.14/lib/toplevel'; export OCAML_TOPLEVEL_PATH;\n" +
    "PKG_CONFIG_PATH='/home/opam/.opam/4.14/lib/pkgconfig:'; export PKG_CONFIG_PATH;\n" +
    "MANPATH=':/home/opam/.opam/4.14/man'; export MANPATH;\n" +
    "PATH='/home/opam/.opam/4.14/bin:/vscode/vscode-server/bin/linux-x64/30d9c6cd9483b2cc586687151bcbcd635f373630/bin/remote-cli:/home/opam/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/opam/.local/bin'; export PATH; && /home/opam/.opam/4.14/bin/ocaml-jupyter-kernel -init: not found\n"
}
error 9:49:10.94: Error in execution (get message for cell) [o [Error]: The kernel died. View Jupyter [log](command:jupyter.viewOutput) for further details. 
Error: ocaml-jupyter-kernel: 1: eval OPAM_SWITCH_PREFIX='/home/opam/.opam/4.14'; export OPAM_SWITCH_PREFIX;
CAML_LD_LIBRARY_PATH='/home/opam/.opam/4.14/lib/stublibs:/home/opam/.opam/4.14/lib/ocaml/stublibs:/home/opam/.opam/4.14/lib/ocaml'; export CAML_LD_LIBRARY_PATH;
OCAML_TOPLEVEL_PATH='/home/opam/.opam/4.14/lib/toplevel'; export OCAML_TOPLEVEL_PATH;
PKG_CONFIG_PATH='/home/opam/.opam/4.14/lib/pkgconfig:'; export PKG_CONFIG_PATH;
MANPATH=':/home/opam/.opam/4.14/man'; export MANPATH;
PATH='/home/opam/.opam/4.14/bin:/vscode/vscode-server/bin/linux-x64/30d9c6cd9483b2cc586687151bcbcd635f373630/bin/remote-cli:/home/opam/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/opam/.local/bin'; export PATH; && /home/opam/.opam/4.14/bin/ocaml-jupyter-kernel -init: not found...
	at ChildProcess.<anonymous> (/home/opam/.vscode-server/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/extension.node.js:2:557187)
	at ChildProcess.emit (node:events:402:35)
	at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)] {
  category: 'kerneldied',
  kernelConnectionMetadata: {
    kind: 'startUsingLocalKernelSpec',
    kernelSpec: {
      specFile: '/home/opam/.local/share/jupyter/kernels/ocaml-jupyter/kernel.json',
      interpreterPath: undefined,
      isRegisteredByVSC: undefined,
      name: 'ocaml-jupyter',
      argv: [Array],
      language: 'OCaml',
      executable: '/bin/sh',
      display_name: 'OCaml 4.14',
      metadata: [Object],
      env: undefined,
      interrupt_mode: undefined
    },
    interpreter: undefined,
    id: '.ocaml-jupyter./bin/sh././bin/sh#-c#eval $(opam env --switch=4.14 --shell=sh) && /home/opam/.opam/4.14/bin/ocaml-jupyter-kernel "$@"#ocaml-jupyter-kernel#-init#/home/opam/.ocamlinit#--merlin#/home/opam/.opam/4.14/bin/ocamlmerlin#--verbosity#app#--connection-file#{connection_file}'
  },
  exitCode: 127,
  stdErr: "ocaml-jupyter-kernel: 1: eval OPAM_SWITCH_PREFIX='/home/opam/.opam/4.14'; export OPAM_SWITCH_PREFIX;\n" +
    "CAML_LD_LIBRARY_PATH='/home/opam/.opam/4.14/lib/stublibs:/home/opam/.opam/4.14/lib/ocaml/stublibs:/home/opam/.opam/4.14/lib/ocaml'; export CAML_LD_LIBRARY_PATH;\n" +
    "OCAML_TOPLEVEL_PATH='/home/opam/.opam/4.14/lib/toplevel'; export OCAML_TOPLEVEL_PATH;\n" +
    "PKG_CONFIG_PATH='/home/opam/.opam/4.14/lib/pkgconfig:'; export PKG_CONFIG_PATH;\n" +
    "MANPATH=':/home/opam/.opam/4.14/man'; export MANPATH;\n" +
    "PATH='/home/opam/.opam/4.14/bin:/vscode/vscode-server/bin/linux-x64/30d9c6cd9483b2cc586687151bcbcd635f373630/bin/remote-cli:/home/opam/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/opam/.local/bin'; export PATH; && /home/opam/.opam/4.14/bin/ocaml-jupyter-kernel -init: not found\n"
}

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

No branches or pull requests

1 participant