Cannot "import ROOT" in El Capitan

Dear experts,

After upgrading to OS X 10.11 El Capitan, importing ROOT in a python session gives the following error:

[user:~]> python
Python 2.7.10 (default, Aug 22 2015, 20:33:39)
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.1)] on darwin
Type “help”, “copyright”, “credits” or “license” for more information.

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

I am using ROOT 6-05-02 on a macbook pro with (system) python 2.7.10. Same problem appears when working with ROOT 5-34-34.

I have come across other forum entries with similar problems but none offer a solution (yet).

Any ideas?

[url]PyROOT issues on OS X 10.11 (El Capitan)

Per above: either patched v5, or use non-system python.


Hi Dominique,

what git branch would v5 be? I am using v-34-34 which from what I see was updated on 02 October 2015 and I still can’t get it to work.

v5-34-00-patches. But only cmake.



thank for the reply.