Welcome to Cadabra Q&A, where you can ask questions and receive answers from other members of the community.
0 votes

I've install new ubuntu 18.04 on WSL, then installed latest Anaconda and miktex packages. After that I build Cadabra 2 from source according to the instructions from here: https://github.com/kpeeters/cadabra2#linux-debian-ubuntu-mint

and tried to launch cadabra into jupyter notebook, and got this errors:

[I 17:54:38.661 NotebookApp] Kernel shutdown: 6ec00478-d54c-48ba-b6cf-93439fedb36a
[I 17:54:39.005 NotebookApp] Kernel started: e81bbd12-9d55-4523-ac94-c020e015116b, name: cadabra2
/usr/bin/python3.6: No module named cadabra2_jupyter
[I 17:54:42.004 NotebookApp] KernelRestarter: restarting kernel (1/5), new random ports
/usr/bin/python3.6: No module named cadabra2_jupyter
[I 17:54:45.029 NotebookApp] KernelRestarter: restarting kernel (2/5), new random ports
/usr/bin/python3.6: No module named cadabra2_jupyter
[I 17:54:48.048 NotebookApp] KernelRestarter: restarting kernel (3/5), new random ports
/usr/bin/python3.6: No module named cadabra2_jupyter
[I 17:54:51.068 NotebookApp] KernelRestarter: restarting kernel (4/5), new random ports
/usr/bin/python3.6: No module named cadabra2_jupyter
[W 17:54:54.093 NotebookApp] KernelRestarter: restart failed
[W 17:54:54.095 NotebookApp] Kernel e81bbd12-9d55-4523-ac94-c020e015116b died, removing from map.
[W 17:55:39.324 NotebookApp] Timeout waiting for kernel_info reply from e81bbd12-9d55-4523-ac94-c020e015116b
[E 17:55:39.326 NotebookApp] Error opening stream: HTTP 404: Not Found (Kernel does not exist: e81bbd12-9d55-4523-ac94-c020e015116b)

What did I do wrong?

in Installation trouble by (1.7k points)

1 Answer

+2 votes
 
Best answer

It can't find the cadabra kernel module, set your PYTHON_PATH so it picks it up.

by (82.5k points)
selected by

I tried to add the following line to my .bashrc file: export PYTHON_PATH="/home/arshtm/cadabra2/jupyterkernel/cadabra2_jupyter" or export PYTHON_PATH="/home/arshtm/cadabra2/jupyterkernel"

but it didn't work.

Something along the lines of

export PYTHONPATH=${PYTHONPATH}:/usr/lib/x86_64-linux-gnu/python3.6/site-packages

(you may need to adjust the python version in this depending on which version of Ubuntu you are running; I think 3.6 is fine for 18.04). Then restart jupyter from that same terminal.

No, all the same. And I have no such directory at all. But Python version is right, it's 3.6

Are you sure you did sudo make install at the end? If so, can you email me at info@cadabra.science the output of the cmake stage?

Hi, I've encountered the same issue. I'm wondering how was this issue sloved in the end. Thank you.

...