Cannot import ROOT - Dynamic module does not define init function

Hi everyone,

I’m trying to use PyROOT on my local Macbook (Yosemite), with python version 3.4.3. I get the following error when trying to import ROOT:

Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 23 2015, 02:52:03)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type “help”, “copyright”, “credits” or “license” for more information.

import ROOT
Traceback (most recent call last):
File “”, line 1, in
File “/Applications/root-6.04.00/lib/ROOT.py”, line 24, in
import cppyy
File “/Applications/root-6.04.00/lib/cppyy.py”, line 60, in
import libPyROOT as _backend
ImportError: dynamic module does not define init function (PyInit_libPyROOT)

Can anybody take me through the steps to fix this?

Thanks,

Your module is build for p2. For use with p3, build ROOT with p3.

-Dom