Problem running root support in python

Hi,

I’ve built root on MacOS X 10.4.1 from the CVS release. The configuration included --enable-python. Also I have set PYTHONHOME and DYLD_LIBRARY_PATH to contain both $ROOTSYS/lib and $ROOTSYS/bin. When running python like below I get an error, any suggestions?


bash:/sw/root/tutorials emoshkovich$ python
Python 2.3.5 (#1, May 1 2005, 14:07:05)
[GCC 4.0.0 20041026 (Apple Computer, Inc. build 4061)] on darwin
Type “help”, “copyright”, “credits” or “license” for more information.

from ROOT import TCanvas
Traceback (most recent call last):
File “”, line 1, in ?
File “/sw/root/lib/ROOT.py”, line 40, in ?
from libPyROOT import *
ImportError: Inappropriate file type for dynamic loading


thanks,

Emil

Hi Emil :smiley: ,

Replace PYTHONHOME by PYTHONPATH

fatman:~/src/ROOT> python
Python 2.3.5 (#1, Mar 20 2005, 20:38:20)
[GCC 3.3 20030304 (Apple Computer, Inc. build 1809)] on darwin
Type “help”, “copyright”, “credits” or “license” for more information.

from ROOT import TCanvas

Eddy