Error when trying to import ROOT in python (ImportError: libtbb.so.2)

Dear experts,

I experience a problem when trying to import ROOT in python:

python
Python 2.7.15+ (default, Jun 14 2019, 20:12:46)
[GCC 9.1.1 20190508] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.

import ROOT
Traceback (most recent call last):
File “”, line 1, in
File “/cvmfs/cms.cern.ch/slc7_amd64_gcc900/lcg/root/6.18.04/lib/ROOT.py”, line 24, in
import cppyy
File “/cvmfs/cms.cern.ch/slc7_amd64_gcc900/lcg/root/6.18.04/lib/cppyy.py”, line 61, in
import libPyROOT as _backend
ImportError: libtbb.so.2: cannot open shared object file: No such file or directory

Any clues for what might be wrong?

Thank you,
Alexandros

_ROOT Version: 6.18.04
_Platform: slc7 (amd64)
_Compiler: gcc 9.3.0

Try: sudo yum install tbb

Hi @Wile_E_Coyote,

I don’t think that’s an option on the remote machine I am working with (no sudo privileges).
Any workaround?

Cheers,
Alexandros

NOTE: I just realised that even launching ROOT results in an error:
cling::DynamicLibraryManager::loadLibrary(): libtbb.so.2: cannot open shared object file: No such file or directory

Try to find a ROOT binary distribution for which “root-config --features” will contain “builtin_tbb”.

I will try that. What is the recommended way of going about to do that?

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