pythia interface installation problem

Asked by Yehia Abdelaziz

When I try to install pythia8 interface using the command 'install mg5amc_py8_interface, I get the following error :

MG5_aMC>install mg5amc_py8_interface
   You are installing 'mg5amc_py8_interface', please cite ref(s): arXiv:1410.3012, arXiv:XXXX.YYYYY.
Downloading the HEPToolInstaller at:
   http://madgraph.phys.ucl.ac.be/Downloads/HEPToolsInstaller/HEPToolsInstaller_V148.tar.gz
Now installing mg5amc_py8_interface. Be patient...
Fetching data with command:
  wget --no-check-certificate http://madgraph.phys.ucl.ac.be/Downloads/MG5aMC_PY8_interface/MG5aMC_PY8_interface_V1.0.tar.gz
--2021-08-18 14:57:49-- http://madgraph.phys.ucl.ac.be/Downloads/MG5aMC_PY8_interface/MG5aMC_PY8_interface_V1.0.tar.gz
Resolving madgraph.phys.ucl.ac.be (madgraph.phys.ucl.ac.be)... 130.104.133.249
Connecting to madgraph.phys.ucl.ac.be (madgraph.phys.ucl.ac.be)|130.104.133.249|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 19779 (19K) [application/x-gzip]
Saving to: ‘MG5aMC_PY8_interface_V1.0.tar.gz’

100%[=========================================================>] 19,779 --.-K/s in 0.1s

2021-08-18 14:57:50 (184 KB/s) - ‘MG5aMC_PY8_interface_V1.0.tar.gz’ saved [19779/19779]

Installing tool 'mg5amc_py8_interface'...
    > Follow the installation progress by running the command below in a separate terminal)
    > tail -f /home/yabdelaziz/Software/MG5_aMC_v3_1_1/HEPTools/MG5aMC_PY8_interface/mg5amc_py8_interface_install.log
A problem occured during the installation of 'mg5amc_py8_interface'.
Content of the installation log file '/home/yabdelaziz/Software/MG5_aMC_v3_1_1/HEPTools/MG5aMC_PY8_interface/mg5amc_py8_interface_install.log':

Error, could not retrieve Pythia8 version using script 'get_pythia8_version.py'. Check it.

Command "install mg5amc_py8_interface " interrupted in sub-command:
"install mg5amc_py8_interface" with error:
InvalidCmd : Installation of mg5amc_py8_interface failed.
**********************************************************************************************

When I try to compile the file " compile.py" manually I get the following error :

[yabdelaziz@192 MG5aMC_PY8_interface]$ ./compile.py ~/Software/MG5_aMC_v3_1_1/pythia8306/
Error in MG5aMC_PY8_interface installer. Could not find file:
   /home/yabdelaziz/Software/MG5_aMC_v3_1_1/pythia8306/share/Pythia8/examples/Makefile.inc
************************************************************************************************

Which is a directory that doesn't exist so I manually created this directory and copied the Makefile.inc from pythia8306/examples

when I try ./compile.py again I get this message

The version of HEPMC2 linked to Pythia8 seems not to include a static library.
This is necessary for the default compilation of MG5aMC_PY8_interface.
You can try again with the option --pythia8_makefile but HEPMC2 will need to be available at runtime.
**********************************************************************************************************

I know this question was discussed before but I got lost since I am new to all of this. Can you please tell me what exactly should I do to solve this problem?

Thanks in advance

Question information

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

As far as I know the "mg5amc_py8_interface" is not pyhia8.3 compatible.
pythia8 author are aware of the issue (but do not think that this has hight priority for them).
So for the moment we are stuck to pythia 8.2 for the interface.
You can still run pythia8.3 on lhef events but not via the MG5aMC interface when running at LO.

Cheers,

Olivier

> On 18 Aug 2021, at 21:20, Yehia Abdelaziz <email address hidden> wrote:
>
> New question #698420 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/698420
>
> When I try to install pythia8 interface using the command 'install mg5amc_py8_interface, I get the following error :
>
>
> MG5_aMC>install mg5amc_py8_interface
> You are installing 'mg5amc_py8_interface', please cite ref(s): arXiv:1410.3012, arXiv:XXXX.YYYYY.
> Downloading the HEPToolInstaller at:
> http://madgraph.phys.ucl.ac.be/Downloads/HEPToolsInstaller/HEPToolsInstaller_V148.tar.gz
> Now installing mg5amc_py8_interface. Be patient...
> Fetching data with command:
> wget --no-check-certificate http://madgraph.phys.ucl.ac.be/Downloads/MG5aMC_PY8_interface/MG5aMC_PY8_interface_V1.0.tar.gz
> --2021-08-18 14:57:49-- http://madgraph.phys.ucl.ac.be/Downloads/MG5aMC_PY8_interface/MG5aMC_PY8_interface_V1.0.tar.gz
> Resolving madgraph.phys.ucl.ac.be (madgraph.phys.ucl.ac.be)... 130.104.133.249
> Connecting to madgraph.phys.ucl.ac.be (madgraph.phys.ucl.ac.be)|130.104.133.249|:80... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 19779 (19K) [application/x-gzip]
> Saving to: ‘MG5aMC_PY8_interface_V1.0.tar.gz’
>
> 100%[=========================================================>] 19,779 --.-K/s in 0.1s
>
> 2021-08-18 14:57:50 (184 KB/s) - ‘MG5aMC_PY8_interface_V1.0.tar.gz’ saved [19779/19779]
>
> Installing tool 'mg5amc_py8_interface'...
>> Follow the installation progress by running the command below in a separate terminal)
>> tail -f /home/yabdelaziz/Software/MG5_aMC_v3_1_1/HEPTools/MG5aMC_PY8_interface/mg5amc_py8_interface_install.log
> A problem occured during the installation of 'mg5amc_py8_interface'.
> Content of the installation log file '/home/yabdelaziz/Software/MG5_aMC_v3_1_1/HEPTools/MG5aMC_PY8_interface/mg5amc_py8_interface_install.log':
>
> Error, could not retrieve Pythia8 version using script 'get_pythia8_version.py'. Check it.
>
> Command "install mg5amc_py8_interface " interrupted in sub-command:
> "install mg5amc_py8_interface" with error:
> InvalidCmd : Installation of mg5amc_py8_interface failed.
> **********************************************************************************************
>
> When I try to compile the file " compile.py" manually I get the following error :
>
>
>
> [yabdelaziz@192 MG5aMC_PY8_interface]$ ./compile.py ~/Software/MG5_aMC_v3_1_1/pythia8306/
> Error in MG5aMC_PY8_interface installer. Could not find file:
> /home/yabdelaziz/Software/MG5_aMC_v3_1_1/pythia8306/share/Pythia8/examples/Makefile.inc
> ************************************************************************************************
>
> Which is a directory that doesn't exist so I manually created this directory and copied the Makefile.inc from pythia8306/examples
>
> when I try ./compile.py again I get this message
>
> The version of HEPMC2 linked to Pythia8 seems not to include a static library.
> This is necessary for the default compilation of MG5aMC_PY8_interface.
> You can try again with the option --pythia8_makefile but HEPMC2 will need to be available at runtime.
> **********************************************************************************************************
>
> I know this question was discussed before but I got lost since I am new to all of this. Can you please tell me what exactly should I do to solve this problem?
>
> Thanks in advance
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
Yehia Abdelaziz (yehia95) said :
#2

Hey Olivier, thank you for your concern

I installed pythia8245 but the same problem persists. I am getting the following error

The version of HEPMC2 linked to Pythia8 seems not to include a static library.
This is necessary for the default compilation of MG5aMC_PY8_interface.
You can try again with the option --pythia8_makefile but HEPMC2 will need to be available at runtime.

Thank you

Revision history for this message
Yehia Abdelaziz (yehia95) said :
#3

It gives me a different error when I install it from inside MG

Error, could not retrieve Pythia8 version using script 'get_pythia8_version.py'. Check it.

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

So it fails to identify the pythia8 version of your installation
it looks first at the file
share/Pythia8/xmldoc/Version.xml
and if that did not work it falls back to
compiling a stupid pythia code
pythia8_version.cc
to get the information.

Looks like both methods fails in your case. Which might point to an installation issue for pythia8.

Revision history for this message
Yehia Abdelaziz (yehia95) said :
#5

Yes it looks like the issue was with pythia 8 installation. I installed it using the command " install pythia8 --pythia8_tarball" and it worked, Thank you.