No module named 'ROOT' error

When I try to run import ROOT I get the following error message:

ModuleNotFoundError: No module named ‘ROOT’

I did source thisroot.sh
Does anyone know what might help?

Hello,

Hard to say given the context given in this message. What ROOT version is this? On what platform? How did you obtain it (build yourself, downloaded binaries…)?

Sorry for the questions, but it’s really hard to help without some more information!

Cheers,
D

I run root 6.28.06 on ubuntu, I installed python 3.10 I was able to import other libraries like numpy, but not ROOT. I installed root as described by the instructions on the cern root website

Hi,

On what platform exactly and from sources and you built ROOT yourself? Perhaps you installed the binaries?

Cheers,
Danilo

Installing ROOT - ROOT, I used a wsl to run it on my windows laptop

I reinstalled root and now it works, not sure why.

Thanks for your help!

Great, thanks for updating us. Have a productive day.

D

1 Like