Installing pyroot 5.34.24 32-bit on win7 64-bit


i’ve tried to install pyroot today and i have some problems with it. I installed it with root_v5.34.28.win32.vc12.exe and root itself is working. I think I set the PATHS correctly because python finds, but while trying to import something from ROOT this error occurs:
“Traceback (most recent call last):
File “<pyshell#0>”, line 1, in
from ROOT import TCanvas
File “B:\root\root_v5.34.28\bin\”, line 103, in
import libPyROOT as _root
ImportError: DLL load failed: %1 is no valid win32-application.”
I hope someone can help me.

Hi Frank,

ROOT is built against Python 2.7, and this is most probably the origin of the problem. I just tried the same ROOT binary with Python 2.7.6:

Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on win
Type “help”, “copyright”, “credits” or “license” for more information.

from ROOT import TCanvas

Cheers, Bertrand.

Hello Bertrand,

i installed python 2.7 and pyroot works now. Thank you. How can i use pyroot with python3? I know it’s possible because I worked with pyroot in university with python3 last year.

Hi Frank,

No idea, I never tried ROOT & Python 3 on Windows. You could try to build ROOT from source with Python 3 and see how it goes

Cheers, Bertrand.