I’m trying to interface The Littlest Jupyter Hub (TLJH) with ROOT.
Right now I install ROOT compiling it from the source, with the following commands:
sudo apt --yes install python3 python3-dev git curl
sudo apt-get --yes install dpkg-dev cmake g++ gcc binutils libx11-dev libxpm-dev libxft-dev libxext-dev python libssl-dev
git clone --branch v6-22-00-patches https://github.com/root-project/root.git root_src
mkdir builddir installdir
cd builddir
cmake -DCMAKE_INSTALL_PREFIX=../installdir -DPYTHON_EXECUTABLE=/usr/bin/python3 ../root_src
sudo cmake --build . --target install
Then I add the thisroot.sh source command in the .profile file.
Finally I install TLJH, using
sudo curl -L https://tljh.jupyter.org/bootstrap.py | sudo -E python3 - --admin <admin name>
specifying my admin username.
Everything works fine, I am even able to “import ROOT” from python3 in the terminal.
As soon as I create a new python3 file on JupyterHub, and I try to import ROOT, an error message comes out:
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-1-ee8dc4376aa8> in <module>
----> 1 import ROOT
ModuleNotFoundError: No module named 'ROOT'
I am open to any suggestion.
_ROOT Version:6.22.02
_Platform:Ubuntu 18.04 bionic server