cling
cling copied to clipboard
RuntimeError: Cannot find cling in $PATH. No cling, no fun.
Hi, i am trying to install clang kernel on jupyterhub Environment: Python 3.6.9 jupyterhub 1.1.0 jupyterlab 2.2.0
# jupyter-kernelspec list
Available kernels:
python3 /usr/local/py36/3_6_9/share/jupyter/kernels/python3
bash /usr/local/share/jupyter/kernels/bash
cling-cpp17 /usr/local/share/jupyter/kernels/cling-cpp17
https://github.com/root-project/cling/tree/master/tools/Jupyter i have download cling(cling_2020-11-05_ROOT-centos7.tar.bz2) and added path to .bashrc and source it. export PATH=/usr/local/cling/bin:/usr/local/cling/include:$PATH export LD_LIBRARY_PATH=/usr/local/cling/bin:$LD_LIBRARY_PATH
cd /usr/local/cling/share/cling/Jupyter/kernel/ python3 -m pip install -e . jupyter-kernelspec install cling-cpp17
[zain@smaster ~]$ echo $PATH
/usr/local/cling/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/zain/.local/bin:/home/zain/bin
[zain@smaster ~]$
once installed , when i try to run the c++ notebook, my kernerl automatically restarting. i am getting below error on jupyterhub logs:
[I 2021-03-01 23:39:20.864 SingleUserNotebookApp log:174] 204 PUT /user/zain/lab/api/workspaces/lab?1614622160830 ([email protected]) 8.43ms
Traceback (most recent call last):
File "/usr/local/py36/3_6_9/bin/jupyter-cling-kernel", line 7, in <module>
exec(compile(f.read(), __file__, 'exec'))
File "/usr/local/cling/share/cling/Jupyter/kernel/scripts/jupyter-cling-kernel", line 4, in <module>
main()
File "/usr/local/cling/share/cling/Jupyter/kernel/clingkernel.py", line 364, in main
ClingKernelApp.launch_instance()
File "/usr/local/py36/3_6_9/lib/python3.6/site-packages/traitlets/config/application.py", line 663, in launch_instance
app.initialize(argv)
File "<decorator-gen-124>", line 2, in initialize
File "/usr/local/py36/3_6_9/lib/python3.6/site-packages/traitlets/config/application.py", line 87, in catch_config_error
return method(app, *args, **kwargs)
File "/usr/local/py36/3_6_9/lib/python3.6/site-packages/ipykernel/kernelapp.py", line 582, in initialize
self.init_kernel()
File "/usr/local/py36/3_6_9/lib/python3.6/site-packages/ipykernel/kernelapp.py", line 452, in init_kernel
user_ns=self.user_ns,
File "/usr/local/py36/3_6_9/lib/python3.6/site-packages/traitlets/config/configurable.py", line 412, in instance
inst = cls(*args, **kwargs)
File "/usr/local/cling/share/cling/Jupyter/kernel/clingkernel.py", line 105, in __init__
raise RuntimeError('Cannot find cling in $PATH. No cling, no fun.')
RuntimeError: Cannot find cling in $PATH. No cling, no fun.
[I 2021-03-01 23:39:21.704 SingleUserNotebookApp log:174] 200 GET /user/zain/api/contents/?content=1&1614622161665 ([email protected]) 20.48ms
[I 2021-03-01 23:39:21.707 SingleUserNotebookApp restarter:110] KernelRestarter: restarting kernel (1/5), new random ports
[I 2021-03-01 23:39:22.204 SingleUserNotebookApp log:174] 204 PUT /user/zain/lab/api/workspaces/lab?1614622162171 ([email protected]) 14.32ms
[I 2021-03-01 23:39:23.882 SingleUserNotebookApp log:174] 200 GET /user/zain/api/contents/?content=1&1614622163837 ([email protected]) 21.28ms
Traceback (most recent call last):
File "/usr/local/py36/3_6_9/bin/jupyter-cling-kernel", line 7, in <module>
exec(compile(f.read(), __file__, 'exec'))
Please help me to resolve this issue.
Regards, Zain