When I run a python script, I get an error. I tried to configure Root with python, but I am not sure if I did it. I type python in my shell and the following
from ROOT import gROOT
Traceback (most recent call last):
File “”, line 1, in
File “ROOT.py”, line 24, in
File “cppyy.py”, line 60, in
import libPyROOT as _backend
ImportError: ./libPyROOT.so: undefined symbol: gCling
A similar question was asked on May 16, 2016 by another user but received no answer.
What should I do ?
It can be a configuration issue.
It would help if you could specify:
- the operating system
- the version of ROOT you are using
- how you got it (i.e. your own build or precompiled binaries?)
- what you did to configure your environment before trying what you posted
You may be mixing things.
Can you try by removing
PYTHONPATH from there?
source bin/thisroot.sh should do what required, also for Python.
…and check whether your ROOT 6.06/02 actually has lib/libPyROOT.so - just because you enable it doesn’t necessarily mean that it gets built :-/
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.