|
[Rivet] The rivet Python module could not be loaded?Andy Buckley andy.buckley at cern.chTue Jan 24 10:34:43 GMT 2017
Hi Cheng, The versions you are building are fine, but I see a reference to rivet/1.5.0 in your PYTHONPATH! My guess is that the Python interface is accidentally loading an old build of Rivet, which was made for a different architecture/GCC version... hence the GLIBCXX error. Andy On 24/01/17 10:24, Cheng Chen wrote: > Hello all, > > I followed the prescription > in https://rivet.hepforge.org/trac/wiki/GettingStarted to install the > rivet in my lxplus session, however there is an error shows it cannot > import the module correctly: > > [chenc at lxplus0107 rivet]$ rivet --help > The rivet Python module could not be loaded: is your PYTHONPATH set > correctly? > > > Then I tried to "import rivet” directly on python, this shows a ImportError: > > > >>> import rivet > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File > "/afs/cern.ch/user/c/chenc/software/rivet/lib/python2.7/site-packages/rivet/__init__.py", > line 12, in <module> > from rivet.core import * > ImportError: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not > found (required by > /cvmfs/sft.cern.ch/lcg/releases/LCG_85/HepMC/2.06.09/x86_64-slc6-gcc49-opt/lib/libHepMC.so.4) > > > > And I listed my PATH info below: > > [chenc at lxplus0107 rivet]$ echo $PYTHONPATH > /afs/cern.ch/user/c/chenc/software/rivet/lib/python2.7/site-packages:/afs/cern.ch/user/c/chenc/software/rivet/lib/python2.7/site-packages:/afs/cern.ch/sw/lcg/external/MCGenerators/agile/1.2.0/i686-slc5-gcc43-opt/lib/python2.5/site-packages:/afs/cern.ch/sw/lcg/external/MCGenerators/rivet/1.5.0/i686-slc5-gcc43-opt/lib/python2.6/site-packages:/afs/cern.ch/sw/lcg/external/MCGenerators/agile/1.2.0/i686-slc5-gcc43-opt/lib/python2.5/site-packages:/afs/cern.ch/sw/lcg/external/MCGenerators/rivet/1.5.0/i686-slc5-gcc43-opt/lib/python2.6/site-packages:/afs/cern.ch/sw/lcg/external/MCGenerators/rivet/1.5.0/i686-slc5-gcc43-opt/lib/python2.6/site-packages: > > > Could help me to found where the problem come from? > BTW, I installed with the RIVET_VERSION=2.5.3 and YODA_VERSION=1.6.6. Is > it possible the problem is related to the version I installed? > > Thanks for your help > Cheng > > > _______________________________________________ > Rivet mailing list > Rivet at projects.hepforge.org > https://www.hepforge.org/lists/listinfo/rivet > -- Dr Andy Buckley, Lecturer / Royal Society University Research Fellow Particle Physics Expt Group, University of Glasgow
More information about the Rivet mailing list |