Segmentation violation TLorentzVector using PyROOT

I have not problems importing the ROOT module and using any other of its functions, this only happen with TLorentzVector.

Version OS: Debian 8.9
Version Python: 2.7.9
Version ROOT installed: 6.10/02
Also I had installed the package libroot-bindings-python5.34 from the debian repositories.

>>> import ROOT
>>> from ROOT import TLorentzVector
Warning in <TEnvRec::ChangeValue>: duplicate entry <[=libvectorDict.so ]> for level 0; ignored
Warning in <TEnvRec::ChangeValue>: duplicate entry <class=vector<Long64_t>> for level 0; ignored
Warning in <TEnvRec::ChangeValue>: duplicate entry <class=vector<ULong64_t>> for level 0; ignored
Warning in <TEnvRec::ChangeValue>: duplicate entry <class=vector<bool>> for level 0; ignored
Warning in <TEnvRec::ChangeValue>: duplicate entry <class=vector<char const*>> for level 0; ignored
Warning in <TEnvRec::ChangeValue>: duplicate entry <class=vector<char*>> for level 0; ignored
Warning in <TEnvRec::ChangeValue>: duplicate entry <class=vector<char>> for level 0; ignored
Warning in <TEnvRec::ChangeValue>: duplicate entry <class=vector<const char*>> for level 0; ignored
Warning in <TEnvRec::ChangeValue>: duplicate entry <class=vector<double>> for level 0; ignored
Warning in <TEnvRec::ChangeValue>: duplicate entry <class=vector<float>> for level 0; ignored
Warning in <TEnvRec::ChangeValue>: duplicate entry <class=vector<long>> for level 0; ignored
Warning in <TEnvRec::ChangeValue>: duplicate entry <class=vector<short>> for level 0; ignored
Warning in <TEnvRec::ChangeValue>: duplicate entry <class=vector<unsigned char>> for level 0; ignored
Warning in <TEnvRec::ChangeValue>: duplicate entry <class=vector<unsigned int>> for level 0; ignored
Warning in <TEnvRec::ChangeValue>: duplicate entry <class=vector<unsigned long>> for level 0; ignored
Warning in <TEnvRec::ChangeValue>: duplicate entry <class=vector<unsigned short>> for level 0; ignored
Warning in <TClassTable::Add>: class timespec already in TClassTable

 *** Break *** segmentation violation
Error in <TUnixSystem::StackTrace> script /etc/root/gdb-backtrace.sh is missing
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/ROOT.py", line 454, in __getattr1
    self.__finalSetup()
  File "/usr/lib/python2.7/dist-packages/ROOT.py", line 526, in __finalSetup
    if appc.CreatePyROOTApplication():
SystemError: problem in C++; program state has been reset
>>> 

Thanks in advance

The solution was to add the line

export PYTHONPATH=$ROOTSYS/lib:$PYTHONPATH

in the file ~/.bashrc

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