Hello,
I’m having problem in using pyroot on my mac (10.6.8 ). I’ve followed the instructions and installed latest version of root by source, with this command:
./configure macosx --enable-python --with-python-incdir=/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/ --with-python-libdir=/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/config/
These are the versions:
uname -a: Darwin 10.8.0 Darwin Kernel Version 10.8.0 root:xnu-1504.15.3~1/RELEASE_I386 i386
root version: root_v5.32.00
python version:Python 2.6.1
gcc: GCC 4.2.1
Configuration variables:
ROOT
export ROOTSYS=/Applications/root/root_v5.32.00
export PATH=$ROOTSYS/bin:$PATH
export LD_LIBRARY_PATH=$ROOTSYS/lib/:$LD_LIBRARY_PATH
#PYTHON
export PYTHONDIR=/System/Library/Frameworks/Python.framework/Versions/2.6/
export LD_LIBRARY_PATH=$PYTHONDIR/lib:$LD_LIBRARY_PATH
export PATH=$PYTHONDIR/bin:$PATH
export DYNLOADFILE=“dynload_shlib.o” #don’t know if useful
Both root and python are compiled for i386:
lipo -info
which root
: Non-fat file: /Applications/root/root_v5.32.00/bin/root is architecture: i386
lipo -info /Applications/root/root_v5.32.00/lib/libPyROOT.so : Non-fat file: /Applications/root/root_v5.32.00/lib/libPyROOT.so is architecture: i386
lipo -infowhich python
: Architectures in the fat file: /System/Library/Frameworks/Python.framework/Versions/2.6//bin/python are: x86_64 i386 ppc7400
When using python to import ROOT, I obtain:
python
Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type “help”, “copyright”, “credits” or “license” for more information.import ROOT
Traceback (most recent call last):
File “”, line 1, in
File “lib/ROOT.py”, line 85, in
import libPyROOT as _root
ImportError: dlopen(/Applications/root/root_v5.32.00/lib/libPyROOT.so, 2): no suitable image found. Did find:
/Applications/root/root_v5.32.00/lib/libPyROOT.so: mach-o, but wrong architecture
I’ve also found an old thread in this list, dated 2010,
in which the problem was not solved completely. My question is then, if you have some recipes to make it working or it is an unsolved issue.
Thanks a lot, francesca