Cannot install Pythia8: "A problem occured during the installation of dependency 'hepmc'"

Asked by Nate Thach on 2020-10-13

Hi,

I am a bit confused while installing Pythia8. At the beginning, it showed that an installation of hepmc is needed. Then after running for a while, it returned an error as below. Am I missing something important? (I am using Ubuntu on Windows to run MG5). Thank you!

Detected 'pythia8' missing dependency: 'hepmc'. Will install it now.
....
....
Compile HEPMC /"PATH"/mg5_amc_v2_8_0/HEPTools/HEPToolsInstallers/installHEPMC2.sh: line 62: make: command not found
 Install HEPMC /"PATH"/mg5_amc_v2_8_0/HEPTools/HEPToolsInstallers/installHEPMC2.sh: line 65: make: command not found
 Finished HEPMC installation

> Now aborting installation of tool 'pythia8'.
Command "install pythia8" interrupted with error:
InvalidCmd : Installation of pythia8 failed.

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Solved by:
Nate Thach
Solved:
2020-10-17
Last query:
2020-10-17
Last reply:
2020-10-16

Looks like you are missing "gmake" package on your ubuntu system.
try something like
apt-get install gmake
or
apt-get install make

(Those package are default on a standard ubuntu)

Cheers,

Olivier

> On 13 Oct 2020, at 05:25, Nate Thach <email address hidden> wrote:
>
> New question #693431 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/693431
>
> Hi,
>
> I am a bit confused while installing Pythia8. At the beginning, it showed that an installation of hepmc is needed. Then after running for a while, it returned an error as below. Am I missing something important? (I am using Ubuntu on Windows to run MG5). Thank you!
>
>
> Detected 'pythia8' missing dependency: 'hepmc'. Will install it now.
> ....
> ....
> Compile HEPMC /"PATH"/mg5_amc_v2_8_0/HEPTools/HEPToolsInstallers/installHEPMC2.sh: line 62: make: command not found
> Install HEPMC /"PATH"/mg5_amc_v2_8_0/HEPTools/HEPToolsInstallers/installHEPMC2.sh: line 65: make: command not found
> Finished HEPMC installation
>
>> Now aborting installation of tool 'pythia8'.
> Command "install pythia8" interrupted with error:
> InvalidCmd : Installation of pythia8 failed.
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Nate Thach (nthach17) said : #2

Thank you for your answer, Olivier!

I installed "make" and so this time, during the installation of Pythia8, "hepmc" was succesfully installed, but now it showed "boost" also needs to be installed, and after a long run (> 30 minutes), I received the following error. Would you please take a look and see what happened?

Installing tool 'boost'...
  > Follow the installation progress by running the command below in a separate terminal)
  > tail -f /PATH/mg5_amc_v2_8_0/HEPTools/boost/boost_install.log
  > Successful installation of dependency 'boost' in '/PATH/mg5_amc_v2_8_0/HEPTools'.
  > See installation log at '/PATH/mg5_amc_v2_8_0/HEPTools/boost/boost_install.log'. Fetching data with command:
     wget --no-check-certificate http://home.thep.lu.se/~torbjorn/pythia8/pythia8244.tgz
--2020-10-13 11:24:07-- http://home.thep.lu.se/~torbjorn/pythia8/pythia8244.tgz
Resolving home.thep.lu.se (home.thep.lu.se)... failed: Temporary failure in name resolution.
wget: unable to resolve host address ‘home.thep.lu.se’
Could not download data at 'http://home.thep.lu.se/~torbjorn/pythia8/pythia8244.tgz' because of:
stat: path should be string, bytes, os.PathLike or integer, not NoneType

Command "install pythia8" interrupted with error:
InvalidCmd : Installation of pythia8 failed.

The good news is that boost installed successfully.

This sounds a typical error of python3 incompatibility.
We had 10 month of public beta for that version but looks like we still succeed to fails to spot that mistake.
Could you copy here the debug file to know where I have to patch this python2-> python3 inconsistency.

Cheers,

Olivier

> On 13 Oct 2020, at 20:35, Nate Thach <email address hidden> wrote:
>
> Question #693431 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/693431
>
> Status: Answered => Open
>
> Nate Thach is still having a problem:
> Thank you for your answer, Olivier!
>
> I installed "make" and so this time, during the installation of Pythia8,
> "hepmc" was succesfully installed, but now it showed "boost" also needs
> to be installed, and after a long run (> 30 minutes), I received the
> following error. Would you please take a look and see what happened?
>
> Installing tool 'boost'...
>> Follow the installation progress by running the command below in a separate terminal)
>> tail -f /PATH/mg5_amc_v2_8_0/HEPTools/boost/boost_install.log
>> Successful installation of dependency 'boost' in '/PATH/mg5_amc_v2_8_0/HEPTools'.
>> See installation log at '/PATH/mg5_amc_v2_8_0/HEPTools/boost/boost_install.log'. Fetching data with command:
> wget --no-check-certificate http://home.thep.lu.se/~torbjorn/pythia8/pythia8244.tgz
> --2020-10-13 11:24:07-- http://home.thep.lu.se/~torbjorn/pythia8/pythia8244.tgz
> Resolving home.thep.lu.se (home.thep.lu.se)... failed: Temporary failure in name resolution.
> wget: unable to resolve host address ‘home.thep.lu.se’
> Could not download data at 'http://home.thep.lu.se/~torbjorn/pythia8/pythia8244.tgz' because of:
> stat: path should be string, bytes, os.PathLike or integer, not NoneType
>
> Command "install pythia8" interrupted with error:
> InvalidCmd : Installation of pythia8 failed.
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Nate Thach (nthach17) said : #4

I am sorry if this sounds trivial, but where should this debug file be? The only "debug file" I found is MG5_debug which is unaffected by the installation of Pythia8 I did in recent days.

Thank you,
Nate

Ok nevermind them,

I guess that the real problem is that pyttia website was down. Can you retry?

Olivier

Nate Thach (nthach17) said : #6

I just retried and it works now! Thank you so much for your help, Olivier!

Best,
Nate