kpeeters / cadabra2

A field-theory motivated approach to computer algebra.
https://cadabra.science/
GNU General Public License v3.0
215 stars 37 forks source link

ModuleNotFoundError: no module named 'ipykernel' #229

Closed tonymenzo closed 2 years ago

tonymenzo commented 3 years ago

This may be useful to those who are installing on an Arch/Manjaro machine. I installed Cadabra via the AUR and upon trying to run the cadabra2 kernel in a Jupyter notebook, I received the error

/usr/lib/python3.9/runpy.py", line 87, in _run_code exec(code, run_globals) 
File "/usr/lib/python3.9/site-packages/cadabra2_jupyter/__main__.py", line 1,
 in <module> from ipykernel.kernelapp import IPKernelApp
ModuleNotFoundError: No module named 'ipykernel' 

After attempting many things, the only solution I found was installing ipykernel directly from the AUR. In retrospect I don't know why I didn't try this earlier.