-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Logging errors when running jupyter lab in latest release #435
Comments
I also don't fully understand the problem - it seems like this is coming from ROOT.
although I'm not sure the C++ kernel will still work. @tmadlener Can you confirm this? |
(Re)setting C++ kernels still do not work. However, that seems to be related to some missing python package(s), as far as I can tell. From the output (after opening a c++ notebook): [I 2022-11-10 16:36:13.978 ServerApp] Creating new notebook in
[I 2022-11-10 16:36:13.997 ServerApp] Writing notebook-signing key to /root/.local/share/jupyter/notebook_secret
[I 2022-11-10 16:36:14.286 ServerApp] Kernel started: 648c5b73-47d8-4423-b6aa-22362aa4015b
Traceback (most recent call last):
File "/cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/lib/JupyROOT/kernel/rootkernel.py", line 22, in <module>
from metakernel import MetaKernel
File "/cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/lib/ROOT/_facade.py", line 153, in _importhook
return _orig_ihook(name, *args, **kwds)
ModuleNotFoundError: No module named 'metakernel'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/cvmfs/sw.hsf.org/spackages6/python/3.9.12/x86_64-centos7-gcc11.2.0-opt/cqr5o/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/cvmfs/sw.hsf.org/spackages6/python/3.9.12/x86_64-centos7-gcc11.2.0-opt/cqr5o/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/lib/JupyROOT/kernel/rootkernel.py", line 25, in <module>
raise Exception("Error: package metakernel not found.(install it running 'pip install metakernel')")
Exception: Error: package metakernel not found.(install it running 'pip install metakernel')
[I 2022-11-10 16:36:20.267 ServerApp] AsyncIOLoopKernelRestarter: restarting kernel (1/5), new random ports
Traceback (most recent call last):
File "/cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/lib/JupyROOT/kernel/rootkernel.py", line 22, in <module>
from metakernel import MetaKernel
File "/cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/lib/ROOT/_facade.py", line 153, in _importhook
return _orig_ihook(name, *args, **kwds)
ModuleNotFoundError: No module named 'metakernel'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/cvmfs/sw.hsf.org/spackages6/python/3.9.12/x86_64-centos7-gcc11.2.0-opt/cqr5o/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/cvmfs/sw.hsf.org/spackages6/python/3.9.12/x86_64-centos7-gcc11.2.0-opt/cqr5o/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/lib/JupyROOT/kernel/rootkernel.py", line 25, in <module>
raise Exception("Error: package metakernel not found.(install it running 'pip install metakernel')")
Exception: Error: package metakernel not found.(install it running 'pip install metakernel')
[...] It then tries to restart the kernel another 4 times before giving up. It looks to me, like either root or jupyter is missing a dependency here, resp. the combination of the two results in an additional dependency. |
For completeness: Actually installing |
I think I got this figured out. In order for additional kernels to show up in the jupyter lab interface they have to be on On the other hand sourcing #
# figuring out the setup_actual script
#
source ${setup_actual}
# for swan (temp fix, should be in root recipe)
source ${ROOTSYS}/bin/thisroot.sh
export CPPYY_BACKEND_LIBRARY=${ROOTSYS}/lib/libcppyy_backend3_9 So in order to fix this properly the following things would need to happen (assuming root always builds with jupyter/notebook support):
|
When running jupyter lab from the latest release in a container there are quite a few error messages in the logs. However, at least for python notebooks they seem to be inconsequential. On the other hand given that it is complaining about a non-writable directory on cvmfs, I think that this is not really related to trying to run things in a container.
To reproduce run the following:
/cvmfs
source /cvmfs/sw.hsf.org/key4hep/setup.sh jupyter lab --ip=0.0.0.0 --port=8888 --allow-root --no-browser
From the error message it seems that jupyter is trying to write to some directory within the root install tree, which is obviously failing due to cvmfs being read-only.
Interestingly trying the above with
/cvmfs/ilc.desy.de/key4hep/setup.sh
instead does not exhibit the same error. However, in that case there are also no C++ notebooks available in the jupyter lab interface. Given that these releases in principle use the same package configuration it is not entirely clear to me where this difference comes from.The text was updated successfully, but these errors were encountered: