installation of Delphes can't find root

Asked by Raymond Brock

I've identically installed Root and madgraph on two macs...each running ubuntu inside of VMware. On one, there was no problem installing pythia and then Delphes, but on the other pythia installed fine, but the Delphes installation failed:

mg5>install Delphes
Command "install Delphes" interrupted with error:
InvalidCmd : In order to install ExRootAnalysis, you need to install Root on your computer first.
 please follow information on http://root.cern.ch/drupal/content/downloading-root
mg5>writting history and quit on KeyboardInterrupt

My $PATH variables are identical on the two systems as are my .bashrc files. Of course if I type "root" anywhere in the failing system, Root opens as normal.

Any ideas?

thanks
Chip Brock

Question information

Language:
English Edit question
Status:
Answered
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#1

Do you have ROOTSYS environment variable defined?

Cheers,

Olivier
On Jun 14, 2013, at 2:56 PM, Raymond Brock <email address hidden> wrote:

> New question #230777 on MadGraph5:
> https://answers.launchpad.net/madgraph5/+question/230777
>
> I've identically installed Root and madgraph on two macs...each running ubuntu inside of VMware. On one, there was no problem installing pythia and then Delphes, but on the other pythia installed fine, but the Delphes installation failed:
>
>
> mg5>install Delphes
> Command "install Delphes" interrupted with error:
> InvalidCmd : In order to install ExRootAnalysis, you need to install Root on your computer first.
> please follow information on http://root.cern.ch/drupal/content/downloading-root
> mg5>writting history and quit on KeyboardInterrupt
>
> My $PATH variables are identical on the two systems as are my .bashrc files. Of course if I type "root" anywhere in the failing system, Root opens as normal.
>
> Any ideas?
>
> thanks
> Chip Brock
>
> --
> You received this question notification because you are a member of
> MadTeam, which is an answer contact for MadGraph5.

Revision history for this message
Raymond Brock (brock-w) said :
#2

hi Olivier,

Thanks...From my .bashrc file:

export PATH=$ROOTSYS/bin:$PATH
export LD_LIBRARY_PATH=$ROOTSYS/lib:$LD_LIBRARY_PATH
cd root
. bin/thisroot.sh
cd

and:

chipbrock@ubuntu:~$ echo $PATH
/home/chipbrock/root/bin:/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#3

Hi,

Then I have no idea.
Clearly the program fails to find root, I don't know why.
The easiest solution is to comment the line who makes the installation to crash:
file madgraph/madgraph_interface.py around line 676:
remove the lines:
            if not misc.which('root'):
                raise self.InvalidCmd(
'''In order to install ExRootAnalysis, you need to install Root on your computer first.
please follow information on http://root.cern.ch/drupal/content/downloading-root''')

Cheers,

Olivier

On Jun 14, 2013, at 7:31 PM, Raymond Brock <email address hidden> wrote:

> Question #230777 on MadGraph5 changed:
> https://answers.launchpad.net/madgraph5/+question/230777
>
> Status: Answered => Open
>
> Raymond Brock is still having a problem:
> hi Olivier,
>
> Thanks...From my .bashrc file:
>
>
> export PATH=$ROOTSYS/bin:$PATH
> export LD_LIBRARY_PATH=$ROOTSYS/lib:$LD_LIBRARY_PATH
> cd root
> . bin/thisroot.sh
> cd
>
> and:
>
> chipbrock@ubuntu:~$ echo $PATH
> /home/chipbrock/root/bin:/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
>
> --
> You received this question notification because you are a member of
> MadTeam, which is an answer contact for MadGraph5.

Revision history for this message
Raymond Brock (brock-w) said :
#4

Wow. Didn't want to hear that! If I were to install Delphes independently, does the madgraph installation set up any soft links or environment variables? Does it go into a particular directory? In short - how might I independently install delphes 3 to make it an identical circumstance as when madgraph does it for me?

You probably don't remember me, but we met at Duke at Ashutosh's EW working group meeting. I'm moving myself into a linux environment in vmware and getting off the mac OS. Starting to worry about Apple's move to iOS everything and I suspect their being behind in their BSD support. I'll count on VMWare keeping up.

But this Root thing has me really confused!

thanks
Chip Brock

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#5

Hi,

You are free to install Delphes independently, no problem on that.

> does the madgraph installation set up any soft links or
> environment variables?

No we don't

> - how might I independently install delphes 3 to make it an identical
> circumstance as when madgraph does it for me?

You need to do three things:
1) install Delphes on your system. (We use currently the following link: http://cp3.irmp.ucl.ac.be/downloads/Delphes-3-current.tar.gz)
2) modify the file input/mg5_configuration.txt and set the path to your Delphes installation.
3) overwrite the file Template/Cards/delphes_card_default.dat by a valid Delphes3 configuration cards (by default this file is still a Delphes2 file since we support both Delphes2 and Delphes3)

> You probably don't remember me, but we met at Duke at Ashutosh's EW
> working group meeting.

Sorry I didn't associate the name on the face, but sure I remember you.

> But this Root thing has me really confused!

Just that Delphes needs to have root installed in order to work.
For some reason, MG5 fails to detect root on your path (or consider it as not executable).
MG5 then stops wrongly the installation (I prefer to stop the installation such that the user knows that some external program are required.

Cheers,

Olivier

On Jun 15, 2013, at 12:41 PM, Raymond Brock <email address hidden> wrote:

> Question #230777 on MadGraph5 changed:
> https://answers.launchpad.net/madgraph5/+question/230777
>
> Status: Answered => Open
>
> Raymond Brock is still having a problem:
> Wow. Didn't want to hear that! If I were to install Delphes
> independently, does the madgraph installation set up any soft links or
> environment variables? Does it go into a particular directory? In short
> - how might I independently install delphes 3 to make it an identical
> circumstance as when madgraph does it for me?
>
> You probably don't remember me, but we met at Duke at Ashutosh's EW
> working group meeting. I'm moving myself into a linux environment in
> vmware and getting off the mac OS. Starting to worry about Apple's move
> to iOS everything and I suspect their being behind in their BSD support.
> I'll count on VMWare keeping up.
>
> But this Root thing has me really confused!
>
> thanks
> Chip Brock
>
> --
> You received this question notification because you are a member of
> MadTeam, which is an answer contact for MadGraph5.

Revision history for this message
Sida Lu (llxy7) said :
#6

Hi Olivier,

    I had exactly the same symptom as Raymond, and it seems that this problem is indeed caused by the variable ROOTSYS. I installed my root following the instruction on http://www.csupomona.edu/~pbsiegel/phy499/rootinstall.html. According to this website, I added:

export PATH=$ROOTSYS/bin:$PATH
export LD_LIBRARY_PATH=$ROOTSYS/lib:$LD_LIBRARY_PATH
cd root
. bin/thisroot.sh
cd

at the very end of the .bashrc file, but I cannot install Delphes in mg5. ( I was wondering if it is the position that cause this problem?)

Luckily, I tried to command "export ROOTSYS=$HOME/root" first in the terminal, then commanded "install Delphes" in mg5, and the installation problem seems to be fixed now.

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#7

Hi,

Thanks for the solution.
Indeed $ROOTSYS need to be define.

Cheers,

Olivier
On Aug 24, 2013, at 7:51 AM, Sida Lu <email address hidden> wrote:

> Question #230777 on MadGraph5 changed:
> https://answers.launchpad.net/madgraph5/+question/230777
>
> Sida Lu proposed the following answer:
> Hi Olivier,
>
> I had exactly the same symptom as Raymond, and it seems that this
> problem is indeed caused by the variable ROOTSYS. I installed my root
> following the instruction on
> http://www.csupomona.edu/~pbsiegel/phy499/rootinstall.html. According to
> this website, I added:
>
> export PATH=$ROOTSYS/bin:$PATH
> export LD_LIBRARY_PATH=$ROOTSYS/lib:$LD_LIBRARY_PATH
> cd root
> . bin/thisroot.sh
> cd
>
> at the very end of the .bashrc file, but I cannot install Delphes in
> mg5. ( I was wondering if it is the position that cause this problem?)
>
> Luckily, I tried to command "export ROOTSYS=$HOME/root" first in the
> terminal, then commanded "install Delphes" in mg5, and the installation
> problem seems to be fixed now.
>
> --
> You received this question notification because you are a member of
> MadTeam, which is an answer contact for MadGraph5.

Can you help with this problem?

Provide an answer of your own, or ask Raymond Brock for more information if necessary.

To post a message you must log in.