ModuleNotFoundError: No module named 'ROOT' in Google Colab

Actually, while building from source it generates all the neccesary libs. except libPython and libPyROOT. Also, while generating the build files it finds the reqd. python libs.(by default python 2.7).
The ROOT prompt opens as normal but any file with import ROOT raises the error.

The following error is raised on switching to Python from the root prompt by executing TPython::Prompt()

cling::DynamicLibraryManager::loadLibrary(): libcppyy.so: cannot open shared object file: No such file or directory
Error in <TCling__LazyFunctionCreatorAutoloadForModule>: Failed to load library /usr/local/ROOT/lib/libROOTTPython.so
cling::DynamicLibraryManager::loadLibrary(): libcppyy.so: cannot open shared object file: No such file or directory
Error in <TCling__LazyFunctionCreatorAutoloadForModule>: Failed to load library /usr/local/ROOT/lib/libROOTTPython.so
IncrementalExecutor::executeFunction: symbol ‘_ZN7TPython6PromptEv’ unresolved while linking [cling interface function]!
You are probably missing the definition of TPython::Prompt()

Hi,
If you are building ROOT master, we recently set a new PyROOT version as default. In this new version, there are a few changes in the libraries that are generated (i.e. libPyROOT does not exist anymore, but there are libROOTPythonizations, libROOTTPython and libcppyy).

The way we build such libraries in the new PyROOT is still under discussion with the experiments, so I would suggest that you use 6.20 for now if possible, which still builds the old libraries, instead of master.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.