I was asking this in a wrong thread (thread concerning GDML), found this thread that seems appropriate so posting my sub-question here:
I am using pre-compiled root binaries (stored in /dir/to/ROOT/version/
), how do I import ROOT
to python
so that I can install and use software like GeGeDe, this installation
guide suggests doing:
$ sudo apt-et install libroot-bindings-python5.34
$ export PYTHONPATH=/usr/lib/x86_64-linux-gnu/root5.34
$ python -c 'import ROOT' # <-- just a test...
With pre-compiled binaries, what I did is, exported:
export PYTHONPATH="dir/to/ROOT/version/lib/"
of course thisroot.sh
has been sourced before this.
Then
python -c 'import ROOT'
Segmentation fault (core dumped)
It segfaults!
I am attaching the verbose of 2 python versions.
2.7: python2.7_import_ROOT_verbose.txt (6.6 KB)
3.6: python3.6m_import_ROOT_verbose.txt (42.1 KB)
Originally my question was a part of this thread.
SYSTEM DETAILS
_ROOT Versions: ROOT 6.18/04, 6.20/04 [pre-compiled bianries]
_Platform: Ubuntu 18.04.4 LTS
_Compiler: g++ (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0