Closed clemmrich closed 2 years ago
Do you have the ipykernel
package for python 3.9 installed? E.g.
sudo apt install python3-ipykernel
?
Ok, I had ipykernel installed via conda, it worked for a Python3 notebook in Jupyter.I have no knowledge whatsoever about the interplay betweeen apt and conda, but I did try to install it via apt as indicated, and now it works! Thank you very much for the fast support!Best reagdsClaudio--
You cannot mix things installed by conda
and apt
, they are two independent package managers. If you attempt to mix-n-match, it can lead to mysterious errors.
Thanks, so far I only used conda for all python and Jupyter related packages (at least as far as I remember) . Mixing this up with apt now somehow solved the issue - maybe something already got mixed up in my environment a very long time ago.... (I did not install Cadabra using apt but by compiling it myself)Thanks again for the support.Claudio-- Diese Nachricht wurde von meinem Android Mobiltelefon mit GMX Mail gesendet.Am 11.01.22, 15:53 schrieb Kasper Peeters @.***>:
You cannot mix things installed by conda and apt, they are two independent package managers. If you attempt to mix-n-match, it can lead to mysterious errors. —Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you authored the thread.Message ID: @.***>
I could compile Cadabra under Ubuntu 21.04, and it is running in its native notebook interface.
However, when trying to start a Jupyter notebook (after adapting PYTHONPATH), no kernel is started and I get an error message:
Traceback (most recent call last): File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.9/runpy.py", line 87, in _run_code exec(code, run_globals) File "/usr/local/lib/python3.9/site-packages/cadabra2_jupyter/main.py", line 1, in
from ipykernel.kernelapp import IPKernelApp
ModuleNotFoundError: No module named 'ipykernel'
When I start a python3 notebook instead of Cadabra, this runs without problems, so it's not a generic IPython issue but a Cadabra specific one.