|
[Rivet] Rivet installation -- AFSAndy Buckley andy.buckley at ed.ac.ukMon Jul 26 18:25:28 BST 2010
On 26/07/10 17:08, Sercan Sen wrote: > > Hi Andy, > >> My suspicion is that as a result the setenv lines below that for >> TEXMFHOME have not been called, hence the missing PYTHONPATH. > > Right. Before I tried by putting the PYTHONPATH just before TEXMFHOME > but it didn't work. When I try again, it gives PYTHONPATH: Undefined > variable. > > [lxplus307] ~/scratch0/Rivetlocal $ setenv PYTHONPATH > /afs/cern.ch/user/s/ssen/scratch0/Rivetlocal/local/lib64/python2.4/site-packages:$PYTHONPATH > > PYTHONPATH: Undefined variable. > [lxplus219] ~/scratch0/Rivetlocal $ echo $PYTHONPATH > PYTHONPATH: Undefined variable. Right, this is the problem: PYTHONPATH isn't defined, so the setenv that uses $PYTHONPATH on the right hand side of the assignment fails... and it still isn't set afterwards. This would just work silently in *sh shells. So try this instead: setenv PYTHONPATH /afs/cern.ch/user/s/ssen/scratch0/Rivetlocal/local/lib64/python2.4/site-packages (i.e. no $PYTHONPATH on the RHS). Hopefully this will work. I'll put a fix into the bootstrap script's writing of the rivetenv.csh file, if this works for you. Andy > But actually I have the things there; > > [lxplus307] ~/scratch0/Rivetlocal/local/lib64/python2.4/site-packages $ ll > total 3010 > -rw-r--r-- 1 ssen 17044 May 11 13:27 AGILe.py > -rw-r--r-- 1 ssen 28280 Jul 26 15:59 AGILe.pyc > -rwxr-xr-x 1 ssen 1340138 Jul 26 15:59 _AGILe.so > -rw-r--r-- 1 ssen 17867 Jan 7 2010 lighthisto.py > -rw-r--r-- 1 ssen 18371 Jul 26 15:52 lighthisto.pyc > -rw-r--r-- 1 ssen 23274 Jul 26 15:51 rivet.py > -rw-r--r-- 1 ssen 37746 Jul 26 15:52 rivet.pyc > -rwxr-xr-x 1 ssen 1596785 Jul 26 15:52 _rivet.so > > When I look at the environments on my MAC, it is almost the same; > > pb-d-128-141-142-14:RivetLocal raskapov$ export > PYTHONPATH=/Users/raskapov/RivetLocal/local/lib/python2.5/site-packages:$PYTHONPATH > > pb-d-128-141-142-14:RivetLocal raskapov$ echo $PYTHONPATH > /Users/raskapov/RivetLocal/local/lib/python2.5/site-packages:/Users/raskapov/RivetLocal/local/lib/python2.5/site-packages: > > pb-d-128-141-142-14:RivetLocal raskapov$ > > pb-d-128-141-142-14:site-packages raskapov$ ll > total 3984 > -rw-r--r-- 1 raskapov staff 518 Jul 24 20:35 > AGILe-1.1.6-py2.5.egg-info > -rw-r--r-- 1 raskapov staff 17044 May 11 13:27 AGILe.py > -rw-r--r-- 1 raskapov staff 38368 Jul 24 20:35 AGILe.pyc > -rwxr-xr-x 1 raskapov staff 797452 Jul 24 20:35 _AGILe.so > -rwxr-xr-x 1 raskapov staff 1056768 Jul 24 20:33 _rivet.so > -rw-r--r-- 1 raskapov staff 17867 Jan 7 2010 lighthisto.py > -rw-r--r-- 1 raskapov staff 21429 Jul 24 20:33 lighthisto.pyc > -rw-r--r-- 1 raskapov staff 680 Jul 24 20:34 > rivet-1.2.1-py2.5.egg-info > -rw-r--r-- 1 raskapov staff 19922 Jul 24 20:33 rivet.py > -rw-r--r-- 1 raskapov staff 48742 Jul 24 20:33 rivet.pyc > > The only difference-- lxplus uses python 2.4, MAC uses python 2.5 . Does > it make difference? I mean could it be the source of the problem ? > > Thanks > Sercan > > > > > > On Jul 26, 2010, at 5:50 PM, Andy Buckley wrote: > >> On 26/07/10 16:41, Sercan Sen wrote: >>> >>> Dear All, >>> >>> I successfully installed Rivet (--with agile) on my MAC, however, I've >>> some problems to use Rivet on lxplus machines. I follow the >>> instructions given on the webpage >>> http://projects.hepforge.org/rivet/trac/wiki/GettingStarted >>> , and use gcc43. Now it seems agile-runmc is available but not running >>> properly. >>> >>> I list the steps and try to give more information about the problem on >>> the following page, >>> http://ssen.web.cern.ch/ssen/PUBLIC/Rivet/RivetInstall_LXPLUS.html >>> . (If more information is needed, please let me know). >>> >>> Do you have any suggestion about this problem ? >> >> Hi Sercan, >> >> I think the problem is due to the undefined TEXMFHOME variable in your >> tcsh shell: on bash etc. the undefined variable will be silently >> replaced with a blank, but on csh shells (which most of us Rivet/AGILe >> developers are unfamiliar with) it seems to throw an error. >> >> My suspicion is that as a result the setenv lines below that for >> TEXMFHOME have not been called, hence the missing PYTHONPATH. >> >> I suggest that you edit the rivetenv.csh file to remove the references >> to undefined variables. I will try to fix this in the bootstrap script >> for the next release: let us know if it solves your problem. >> >> Andy >> >> -- >> Dr Andy Buckley >> SUPA Advanced Research Fellow >> Particle Physics Experiment Group, University of Edinburgh >> >> The University of Edinburgh is a charitable body, registered in >> Scotland, with registration number SC005336. >> > > -- Dr Andy Buckley SUPA Advanced Research Fellow Particle Physics Experiment Group, University of Edinburgh The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
More information about the Rivet mailing list |