Skip to content

SageMath WSL2 kernel timed out #3977

Closed
Closed

Description

Environment data

Version: 1.52.0-insider (user setup)
Commit: a36c68b9ec3d6a0aca9799d7a10be741a6658a51
Date: 2020-11-19T05:37:52.577Z
Electron: 9.3.3
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Windows_NT x64 10.0.19042

I use WSL2 with an Ubuntu-20.04 image.

Expected behaviour

Installed using sudo apt-get install sagemath. I am trying to use VSCode with the remote development extension and make the Jupyter extension use SageMath.

Actual behaviour

I get a Timed out waiting to get a heartbeat from process message.

Steps to reproduce:

  1. Choose Remote-WSL: New Window
  2. Choose Jupyter: Create New Blank Jupyter Notebook
  3. Insert x=3 in the first cell
  4. Execute cell
  5. When prompted "Select a notebook kernel to run this notebook" select SageMath 9.0.

Logs

Note: I set the logs to debug mode by adding this line to settings.json:

"jupyter.logging.level": "debug"

Additional information:

~$ /usr/bin/sage --python --version
Python 3.8.5
~$ /usr/bin/sage --python -m ipykernel --version
7.13.0
~$ /usr/bin/sage --python -m jupyter notebook --version
6.0.3

Output for Jupyter in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Jupyter)

User belongs to experiment group 'NativeNotebookEditor'
> /usr/bin/python3 ~/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2020.11.358541065/pythonFiles/pyvsc-run-isolated.py -c "import jupyter"
> /usr/bin/python3 ~/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2020.11.358541065/pythonFiles/pyvsc-run-isolated.py -c "import jupyter"
> /usr/bin/python3 ~/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2020.11.358541065/pythonFiles/pyvsc-run-isolated.py -c "import notebook"
> /usr/bin/python3 ~/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2020.11.358541065/pythonFiles/pyvsc-run-isolated.py -c "import notebook"
> /usr/bin/python3 ~/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2020.11.358541065/pythonFiles/pyvsc-run-isolated.py -c "import ipykernel"
> /usr/bin/python3 ~/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2020.11.358541065/pythonFiles/pyvsc-run-isolated.py -c "import ipykernel"
> /usr/bin/python3 ~/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2020.11.358541065/pythonFiles/pyvsc-run-isolated.py jupyter kernelspec --version
> /usr/bin/python3 ~/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2020.11.358541065/pythonFiles/pyvsc-run-isolated.py jupyter kernelspec --version
> /usr/bin/python3 ~/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2020.11.358541065/pythonFiles/pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
> /usr/bin/python3 ~/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2020.11.358541065/pythonFiles/pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
> /usr/bin/python3 ~/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2020.11.358541065/pythonFiles/pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
> /usr/bin/python3 ~/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2020.11.358541065/pythonFiles/pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
> /usr/bin/python3 ~/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2020.11.358541065/pythonFiles/pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
> /usr/bin/python3 ~/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2020.11.358541065/pythonFiles/pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
> /usr/bin/python3 ~/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2020.11.358541065/pythonFiles/pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
> /usr/bin/python3 ~/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2020.11.358541065/pythonFiles/pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
> /usr/bin/sage --python -m sage.repl.ipython_kernel -f /tmp/tmp-1175bneWkEsS7Qdu.json
cwd: /mnt/c/Users/Elad Zelingher/.vscode-insiders/extensions/ms-vscode-remote.remote-wsl-0.51.3
Error 2020-11-19 14:33:07: Timed out waiting to get a heartbeat from kernel process.
Error 2020-11-19 14:33:07: Failed to connect raw kernel session: Error: Timed out waiting to get a heartbeat from kernel process.
Error 2020-11-19 14:33:07: failed to create INotebook in kernel [Error: Timed out waiting to get a heartbeat from kernel process.
	at m.waitForHeartbeat (/home/elad/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2020.11.358541065/out/client/extension.js:49:646443)]
Error 2020-11-19 14:33:07: DataScience Error [Error: Timed out waiting to get a heartbeat from kernel process.
	at m.waitForHeartbeat (/home/elad/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2020.11.358541065/out/client/extension.js:49:646443)]

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

Metadata

Assignees

No one assigned

    Labels

    bugIssue identified by VS Code Team member as probable buglanguage-anyArea covering general issues geared to supporting any language (not just Python)notebook-kernelKernels issues (start/restart/switch/execution, install ipykernel)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions