PyROOT under Windows

Hi,

I’m trying to install and use PyROOT under Windows XP 32 bits, but I have problem making it runs. I used Python 2.7.1 and I have tried root 5.28.00c and 5.30rc1. I have read on this forum some problems that people have experience with 5.28.00, but I have check that files are in the correct folder and that paths are correctly sets.

[quote][size=85]>>> import sys

print sys.path
[’’, ‘C:\root\bin’, ‘C:\Python27\python27.zip’, ‘C:\Python27\DLLs’, ‘C:\P
ython27\lib’, ‘C:\Python27\lib\plat-win’, ‘C:\Python27\lib\lib-tk’, ‘C:\
Python27’, ‘C:\Python27\lib\site-packages’]

[/size][/quote]

But still, I get this error message:

[quote][size=85]Microsoft Windows XP [Version 5.1.2600]
© Copyright 1985-2001 Microsoft Corp.

C:>python
Python 2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit (Intel)] on
win32
Type “help”, “copyright”, “credits” or “license” for more information.

[color=#FF0000]import ROOT
Traceback (most recent call last):
File “”, line 1, in
File “C:\root\bin\ROOT.py”, line 85, in
import libPyROOT as _root
ImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden.[/color]

[/size][/quote]

Maybe there is a problem with access rigths? I’m stuck at the moment.
Somebody have an idea?

Thanks

Francis

Hi Francis,

I suppose you donwloaded the ROOT binaries? In this case, you have to use Python2.6. If you want to use Python2.7, you will have to rebuild ROOT from source.

Cheers, Bertrand.

Hi,

Does PyRoot work with ActiveState’s Python 2.6 as well (I’m not convinced I completely understand the difference between “standard” Python and ActiveState’s version…).

Thanks for any info,
Charles

I encountered the same problem:

Python 2.6.6 (r266:84297, Aug 24 2010, 18:46:32) [MSC v.1500 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import ROOT
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "ROOT.py", line 85, in <module>
    import libPyROOT as _root
ImportError: DLL load failed: 找不到指定的模块。
>>>

System infomation:
[ul]
[li] ROOT: 5.29.02[/li]
[li] OS: Windows 7 64-bit SP1[/li]
[li] Python 2.6.6, from pythonxy 2.6.6.1[/li][/ul]

Hi,

I have no idea about ActiveState or pythonxy, all I can tell is that the binaries of 5.29.02 have been built against Python 2.6.5, so you should try with this version, or try to rebuild from source…

Cheers, Bertrand.

For me python 2.6.6 is working!
But, this should be specified somewhere, since the webpage is misleading:
http://root.cern.ch/drupal/content/how-use-use-python-pyroot-interpreter

And when you go for downloading python on the official website, you are invited to choose between versions 3.2 and 2.7…

Thanks!

Francis