I am trying to use ROOT on windows. I ran into a problem with python. I cannot import ROOT python library - just a one liner
shows an error
Traceback (most recent call last): File "C:\Programming\root\testTaskPy\main.py", line 1, in <module> import ROOT File "C:\root_v6.22.02\bin\ROOT.py", line 24, in <module> import cppyy File "C:\root_v6.22.02\bin\cppyy.py", line 61, in <module> import libPyROOT as _backend ImportError: DLL load failed while importing libPyROOT: The specified module could not be found.
What I did
- Installed 32 bit python 3.9
- Added root to PYTHONPATH - specifically both the bin and the lib folders
I assume the problem is somewhere further down the chain as Python correctly tires to import from the root folder.
Any help would be appreciated, thank you!
As a side note I also have a problem with uproot related to this issue: https://developercommunity.visualstudio.com/content/problem/1207405/fmod-after-an-update-to-windows-2004-is-causing-a.html
Though this is probably unrelated to this root forum? Or does anyone here use uproot for root as well?