Home | News | Documentation | Download

PyRoot_ import ROOT_Ubuntu 16.04


#1

Hello Rooters!

I’m trying to import ROOT but it gives me an error: ImportError Traceback (most recent call last) in () ----> 1 import ROOT ImportError: No module named ROOT
user@zaheer:~$ ipython -i

Python 2.7.12 (default, Dec 4 2017, 14:50:18)
Type “copyright”, “credits” or “license” for more information.

IPython 2.4.1 – An enhanced Interactive Python.
? -> Introduction and overview of IPython’s features.
%quickref -> Quick reference.
help -> Python’s own help system.
object? -> Details about ‘object’, use ‘object??’ for extra details.

In [1]: import ROOT

ImportError Traceback (most recent call last) in () ----> 1 import ROOT ImportError: No module named ROOT

I’m using Ubuntu 6.04, and I’m very beginner. Please guide me.

Thank you

Sincere regards
Zaheer


#2

Hi,

does the import work in regular python? Is the ROOT environment, and most notably PYTHONPATH, properly set, i.e. with the bin/thisroot.sh shell script?

Cheers,
D


#3

Thank you very much.

It works now.

Regards