Hi,
I am facing problem using ROOT C++ kernel and JupyROOT for notebooks, I downloaded the binary release and followed installation instruction. I am able to run ROOT cmd line without problem but when I try to use run root --notebook and select the ROOT C++ kernel I get this :
Traceback (most recent call last):
File "/home/vagrant/anaconda3/lib/python3.5/runpy.py", line 174, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/home/vagrant/anaconda3/lib/python3.5/runpy.py", line 109, in _get_module_details
__import__(pkg_name)
File "/home/vagrant/root/lib/JupyROOT/__init__.py", line 1, in <module>
import JupyROOT.utils
File "/home/vagrant/root/lib/JupyROOT/utils.py", line 17, in <module>
import handlers
ImportError: No module named 'handlers'
[I 05:54:34.404 NotebookApp] KernelRestarter: restarting kernel (1/5)
Traceback (most recent call last):
File "/home/vagrant/anaconda3/lib/python3.5/runpy.py", line 174, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/home/vagrant/anaconda3/lib/python3.5/runpy.py", line 109, in _get_module_details
__import__(pkg_name)
File "/home/vagrant/root/lib/JupyROOT/__init__.py", line 1, in <module>
import JupyROOT.utils
File "/home/vagrant/root/lib/JupyROOT/utils.py", line 17, in <module>
import handlers
ImportError: No module named 'handlers'
[I 05:54:37.427 NotebookApp] KernelRestarter: restarting kernel (2/5)
Traceback (most recent call last):
File "/home/vagrant/anaconda3/lib/python3.5/runpy.py", line 174, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/home/vagrant/anaconda3/lib/python3.5/runpy.py", line 109, in _get_module_details
__import__(pkg_name)
File "/home/vagrant/root/lib/JupyROOT/__init__.py", line 1, in <module>
import JupyROOT.utils
File "/home/vagrant/root/lib/JupyROOT/utils.py", line 17, in <module>
import handlers
ImportError: No module named 'handlers'
[I 05:54:40.454 NotebookApp] KernelRestarter: restarting kernel (3/5)
Traceback (most recent call last):
File "/home/vagrant/anaconda3/lib/python3.5/runpy.py", line 174, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/home/vagrant/anaconda3/lib/python3.5/runpy.py", line 109, in _get_module_details
__import__(pkg_name)
File "/home/vagrant/root/lib/JupyROOT/__init__.py", line 1, in <module>
import JupyROOT.utils
File "/home/vagrant/root/lib/JupyROOT/utils.py", line 17, in <module>
import handlers
ImportError: No module named 'handlers'
[W 05:54:41.580 NotebookApp] Timeout waiting for kernel_info reply from b7a21fb3-b25a-4ae3-a44e-a98db37313a9
[I 05:54:43.474 NotebookApp] KernelRestarter: restarting kernel (4/5)
WARNING:root:kernel b7a21fb3-b25a-4ae3-a44e-a98db37313a9 restarted
Traceback (most recent call last):
File "/home/vagrant/anaconda3/lib/python3.5/runpy.py", line 174, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/home/vagrant/anaconda3/lib/python3.5/runpy.py", line 109, in _get_module_details
__import__(pkg_name)
File "/home/vagrant/root/lib/JupyROOT/__init__.py", line 1, in <module>
import JupyROOT.utils
File "/home/vagrant/root/lib/JupyROOT/utils.py", line 17, in <module>
import handlers
ImportError: No module named 'handlers'
[W 05:54:46.491 NotebookApp] KernelRestarter: restart failed
[W 05:54:46.492 NotebookApp] Kernel b7a21fb3-b25a-4ae3-a44e-a98db37313a9 died, removing from map.
ERROR:root:kernel b7a21fb3-b25a-4ae3-a44e-a98db37313a9 restarted failed!
[W 05:54:46.539 NotebookApp] Kernel deleted before session
[W 05:54:46.540 NotebookApp] 410 DELETE /api/sessions/dd83415a-07b9-43f1-9e28-0ce639da22bc (10.0.2.2) 2.48ms referer=http://localhost:8007/notebooks/Untitled3.ipynb?kernel_name=root
the kernel basically can’t be started due to some missing module.
ImportError: No module named ‘handlers’
I have installed anaconda for python 3.4(is it a problem that the binary is configured for 2.7).
here is the config of root:
I also copied the kernels in ~/.local/share/… to use with the notebook and not requiring root intervention but same problem. I didn’t use jupyter kernel spec because it’s already present.
between: for now, I am interested in the kernels provided by root, so is there a possibility to use only cling and mix C++ with python or it’s only possible for through root?