<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hi Andy,
<div class=""><br class="">
</div>
<div class="">Thanks for you reply, I reopened a new lxplus session and followed the steps below:</div>
<div class=""><br class="">
</div>
<div class="">setupATLAS -> lsetup python -> source rivetenv.sh -> import rivet in python</div>
<div class=""><br class="">
</div>
<div class="">The problem still the same, and now, the PYTHONPATH is laconic:</div>
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class="">
<div class="">
<div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""><br class="">
</span></div>
</div>
<div class="">
<div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">[chenc@lxplus0107 rivet]$ echo $PYTHONPATH</span></div>
</div>
<div class="">
<div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">/afs/<a href="http://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:" class="">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:</a></span></div>
</div>
<div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""><br class="">
</span></div>
</blockquote>
<font face="Menlo" class=""><span style="font-size: 11px;" class="">
<div class=""><font face="Menlo" class=""><span style="font-size: 11px;" class="">And my python version is:</span></font></div>
<div class=""><font face="Menlo" class=""><span style="font-size: 11px;" class=""><br class="">
</span></font></div>
</span></font>
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><font face="Menlo" class=""><span style="font-size: 11px;" class="">
<div class="">
<div style="margin: 0px; line-height: normal; background-color: rgb(255, 255, 255);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">[chenc@lxplus0107 rivet]$ python -V</span></div>
</div>
</span></font><font face="Menlo" class=""><span style="font-size: 11px;" class="">
<div class="">
<div style="margin: 0px; line-height: normal; background-color: rgb(255, 255, 255);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">Python 2.7.4</span></div>
</div>
</span></font></blockquote>
<font face="Menlo" class=""><span style="font-size: 11px;" class="">
<div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class="">
</span></div>
Cheers</span></font>
<div class=""><font face="Menlo" class=""><span style="font-size: 11px;" class="">Cheng<br class="">
</span></font>
<div class=""><br class="">
</div>
<div class="">
<div>
<blockquote type="cite" class="">
<div class="">On 24 Jan 2017, at 11:34, Andy Buckley <<a href="mailto:a.g.buckley@gmail.com" class="">a.g.buckley@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">Hi Cheng,<br class="">
<br class="">
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.<br class="">
<br class="">
Andy<br class="">
<br class="">
<br class="">
<br class="">
On 24/01/17 10:24, Cheng Chen wrote:<br class="">
<blockquote type="cite" class="">Hello all,<br class="">
<br class="">
I followed the prescription<br class="">
in <a href="https://rivet.hepforge.org/trac/wiki/GettingStarted" class="">https://rivet.hepforge.org/trac/wiki/GettingStarted</a> to install the<br class="">
rivet in my lxplus session, however there is an error shows it cannot<br class="">
import the module correctly:<br class="">
<br class="">
   [chenc@lxplus0107 rivet]$ rivet --help<br class="">
   The rivet Python module could not be loaded: is your PYTHONPATH set<br class="">
   correctly?<br class="">
<br class="">
<br class="">
Then I tried to "import rivet” directly on python, this shows a ImportError:<br class="">
<br class="">
<br class="">
   >>> import rivet<br class="">
   Traceback (most recent call last):<br class="">
     File "<stdin>", line 1, in <module><br class="">
     File<br class="">
   "/afs/<a href="http://cern.ch/user/c/chenc/software/rivet/lib/python2.7/site-packages/rivet/__init__.py" class="">cern.ch/user/c/chenc/software/rivet/lib/python2.7/site-packages/rivet/__init__.py</a>",<br class="">
   line 12, in <module><br class="">
       from rivet.core import *<br class="">
   ImportError: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not<br class="">
   found (required by<br class="">
   /cvmfs/<a href="http://sft.cern.ch/lcg/releases/LCG_85/HepMC/2.06.09/x86_64-slc6-gcc49-opt/lib/libHepMC.so.4" class="">sft.cern.ch/lcg/releases/LCG_85/HepMC/2.06.09/x86_64-slc6-gcc49-opt/lib/libHepMC.so.4</a>)<br class="">
<br class="">
<br class="">
<br class="">
And I listed my PATH info below:<br class="">
<br class="">
   [chenc@lxplus0107 rivet]$ echo $PYTHONPATH<br class="">
   /afs/<a href="http://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:" class="">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:</a><br class="">
<br class="">
<br class="">
Could help me to found where the problem come from?<br class="">
BTW, I installed with the RIVET_VERSION=2.5.3 and YODA_VERSION=1.6.6. Is<br class="">
it possible the problem is related to the version I installed?<br class="">
<br class="">
Thanks for your help<br class="">
Cheng<br class="">
<br class="">
<br class="">
_______________________________________________<br class="">
Rivet mailing list<br class="">
<a href="mailto:Rivet@projects.hepforge.org" class="">Rivet@projects.hepforge.org</a><br class="">
https://www.hepforge.org/lists/listinfo/rivet<br class="">
<br class="">
</blockquote>
<br class="">
<br class="">
-- <br class="">
Dr Andy Buckley, Lecturer / Royal Society University Research Fellow<br class="">
Particle Physics Expt Group, University of Glasgow<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</body>
</html>