pythia8 installation interrupted with error

Bug #1808875 reported by Steven Clark
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MadGraph5_aMC@NLO
Fix Released
Undecided
Unassigned

Bug Description

I am working on installing MadGraph and got to the final step where I am trying to install pythia8. After typing

./bin/mg5_AMC
install pythia8

The console output the following:

You are installing 'pythia8', please cite ref(s): arXiv:1410.3012.
Command "install pythia8" interrupted with error:
KeyError : 'HEPToolsInstaller'
Please report this bug on https://bugs.launchpad.net/mg5amcnlo
More information is found in 'MG5_debug'.
Please attach this file to your report.

The bug report is attached, I am not sure what to make of it. Sorry if this is a simple error, I am new to this but I appreciate any help in installation.

Revision history for this message
Steven Clark (svclark) wrote :
Revision history for this message
Olivier Mattelaer (olivier-mattelaer) wrote : Re: [Bug 1808875] [NEW] pythia8 installation interrupted with error

Looks like one of our server miss that information.
I will try to look tomorow which one has that issue.

You can actually just re-run the command up to the time that you select another server and then it should go trough.

Cheers,

Olivier

> On 17 Dec 2018, at 23:25, Steven Clark <email address hidden> wrote:
>
> Public bug reported:
>
> I am working on installing MadGraph and got to the final step where I am
> trying to install pythia8. After typing
>
> ./bin/mg5_AMC
> install pythia8
>
> The console output the following:
>
>
> You are installing 'pythia8', please cite ref(s): arXiv:1410.3012.
> Command "install pythia8" interrupted with error:
> KeyError : 'HEPToolsInstaller'
> Please report this bug on https://bugs.launchpad.net/mg5amcnlo
> More information is found in 'MG5_debug'.
> Please attach this file to your report.
>
> The bug report is attached, I am not sure what to make of it. Sorry if
> this is a simple error, I am new to this but I appreciate any help in
> installation.
>
> ** Affects: mg5amcnlo
> Importance: Undecided
> Status: New
>
> ** Attachment added: "MG5_debug"
> https://bugs.launchpad.net/bugs/1808875/+attachment/5223091/+files/MG5_debug
>
> --
> You received this bug notification because you are subscribed to
> MadGraph5_aMC@NLO.
> https://bugs.launchpad.net/bugs/1808875
>
> Title:
> pythia8 installation interrupted with error
>
> Status in MadGraph5_aMC@NLO:
> New
>
> Bug description:
> I am working on installing MadGraph and got to the final step where I
> am trying to install pythia8. After typing
>
> ./bin/mg5_AMC
> install pythia8
>
> The console output the following:
>
>
> You are installing 'pythia8', please cite ref(s): arXiv:1410.3012.
> Command "install pythia8" interrupted with error:
> KeyError : 'HEPToolsInstaller'
> Please report this bug on https://bugs.launchpad.net/mg5amcnlo
> More information is found in 'MG5_debug'.
> Please attach this file to your report.
>
> The bug report is attached, I am not sure what to make of it. Sorry if
> this is a simple error, I am new to this but I appreciate any help in
> installation.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/mg5amcnlo/+bug/1808875/+subscriptions

Revision history for this message
Steven Clark (svclark) wrote :

How do I select a different server?

And thanks for checking that out. It's not too urgent so I can also just wait until tomorrow and try again

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) wrote : Re: [Bug 1808875] Re: pythia8 installation interrupted with error

The selection of the server is random.

so just try mulitple times

Olivier

> On 17 Dec 2018, at 23:44, Steven Clark <email address hidden> wrote:
>
> How do I select a different server?
>
> And thanks for checking that out. It's not too urgent so I can also just
> wait until tomorrow and try again
>
> --
> You received this bug notification because you are subscribed to
> MadGraph5_aMC@NLO.
> https://bugs.launchpad.net/bugs/1808875
>
> Title:
> pythia8 installation interrupted with error
>
> Status in MadGraph5_aMC@NLO:
> New
>
> Bug description:
> I am working on installing MadGraph and got to the final step where I
> am trying to install pythia8. After typing
>
> ./bin/mg5_AMC
> install pythia8
>
> The console output the following:
>
>
> You are installing 'pythia8', please cite ref(s): arXiv:1410.3012.
> Command "install pythia8" interrupted with error:
> KeyError : 'HEPToolsInstaller'
> Please report this bug on https://bugs.launchpad.net/mg5amcnlo
> More information is found in 'MG5_debug'.
> Please attach this file to your report.
>
> The bug report is attached, I am not sure what to make of it. Sorry if
> this is a simple error, I am new to this but I appreciate any help in
> installation.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/mg5amcnlo/+bug/1808875/+subscriptions

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) wrote :

Hi,

It should be fixed now.

Cheers,

Olivier

Changed in mg5amcnlo:
status: New → Fix Released
Revision history for this message
Steven Clark (svclark) wrote :

Thanks for your help. I got past that error but now I am continually encountering another one. When I type install pythia8, it runs for about 5 mins then says:

In file included from main93.cc:9:0:
/users/h2/sclark/CMSSW_10_1_0/MG5_aMC_v2_6_4/HEPTools/pythia8//include/Pythia8Plugins/HepMC2.h:17:32: fatal error: HepMC/IO_BaseClass.h: No such file or directory
 #include "HepMC/IO_BaseClass.h"
                                ^
compilation terminated.
Makefile:174: recipe for target 'main93' failed
make: *** [main93] Error 1
sed: couldn't write 39 items to stdout: Disk quota exceeded
 Finished PYTHIA8 installation

I have run "install pythia8" a few times and I have even tried completely restarting by deleting the mg5 directory, reinstalling everything, but I seem to always encounter this error. Any idea where it may be coming from?

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) wrote : Re: [Bug 1808875] pythia8 installation interrupted with error

Hi,

> h:17:32: fatal error: HepMC/IO_BaseClass.h: No such file or directory
> #include "HepMC/IO_BaseClass.h"

Which version of HepMC did you have installed?
maybe you can try to do "install hepmc"
to force to use a local version rather than a globally install one.
(maybe uninstall the global one in that case)

> compilation terminated.
> Makefile:174: recipe for target 'main93' failed
> make: *** [main93] Error 1
> sed: couldn't write 39 items to stdout: Disk quota exceeded

This one seems to be related to a quota issue which should be related to your filesystem/...
Nothing that I can do here. (Maybe you should install the code somewhere else-- ask your sysadmin--)

Cheers,

Olivier

> On 18 Dec 2018, at 22:29, Steven Clark <email address hidden> wrote:
>
> Thanks for your help. I got past that error but now I am continually
> encountering another one. When I type install pythia8, it runs for about
> 5 mins then says:
>
> In file included from main93.cc:9:0:
> /users/h2/sclark/CMSSW_10_1_0/MG5_aMC_v2_6_4/HEPTools/pythia8//include/Pythia8Plugins/HepMC2.h:17:32: fatal error: HepMC/IO_BaseClass.h: No such file or directory
> #include "HepMC/IO_BaseClass.h"
> ^
> compilation terminated.
> Makefile:174: recipe for target 'main93' failed
> make: *** [main93] Error 1
> sed: couldn't write 39 items to stdout: Disk quota exceeded
> Finished PYTHIA8 installation
>
> I have run "install pythia8" a few times and I have even tried
> completely restarting by deleting the mg5 directory, reinstalling
> everything, but I seem to always encounter this error. Any idea where it
> may be coming from?
>
> --
> You received this bug notification because you are subscribed to
> MadGraph5_aMC@NLO.
> https://bugs.launchpad.net/bugs/1808875
>
> Title:
> pythia8 installation interrupted with error
>
> Status in MadGraph5_aMC@NLO:
> Fix Released
>
> Bug description:
> I am working on installing MadGraph and got to the final step where I
> am trying to install pythia8. After typing
>
> ./bin/mg5_AMC
> install pythia8
>
> The console output the following:
>
>
> You are installing 'pythia8', please cite ref(s): arXiv:1410.3012.
> Command "install pythia8" interrupted with error:
> KeyError : 'HEPToolsInstaller'
> Please report this bug on https://bugs.launchpad.net/mg5amcnlo
> More information is found in 'MG5_debug'.
> Please attach this file to your report.
>
> The bug report is attached, I am not sure what to make of it. Sorry if
> this is a simple error, I am new to this but I appreciate any help in
> installation.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/mg5amcnlo/+bug/1808875/+subscriptions

Revision history for this message
Steven Clark (svclark) wrote :

Yes you are right, it is a local issue that I am resolving now. Thanks for all your help

Revision history for this message
kesterlester (cgl20) wrote :

Hi - I'm getting the same symptoms (i.e. inability to "install pythia8" from within madgraph on account of hepmc files not being found at pythia8 compilation time) however in my case this is not a quota issue.

I have no problem with doing any of these from within madgrpah:

install lhapdf6
install hepmc

and watching the logs during their installation they seem to install fine.

However when I "install pythia8" from within madgraph, the installer seems unable to locate the lhapdf6 installations prompting:

>> LHAPDF was not found. Do you want to install LHPADF6?

to which if one answers "yes" one gets

>> Now installing lhapdf6. Be patient...
>> The specified path '/Users/lester/MG5_aMC_v2_6_2/HEPTools' already contains an installation of tool 'lhapdf6'.
>> Rerun the HEPToolInstaller.py script again with the option '--force' if you want to overwrite it.
>> Tool lhapdf6 already installed in /Users/lester/MG5_aMC_v2_6_2/HEPTools. Do you want to overwrite its installation? y/n >[y] [60s to answer]

which is all a bit worrying. Still, you can answer yes, and another lhapdf6 installation takes places, overwriting the other, and then there is a progression to compilation of pythia8 itself. This compilation includes (according to the log) a number of successful uses of Hepmc include paths. E.g. the following log messages look to have a sensible blah/HEPTools/hepmc/include include path:

>> g++ main89.cc -o main89 -I/Users/lester/MG5_aMC_v2_6_2/HEPTools/hepmc/include -I/Users/lester/MG5_aMC_v2_6_2/HEPTools/pythia8//include -ldl -fPIC -lc++ -DHEPMC2HACK -L/Users/lester/MG5_aMC_v2_6_2/HEPTools/pythia8//lib -Wl,-rpath,/Users/lester/MG5_aMC_v2_6_2/HEPTools/pythia8//lib -lpythia8 -ldl \
  -L/Users/lester/MG5_aMC_v2_6_2/HEPTools/hepmc/lib -Wl,-rpath,/Users/lester/MG5_aMC_v2_6_2/HEPTools/hepmc/lib -lHepMC\
   -DGZIPSUPPORT -I/Users/lester/MG5_aMC_v2_6_2/HEPTools/zlib/include -L/Users/lester/MG5_aMC_v2_6_2/HEPTools/zlib/lib -Wl,-rpath,/Users/lester/MG5_aMC_v2_6_2/HEPTools/zlib/lib -lz

However, at some point the pythia8 compilation gets far enough that it tries to compile a "main93.cc" ... and this is what goes wrong as it no longer embeds the hepmc include file in the compile line:

>> g++ main93.cc -o main93 -DUSE_YODA -std=c++11 -w -I/Users/lester/MG5_aMC_v2_6_2/HEPTools/pythia8//include -ldl -fPIC -lc++ -DHEPMC2HACK -L/Users/lester/MG5_aMC_v2_6_2/HEPTools/pythia8//lib -Wl,-rpath,/Users/lester/MG5_aMC_v2_6_2/HEPTools/pythia8//lib -lpythia8 -ldl -lYODA\
  -lHepMC -lRivet -DGZIPSUPPORT -I/Users/lester/MG5_aMC_v2_6_2/HEPTools/zlib/include -L/Users/lester/MG5_aMC_v2_6_2/HEPTools/zlib/lib -Wl,-rpath,/Users/lester/MG5_aMC_v2_6_2/HEPTools/zlib/lib -lz
In file included from main93.cc:9:
/Users/lester/MG5_aMC_v2_6_2/HEPTools/pythia8//include/Pythia8Plugins/HepMC2.h:17:10: fatal error: 'HepMC/IO_BaseClass.h' file not found
#include "HepMC/IO_BaseClass.h"
         ^~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [main93] Error 1
 Finished PYTHIA8 installation

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.