Import ROOT problems

Dear ROOTers,
I’ve installed ROOT 5.27/v4 on machine with Windows 7 x64

If I setup python 2.7 32 and try to input:
import ROOT

I’ve got an error:

[quote]Traceback (most recent call last):
File “”, line 1, in
File “ROOT.py”, line 86, in
import libPyROOT as _root
ImportError: DLL load failed: The specified module could not be found.[/quote]

If I setup python 2.7 64 and try the same, I’ve got an error:

[quote]Traceback (most recent call last):
File “”, line 1, in
File “ROOT.py”, line 86, in
import libPyROOT as _root
ImportError: DLL load failed: %1 is not a valid Win32 application.[/quote]

Path after all manipulations (for 32 version)

[quote]>>> import os; print os.environ[‘PATH’]
C:\root/bin;“C:\python\python27_32”;C:\root\bin;C:\root/bin;c:\root\lib;C:\python\python27_32;…[/quote]

[quote]c:\root\bin>echo %PYTHONPATH%
C:\root\bin;c:\root\lib (tryed without lib too)[/quote]

[quote]c:\root\bin>echo %ROOTSYS%
C:\root[/quote]

Hi,

where did you get the ROOT installation from (i.e. are you sure that libPyROOT has been compiled against and linked with python2.7)?

Cheers,
Wim