PyROOT

Hi everybody!!! =)

I would like use in a python macro the ROOT’s command. So, I have installed ROOT 5.34 from ubuntu software and then, from synaptic, I have added the library: libroot-bindings-python5.34 and libroot-bindings-python-dev, but the rusult at : import ROOT:

import ROOT
Traceback (most recent call last):
File “”, line 1, in
ImportError: No module named ROOT

Why??
I use python 2.7.6 in a kubuntu system.

Thank you in advance for help :wink:

Hi,

the system cannot find the ROOT python module. Where is it located and if there, is it in the PYTHONPATH?

Danilo

Sorry but I’m a very beginner with a Linux world… can you explain step by step please?

thank you a lot :wink:

Try to execute:
sudo apt-get update
sudo apt-get check
sudo apt-get dist-upgrade
sudo apt-get upgrade
and then reboot your machine.

Don’t work :frowning:

Well, try: Enable PyROOT Ubuntu 14.04

Thank you, now work, I have forgot to set:

export LD_LIBRARY_PATH=$ROOTSYS/lib:$PYTHONDIR/lib:$LD_LIBRARY_PATH
export PYTHONPATH=$ROOTSYS/lib:$PYTHONPATH

Thank you :wink: