Hi, thanks for the reply–
There are several Macs in our lab, and we’ll be getting a few more soon, so it would be nice to figure out how to use the binaries so I don’t have to build ROOT on them all which is the only reason I bring it up.
So, to start I have a Macbook with OSX 10.6.3
Darwin james-wetzels-macbook-3.local 10.3.0 Darwin Kernel Version 10.3.0: Fri Feb 26 11:58:09 PST 2010; root:xnu-1504.3.12~1/RELEASE_I386 i386
By default, my computer came with Python 2.6.1. If I download the 32 bit binary of ROOT this happens:
james-wetzels-macbook-3:pyroot jwwetzel$ /usr/bin/pythonw
Python 2.6.1 (r261:67515, Feb 11 2010, 00:51:29)
[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 "<stdin>", line 1, in <module>
File "lib/ROOT.py", line 86, in <module>
import libPyROOT as _root
ImportError: dlopen(/Applications/root/lib/libPyROOT.so, 2): no suitable image found. Did find:
/Applications/root/lib/libPyROOT.so: mach-o, but wrong architecture
/Applications/root/lib/libPyROOT.so: mach-o, but wrong architecture
/Applications/root/lib/libPyROOT.so: mach-o, but wrong architecture
Now, libPyRoot.so is:
james-wetzels-macbook-3:pyroot jwwetzel$ lipo -info /Applications/root/lib/libPyROOT.so
Non-fat file: /Applications/root/lib/libPyROOT.so is architecture: i386
james-wetzels-macbook-3:pyroot jwwetzel$ lipo -info /Applications/root/bin/root
Non-fat file: /Applications/root/bin/root is architecture: i386
If I update Python to 2.6.5:
Python 2.6.5 (r265:79359, Mar 24 2010, 01:32:55)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import ROOT
Fatal Python error: Interpreter not initialized (version mismatch?)
Abort trap
So I’m not sure what’s going on exactly.
I just downloaded the 64 binary, unpacking and running root works fine.
I must be doing something silly??
Cheers,
James