[Rivet] installation of Rivet

Chris Pollard cpollard at cern.ch
Sat Jun 20 07:18:10 BST 2015


Hi Debottam,

localSetupPython is setting up a very out-of-date version of python (2.5,
i686, gcc4.3). You should run

$ localSetupPython --help

This will give you a list of available python versions on that system.
After that you can set the python version by hand; for instance, I usually
set up 2.7.4-x86_64-slc6-gcc48:

$ localSetupPython 2.7.4-x86_64-slc6-gcc48

Can you give that a try then attempt to import rivet again?

Chris

On Sat, Jun 20, 2015 at 3:55 AM, Debottam Bakshi Gupta <
debottam.gupta at gmail.com> wrote:

> Hi Dr. Buckley,
>
> I did the following :
>
> >ssh -X -Y dbakshig at lxplus6.cern.ch  //that's how I log in to lxplus6
>
> >localSetupPython                             //didn't mention any version
>
> output: Setting up Python version 2.5.4p2-i686-slc5-gcc43
>
> >source ~/Rivet/local/rivetenv.sh
>
> >python
> >>> import rivet
>
> Traceback (most recent call last):
>
> File "<stdin>", line 1, in <module>
>
> File "/afs/
> cern.ch/user/d/dbakshig/Rivet/local/lib/python2.6/site-packages/rivet/__init__.py",
> line 12, in <module>
>
> from rivet.core import *
>
> ImportError: /afs/
> cern.ch/user/d/dbakshig/Rivet/local/lib/python2.6/site-packages/rivet/core.so:
> wrong ELF class: ELFCLASS64
> Thanks,
> Debo.
>
> On Fri, Jun 19, 2015 at 6:09 PM, Andy Buckley <andy.buckley at cern.ch>
> wrote:
>
>> I'm not sure what is going on here --- it worked fine for me, using the
>> lxplus6 system Python. You could try enabling a newer version of Python
>> either manually or via the ATLAS localSetupPython command if you have
>> that available.
>>
>> Can you also try sourcing rivetenv.sh, then running "python" and try
>> "import rivet" at the Python interactive prompt? This should give some
>> error messages suppressed in the rivet script, which should hint at what
>> is going wrong.
>>
>> Andy
>>
>>
>> On 19/06/15 03:00, Debottam Bakshi Gupta wrote:
>> > Hi Dr. Buckley,
>> >
>> > There is another issue I used the command FASTJET_VERSION=3.0.3
>> > ./rivet-bootstrap-lcg. Now I tried to set environment on my lxplus home
>> > directory
>> >
>> >>source ~/Rivet/local/rivetenv.sh
>> >
>> > Then I tried following
>> >
>> >>rivet --help
>> > "The rivet Python module could not be loaded: is your PYTHONPATH set
>> > correctly?"
>> >
>> > I have attached the installation log file. Is it because of an older
>> > version of python?
>> >
>> > Thanks,
>> > Debo
>> >
>> > On Wed, Jun 17, 2015 at 8:59 AM, Andy Buckley <andy.buckley at cern.ch
>> > <mailto:andy.buckley at cern.ch>> wrote:
>> >
>> >     Hi Debottam,
>> >
>> >     Ok, thanks for confirming. I tried it myself and reproduced the
>> problem.
>> >
>> >     The quick fix, I think, will be to use an even earlier version of
>> >     FastJet, since the installation of 3.0.6 in the LCG area is (for
>> some
>> >     strange reason) only for SLC5! Here's a version of the command which
>> >     should do that version change without you needing to edit anything:
>> >
>> >     FASTJET_VERSION=3.0.3 ./rivet-bootstrap-lcg
>> >
>> >     This worked for me, and I will update the bootstrap script to use
>> 3.0.3
>> >     by default. I've also asked the LCG applications manager what's
>> going on
>> >     with the FastJet builds, since the 3.1. series has been available
>> for
>> >     nearly a year and the latest SLC6 build is *three years* old!!!
>> Maybe
>> >     they have switched to putting their FastJet builds somewhere else,
>> >     without leaving any signposts in the old directory... I'll find out.
>> >
>> >     Cheers,
>> >     Andy
>> >
>> >
>> >
>> >     On 17/06/15 02:23, Debottam Bakshi Gupta wrote:
>> >     > Hi Dr. Buckley,
>> >     >
>> >     > Yes I am doing it in lxplus. I logged in to lxplus and created a
>> folder
>> >     > named Rivet in my home directory and there I wrote the command
>> >     >
>> >     > wget
>> http://rivet.hepforge.org/hg/bootstrap/raw-file/2.2.1/rivet-bootstrap-lcg
>> >     >   chmod +x rivet-bootstrap-lcg
>> >     >
>> >     > and then
>> >     >
>> >     >  ./rivet-bootstrap-lcg.
>> >     >
>> >     > Thanks,
>> >     >
>> >     > Debo.
>> >     >
>> >     >
>> >     >
>> >     > On Tue, Jun 16, 2015 at 3:34 PM, Andy Buckley <
>> andy.buckley at cern.ch <mailto:andy.buckley at cern.ch>
>> >     > <mailto:andy.buckley at cern.ch <mailto:andy.buckley at cern.ch>>>
>> wrote:
>> >     >
>> >     >     Did you do this on lxplus?
>> >     >
>> >     >     rivet-bootstrap-lcg is for use on systems where the /afs/
>> cern.ch <http://cern.ch>
>> >     >     <http://cern.ch>
>> >     >     filesystem is visible, and it will try to pick up all the
>> external
>> >     >     packages like FastJet from there. If you're building on a
>> laptop or
>> >     >     other system without AFS, use the rivet-bootstrap script
>> instead.
>> >     >
>> >     >     Andy
>> >     >
>> >     >
>> >     >     On 16/06/15 18:51, Debottam Bakshi Gupta wrote:
>> >     >     > Hi Dr. Buckley,
>> >     >     >
>> >     >     > I did the following
>> >     >     >
>> >     >     > wget
>> http://rivet.hepforge.org/hg/bootstrap/raw-file/2.2.1/rivet-bootstrap-lcg
>> >     >     >   chmod +x rivet-bootstrap-lcg
>> >     >     >
>> >     >     > and then
>> >     >     >
>> >     >     > ./rivet-bootstrap-lcg
>> >     >     >
>> >     >     > it gave me the output (please see the attached .txt file)
>> with
>> >     >     >
>> >     >     > ......................
>> >     >     > configure: WARNING: fastjet library was not found
>> >     >     > configure: error: FastJet is required
>> >     >     >
>> >     >     > Thanks,
>> >     >     >
>> >     >     > Debo.
>> >     >     >
>> >     >     >
>> >     >     >
>> >     >     >
>> >     >     >
>> >     >     > On Tue, Jun 16, 2015 at 12:02 PM, Andy Buckley <
>> andy.buckley at cern.ch <mailto:andy.buckley at cern.ch>
>> >     <mailto:andy.buckley at cern.ch <mailto:andy.buckley at cern.ch>>
>> >     >     > <mailto:andy.buckley at cern.ch <mailto:andy.buckley at cern.ch>
>> >     <mailto:andy.buckley at cern.ch <mailto:andy.buckley at cern.ch>>>>
>> wrote:
>> >     >     >
>> >     >     >     On 16/06/15 16:49, Debottam Bakshi Gupta wrote:
>> >     >     >     > Hi Deepak,
>> >     >     >     >
>> >     >     >     > It would be great if you provide me with some details
>> >     >     because I am doing
>> >     >     >     > this for the 1st time, please see the following.
>> >     >     >     >
>> >     >     >     > *
>> >     >     >     > I did
>> >     >     >     >
>> >     >     >     >   cd /scratch/rivet
>> >     >     >     >   wget
>> >     >
>> >
>> http://rivet.hepforge.org/hg/bootstrap/raw-file/1.9.0/rivet-bootstrap-lcg
>> >     >     >     >   chmod +x rivet-bootstrap-lcg
>> >     >     >     >
>> >     >     >     > **Where Fastjet was installed when I ran
>> >     >     >     >
>> >     >     >     > ./rivet-bootstrap-lcg
>> >     >     >     >
>> >     >     >     > Q?? which should I use version 1.9.0 or  2.2.1.
>> >     >     >
>> >     >     >     Definitely 2.2.1!
>> >     >     >
>> >     >     >     > In case of 2.2.1 if I
>> >     >     >     > need to install Fastjet separately and how?
>> >     >     >
>> >     >     >     It should be automatically downloaded and installed by
>> the
>> >     >     bootstrap --
>> >     >     >     was it not?
>> >     >     >
>> >     >     >     > When I installed version 1.9.0 I tried to use this
>> command
>> >     >     >     >
>> >     >     >     >> agile-runmc --help
>> >     >     >     >
>> >     >     >     > And it could not find agile-runmc command
>> >     >     >
>> >     >     >     We don't install AGILe anymore, since the world mostly
>> moved
>> >     >     on from the
>> >     >     >     Fortran MC generators and the LCG directory structure
>> that
>> >     >     contained
>> >     >     >     them has also changed. We might bring AGILe back to
>> life at
>> >     >     some point,
>> >     >     >     but there's not a lot of demand (i.e. no-one has asked!)
>> >     >     >
>> >     >     >     If you want a generator code to try out, I think
>> Pythia8 is
>> >     >     the easiest
>> >     >     >     to install and use. Sherpa and Herwig++ are also quite
>> >     easy to
>> >     >     install
>> >     >     >     -- not *quite* as easy -- but they are more
>> configurable,
>> >     >     which means a
>> >     >     >     bit more complexity.
>> >     >     >
>> >     >     >     > Q?? do I need to download any dependencies for this.
>> >     because
>> >     >     I simply
>> >     >     >     > want run at the beginning the following code given in
>> >     >     >     > https://rivet.hepforge.org/trac/wiki/FirstRivetRun.
>> >     >     >     >
>> >     >     >     >> mkfifo fifo.hepmc
>> >     >     >     >> agile-runmc Pythia6:425 --beams=LHC:7000 -n 500000 -o
>> >     >     fifo.hepmc &
>> >     >     >     >> rivet --analysis=ANALYSIS_NAME fifo.hepmc
>> >     >     >
>> >     >     >     Ah, I see: we should update that example to not mention
>> >     >     agile-runmc...
>> >     >     >
>> >     >     >     > Could you just let me know what are the dependencies I
>> >     need
>> >     >     to install
>> >     >     >     > to run the above code??
>> >     >     >
>> >     >     >     Hopefully the bootstrap will download everything you
>> need,
>> >     >     other than a
>> >     >     >     copy of Pythia8 or whichever generator you prefer. I
>> >     find the
>> >     >     Sacrifice
>> >     >     >     interface a nice way to steer Pythia8 -- we have a link
>> to
>> >     >     that from the
>> >     >     >     Rivet web page, IIRC.
>> >     >     >
>> >     >     >     Cheers,
>> >     >     >     Andy
>> >     >     >
>> >     >     >
>> >     >     >     > On Tue, Jun 16, 2015 at 10:26 AM, Deepak Kar
>> >     >     <deepak.kar at gmail.com <mailto:deepak.kar at gmail.com>
>> >     <mailto:deepak.kar at gmail.com <mailto:deepak.kar at gmail.com>>
>> >     >     <mailto:deepak.kar at gmail.com <mailto:deepak.kar at gmail.com>
>> >     <mailto:deepak.kar at gmail.com <mailto:deepak.kar at gmail.com>>>
>> >     >     >     > <mailto:deepak.kar at gmail.com
>> >     <mailto:deepak.kar at gmail.com> <mailto:deepak.kar at gmail.com
>> >     <mailto:deepak.kar at gmail.com>>
>> >     >     <mailto:deepak.kar at gmail.com <mailto:deepak.kar at gmail.com>
>> >     <mailto:deepak.kar at gmail.com <mailto:deepak.kar at gmail.com>>>>>
>> wrote:
>> >     >     >     >
>> >     >     >     >     Please see inline.
>> >     >     >     >
>> >     >     >     >     On Tue, Jun 16, 2015 at 5:07 PM, Debottam Bakshi
>> Gupta
>> >     >     >     >     <debottam.bakshi.gupta at cern.ch
>> >     <mailto:debottam.bakshi.gupta at cern.ch>
>> >     <mailto:debottam.bakshi.gupta at cern.ch
>> >     <mailto:debottam.bakshi.gupta at cern.ch>>
>> >     >     <mailto:debottam.bakshi.gupta at cern.ch
>> >     <mailto:debottam.bakshi.gupta at cern.ch>
>> >     >     <mailto:debottam.bakshi.gupta at cern.ch
>> >     <mailto:debottam.bakshi.gupta at cern.ch>>>
>> >     >     >     >     <mailto:debottam.bakshi.gupta at cern.ch
>> >     <mailto:debottam.bakshi.gupta at cern.ch>
>> >     >     <mailto:debottam.bakshi.gupta at cern.ch
>> >     <mailto:debottam.bakshi.gupta at cern.ch>>
>> >     >     >     <mailto:debottam.bakshi.gupta at cern.ch
>> >     <mailto:debottam.bakshi.gupta at cern.ch>
>> >     >     <mailto:debottam.bakshi.gupta at cern.ch
>> >     <mailto:debottam.bakshi.gupta at cern.ch>>>>> wrote:
>> >     >     >     >     > Hi helpers,
>> >     >     >     >     >
>> >     >     >     >     > I am trying to install Rivet on my lxplus area.
>> >     I am following instructions
>> >     >     >     >     > from
>> >     https://rivet.hepforge.org/trac/wiki/GettingStarted
>> >     >     >     >     >
>> >     >     >     >     > step1:
>> >     >     >     >     >
>> >     >     >     >     >  cd /scratch/rivet
>> >     >     >     >     >   wget
>> >     >     >     >     >
>> >
>> http://rivet.hepforge.org/hg/bootstrap/raw-file/2.2.1/rivet-bootstrap-lcg
>> >     >     >     >     >   chmod +x rivet-bootstrap-lcg
>> >     >     >     >     >
>> >     >     >     >     > step2:
>> >     >     >     >     >
>> >     >     >     >     >  nano rivet-bootstrap-lcg ## and edit...
>> >     >     >     >     >
>> >     >     >     >     > Q?? do I need to change anything in
>> >     rivet-bootstrap-lcg script??
>> >     >     >     >     >
>> >     >     >     >
>> >     >     >     >     Not really if you dont want to update any of the
>> >     package versions.
>> >     >     >     >
>> >     >     >     >     > step3:
>> >     >     >     >     >
>> >     >     >     >     > ./rivet-bootstrap-lcg
>> >     >     >     >     >
>> >     >     >     >     > Q?? it runs but at the end shows following:
>> >     >     >     >     > ...............................................
>> >     >     >     >     > configure: WARNING: fastjet library was not
>> found
>> >     >     >     >     > configure: error: FastJet is required
>> >     >     >     >
>> >     >     >     >     Self explanatory - you can/should install fastjet
>> >     (will be needed for
>> >     >     >     >     many analyses anyway)
>> >     >     >     >
>> >     >     >     >     >
>> >     >     >     >     > step4:
>> >     >     >     >     > source Rivet/Rivet-2.2.1/rivetenv.sh.in
>> >     <http://rivetenv.sh.in> <http://rivetenv.sh.in>
>> >     >     >     <http://rivetenv.sh.in> <http://rivetenv.sh.in>
>> >     >     >     >
>> >     >     >     >
>> >     >     >     >     I usually source the rivetenv.sh
>> >     >     >     >
>> >     >     >     >     >
>> >     >     >     >     > output:
>> >     >     >     >     > -bash: export: `@LIBPATHVARNAME@=@libdir@:@
>> >     >     >     >     >
>> >     >     >     >     >
>> >     YODALIBPATH@:@HEPMCLIBPATH@:@FASTJETLIBPATH@:@GSLLIBPATH@
>> :LIBPATHVARNAME@':
>> >     >     >     >     > not a valid identifier
>> >     >     >     >     >
>> >     >     >     >
>> >     >     >     >     Best,
>> >     >     >     >     Deepak
>> >     >     >     >
>> >     >     >     >     > Could you please help?
>> >     >     >     >     >
>> >     >     >     >     > Thanks,
>> >     >     >     >     > Debo.
>> >     >     >     >     >
>> >     >     >     >     >
>> >     >     >     >     >
>> >     >     >     >     > _______________________________________________
>> >     >     >     >     > Rivet mailing list
>> >     >     >     >     > Rivet at projects.hepforge.org
>> >     <mailto:Rivet at projects.hepforge.org>
>> >     <mailto:Rivet at projects.hepforge.org
>> >     <mailto:Rivet at projects.hepforge.org>>
>> >     >     >     <mailto:Rivet at projects.hepforge.org
>> >     <mailto:Rivet at projects.hepforge.org>
>> >     <mailto:Rivet at projects.hepforge.org
>> >     <mailto:Rivet at projects.hepforge.org>>>
>> >     >     >     <mailto:Rivet at projects.hepforge.org
>> >     <mailto:Rivet at projects.hepforge.org>
>> >     >     <mailto:Rivet at projects.hepforge.org
>> >     <mailto:Rivet at projects.hepforge.org>>
>> >     >     >     <mailto:Rivet at projects.hepforge.org
>> >     <mailto:Rivet at projects.hepforge.org>
>> >     <mailto:Rivet at projects.hepforge.org
>> >     <mailto:Rivet at projects.hepforge.org>>>>
>> >     >     >     >     > https://www.hepforge.org/lists/listinfo/rivet
>> >     >     >     >
>> >     >     >     >
>> >     >     >     >
>> >     >     >     >     --
>> >     >     >     >     Deepak Kar
>> >     >     >     >     University of Witwatersrand
>> >     >     >     >     Room PM15, School of Physics
>> >     >     >     >     (0027) 011-7176958 (office) (0027) 079-8401087
>> (mobile)
>> >     >     >     >
>> >     >     >     >     While at CERN:
>> >     >     >     >     Building 1, R-016
>> >     >     >     >     (0041) 0767321349 (mobile)
>> >     >     >     >
>> >     >     >     >     While at USA:
>> >     >     >     >     (001) 330-998-1500 (mobile)
>> >     >     >     >
>> >     >     >     >
>> >     >     >     >
>> >     >     >     >
>> >     >     >     > _______________________________________________
>> >     >     >     > Rivet mailing list
>> >     >     >     > Rivet at projects.hepforge.org <mailto:
>> Rivet at projects.hepforge.org>
>> >     <mailto:Rivet at projects.hepforge.org
>> >     <mailto:Rivet at projects.hepforge.org>>
>> >     >     <mailto:Rivet at projects.hepforge.org <mailto:
>> Rivet at projects.hepforge.org>
>> >     >     <mailto:Rivet at projects.hepforge.org <mailto:
>> 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
>> >     >     >
>> >     >     >
>> >     >
>> >     >
>> >     >     --
>> >     >     Dr Andy Buckley, Lecturer / Royal Society University Research
>> >     Fellow
>> >     >     Particle Physics Expt Group, University of Glasgow
>> >     >
>> >     >
>> >
>> >
>> >     --
>> >     Dr Andy Buckley, Lecturer / Royal Society University Research Fellow
>> >     Particle Physics Expt Group, University of Glasgow
>> >
>> >
>>
>>
>> --
>> Dr Andy Buckley, Lecturer / Royal Society University Research Fellow
>> Particle Physics Expt Group, University of Glasgow
>>
>
>
> _______________________________________________
> Rivet mailing list
> Rivet at projects.hepforge.org
> https://www.hepforge.org/lists/listinfo/rivet
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.hepforge.org/lists-archive/rivet/attachments/20150620/801cb590/attachment.html>


More information about the Rivet mailing list