Python 2.4 and Root

I upgraded my python and now the scripts that use ROOT don’t work.

File "c:\RootWin\bin\", line 40, in ? from libPyROOT import * ImportError: Module use of python23.dll conflicts with this version of Python.

What’s the best way to fix this without rolling back to python 2.3?


recompile libPyROOT.dll against version 2.4? The problem is that PyROOT is a C++ extension module, and so it is compiled against a given, versioned, Python.h. There is no guarantee that the differences between 2.3 and 2.4 are minor enough not to cause any pbs.

Maybe Axel has a binary around that can be used?



Sure, it’s attached. Built with VC7.1 (=.NET 2003), python 2.4, ROOT’s current CVS. Wim: I even tried VC8 with a python 2.5 source snapshot - that build finished successfully, too.
Axel. (364 KB)

Thanks wlav and Axel. I’ll give that a shot.