Import ROOT error on Mac 10.13

HI I’ve been googling for solutions, but non answers my problem,

im using Mac OS 10.13.5
root ROOT 5.34/25 (v5-34-25@v5-34-25, Jan 12 2015, 15:29:06 on macosx64)
python Python 2.7.10 (default, Oct 6 2017, 22:29:07)
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)] on darwin

i get this error;

‘>>> import ROOT
Traceback (most recent call last):
File “”, line 1, in
File “/Users/a/root/lib/”, line 103, in
import libPyROOT as _root
ImportError: dlopen(/Users/a/root/lib/, 2): Library not loaded: @rpath/
Referenced from: /Users/a/root/lib/
Reason: image not found’

i tried;


  2. ‘for i in /Users/a/root/lib/lib*so ; do install_name_tool -add_rpath /Users/a/root/lib/ $i done’

both didnt work,
can anyone help me with this!

For Python to find the library, you need to add $ROOTSYS/lib to your PYTHONPATH. Please let us know if that does not work.

hi i did some thint like


it didnt work

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