[Rivet] Problems installing rivet

Holger Schulz holger.schulz at physik.hu-berlin.de
Tue Feb 22 14:38:33 GMT 2011


On 22/02/11 15:15, Alex Schofield wrote:
> *I've been trying to install Rivet on both my linux machine (running 
> SL5) and my mac (10.6) and i've encountered several problems. I have 
> been able to install Rivet using both the manual way and the bootstrap 
> script but neither works after installation. I'm relatively new to 
> installing unix based software so I may just have missed something. My 
> last attempt to install Rivet is as follows. First I ran the 
> rivet-boostrap after setting up the compilers as stated on the website*
>
> -bash-3.2$ export 
> PATH=/afs/cern.ch/sw/lcg/external/swig/1.3.40/x86_64-slc5-gcc43-opt/bin:$PATH 
> <http://cern.ch/sw/lcg/external/swig/1.3.40/x86_64-slc5-gcc43-opt/bin:$PATH>
> -bash-3.2$ source 
> /afs/cern.ch/sw/lcg/contrib/gcc/4.3/x86_64-slc5-gcc43-opt/setup.sh 
> <http://cern.ch/sw/lcg/contrib/gcc/4.3/x86_64-slc5-gcc43-opt/setup.sh>
> -bash-3.2$ ./rivet-bootstrap --install-boost 
> --prefix=/afs/hep.man.ac.uk/u/alexschof/Programs/Rivet 
> <http://hep.man.ac.uk/u/alexschof/Programs/Rivet>
> Getting http://www.hepforge.org/archive/rivet/Rivet-1.4.0.tar.gz
> Downloading http://www.hepforge.org/archive/rivet/Rivet-1.4.0.tar.gz
> Installing a local copy of Boost
> Downloading 
> http://downloads.sourceforge.net/boost/boost_1_44_0.tar.gz?use_mirror=mesh
> LCG area available: using LCG-built packages
> Using LCG platform tag = x86_64-slc5-gcc43-opt
> Configuring in 
> /afs/hep.man.ac.uk/u/alexschof/Programs/InstallFiles/build/Rivet-1.4.0 
> <http://hep.man.ac.uk/u/alexschof/Programs/InstallFiles/build/Rivet-1.4.0>: 
> ./configure --prefix=/afs/hep.man.ac.uk/u/alexschof/Programs/Rivet 
> <http://hep.man.ac.uk/u/alexschof/Programs/Rivet>  
> --with-lcgtag=x86_64-slc5-gcc43-opt 
> --with-hepmc=/afs/cern.ch/sw/lcg/external/HepMC/2.06.03/x86_64-slc5-gcc43-opt 
> <http://cern.ch/sw/lcg/external/HepMC/2.06.03/x86_64-slc5-gcc43-opt> 
> --with-boost=/afs/hep.man.ac.uk/u/alexschof/Programs/Rivet 
> <http://hep.man.ac.uk/u/alexschof/Programs/Rivet> 
> --with-fastjet=/afs/cern.ch/sw/lcg/external/fastjet/2.4.2/x86_64-slc5-gcc43-opt 
> <http://cern.ch/sw/lcg/external/fastjet/2.4.2/x86_64-slc5-gcc43-opt> 
> --disable-pdfmanual 
> --with-gsl=/afs/cern.ch/sw/lcg/external/GSL/1.10/x86_64-slc5-gcc43-opt 
> <http://cern.ch/sw/lcg/external/GSL/1.10/x86_64-slc5-gcc43-opt> 
> --with-gslcblas=/afs/cern.ch/sw/lcg/external/GSL/1.10/x86_64-slc5-gcc43-opt 
> <http://cern.ch/sw/lcg/external/GSL/1.10/x86_64-slc5-gcc43-opt>
> Building in 
> /afs/hep.man.ac.uk/u/alexschof/Programs/InstallFiles/build/Rivet-1.4.0 
> <http://hep.man.ac.uk/u/alexschof/Programs/InstallFiles/build/Rivet-1.4.0>: 
> make -j2 && make -j2 install
>
> All done. Now set some variables in your shell by sourcing, for bash 
> shell:
>
> source rivetenv.sh
>
> or for csh shell:
>
> source rivetenv.csh
>
>
> *Rivet seems to have successfully installed, but when I try to run it 
> I receive the following message:*
>
> -bash-3.2$ source rivetenv.sh
> -bash-3.2$ rivet
> rivet requires the 'rivet' Python module
> No module named rivet
> -bash-3.2$ rivet -h
> *
> It seems like i'm able to run the analyses inside Herwig++ since there 
> are no complaints at run time and there is a .aida file generated. 
> However, when I try to convert to a flat data file I receive the error:*
>
> -bash-3.2$ aida2flat TVT.aida
> Traceback (most recent call last):
>   File "/afs/hep.man.ac.uk/u/alexschof/Programs/Rivet/bin/aida2flat 
> <http://hep.man.ac.uk/u/alexschof/Programs/Rivet/bin/aida2flat>", line 
> 13, in ?
>     import lighthisto
> ImportError: No module named lighthisto
>
> *I got past this by copying lighthisto.py into the bin folder (is 
> there a better way?) which gave me some data files. I now try to run 
> rivet-mkhtml and get
>
> *-bash-3.2$ rivet-mkhtml
> Traceback (most recent call last):
>   File "/afs/hep.man.ac.uk/u/alexschof/Programs/Rivet/bin/rivet-mkhtml 
> <http://hep.man.ac.uk/u/alexschof/Programs/Rivet/bin/rivet-mkhtml>", 
> line 19, in ?
>     import rivet
> ImportError: No module named rivet
> rivet is broken... exiting
> *
> Could you point out where i'm going wrong? If you need more 
> information please let me know.
> *

Hi Alex,

the errors you are reporting are presumably all caused by a not yet or
wrongly defined environment variable called PYTHONPATH. It's contents
are read by python to find libraries and modules.

The required modules are installed to (prefix)/lib/python2.6/site-packages
where (prefix) is according to the command line you sent set to
"/afs/hep.man.ac.uk/u/alexschof/Programs/Rivet 
<http://hep.man.ac.uk/u/alexschof/Programs/Rivet>" (your python vesion may
differ).

So you could do something like this:

    export PYTHONPATH=/afs/hep.man.ac.uk/u/alexschof/Programs/Rivet
    <http://hep.man.ac.uk/u/alexschof/Programs/Rivet>/lib/python2.6/site-packages:$PYTHONPATH

To see if python finds the packages, open a python shell and try 'import 
rivet'
or 'import lighthisto'.


I am pretty positive that the rivet-installation should also provide a 
setup
script called 'rivetenv.sh' which you could look for and use by `source 
PATH_TO_IT/rivetenv.sh`


Hope that helps,
Holger






> *
> Thanks,
> Alex*
>
>
> _______________________________________________
> Rivet mailing list
> Rivet at projects.hepforge.org
> http://www.hepforge.org/lists/listinfo/rivet

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.hepforge.org/lists-archive/rivet/attachments/20110222/5a9ebac0/attachment.html>


More information about the Rivet mailing list