I’m trying to install ROOT through google colab as in this post : https://stackoverflow.com/questions/55544013/installing-cern-root-on-google-jupyter-notebook
However, it gives me the following error on running:
/content/APPS/root/lib/cppyy.py in ()
59 sys.setdlopenflags( 0x100 | 0x2 ) # RTLD_GLOBAL | RTLD_NOW
—> 61 import libPyROOT as _backend
63 # reset dl flags if needed
ImportError: dynamic module does not define module export function (PyInit_libPyROOT)
Since that is an older post, I’m not sure if using ROOT through colab is no longer possible or if I’m just doing it wrong. Help would be appreciated.
welcome to the ROOT forum! The ROOT team does not officially support usage of ROOT on Google Colab. If you are lucky, some forum users might have tried and might be able to help, or maybe @etejedor, our PyROOT expert, has an idea of what might cause the
ImportError you see – my best guess, a python version mismatch between Google Colab’s python and the python version ROOT was compiled for.
Indeed, as @eguiraud said, the error is saying that ROOT was built with a Python version that is different than the one you are using in colab (Python2 vs Python3 issue).
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.