PyRoot_ import ROOT_Ubuntu 16.04

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

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

Thank you very much.

It works now.

Regards

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.