I just built Root4 with Python enabled in Mac OSX 10.3. The build seems to have been completely successful (no errors or other problems) and I can run root, make plots, etc. All seems normal.
However I cannot successfully import ROOT in a Python script – i.e., “from ROOT import gROOT” fails. The error message shown below seems to indicate that I have not linked against all the needed libraries. What did I miss and how can I correct this?
Incidentally I was just trying to run the trivial example from the root.cern.ch/root/HowtoPyROOT.html page (“Running PyROOT from Python Interpreter”) when this failure occured.
Python 2.3.2 (#2, Oct 26 2003, 16:42:41)
[GCC 3.1 20020420 (prerelease)] on darwin
Type “help”, “copyright”, “credits” or “license” for more information.
Traceback (most recent call last):
File “”, line 1, in ?
File “/Users/jima/root/lib/ROOT.py”, line 26, in ?
from libPyROOT import *
ImportError: Failure linking new module: : dyld: /Library/Frameworks/Python.framework/Versions/2.3/Resources/Python.app/Contents/MacOS/python Undefined symbols: