pythia8 installation lhapdf62

Asked by Jihoon Shin

I have been having an issue with Pythia8 in one of my servers, so I installed mg5_aMC in a different server and I tried to download pythi8. It successfully downloaded hepmc and zlib.

Here I was instructed by my instructor to not install LHAPDF6, so I typed "n" when it asked if I want it downloaded. However, it proceeds to download lhapdf62, which I never heard of.

I tried to look it up what it is but the google seems to not know what it is either.

I have attached the error message below.

MG5_aMC>install pythia8
   You are installing 'pythia8', please cite ref(s): arXiv:1410.3012.
Downloading the HEPToolInstaller at:
   http://madgraph.physics.illinois.edu/Downloads/HEPToolsInstaller/HEPToolsInstaller_V151.tar.gz
LHAPDF was not found. Do you want to install LHPADF6? (recommended) y/n >[y] [60s to answer]
>n
You decided not to link the Pythia8 installation to LHAPDF. Beware that only built-in PDF sets can be used then.
Now installing Pythia8. Be patient...
Detected 'pythia8' missing dependency: 'lhapdf62'. Will install it now.
Fetching data with command:
  wget --no-check-certificate https://lhapdf.hepforge.org/downloads/LHAPDF-6.3.0.tar.gz
--2021-08-26 10:45:51-- https://lhapdf.hepforge.org/downloads/LHAPDF-6.3.0.tar.gz
Resolving lhapdf.hepforge.org... 129.234.186.186
Connecting to lhapdf.hepforge.org|129.234.186.186|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: /downloads?f=/LHAPDF-6.3.0.tar.gz [following]
--2021-08-26 10:45:54-- https://lhapdf.hepforge.org/downloads?f=/LHAPDF-6.3.0.tar.gz
Reusing existing connection to lhapdf.hepforge.org:443.
HTTP request sent, awaiting response... 302 Found
Location: /downloads?f=LHAPDF-6.3.0.tar.gz [following]
--2021-08-26 10:45:54-- https://lhapdf.hepforge.org/downloads?f=LHAPDF-6.3.0.tar.gz
Reusing existing connection to lhapdf.hepforge.org:443.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: “LHAPDF-6.3.0.tar.gz”

    [ <=> ] 770,744 376K/s in 2.0s

2021-08-26 10:45:56 (376 KB/s) - “LHAPDF-6.3.0.tar.gz” saved [770744]

Installing tool 'lhapdf62'...
    > Follow the installation progress by running the command below in a separate terminal)
    > tail -f /home/shin/MG5_aMC_v2_6_5/HEPTools/lhapdf62/lhapdf62_install.log
Traceback (most recent call last):
  File "/home/shin/MG5_aMC_v2_6_5/HEPTools/HEPToolsInstallers/HEPToolInstaller.py", line 1554, in <module>
    install_with_dependencies(target_tool,is_main_target=True)
  File "/home/shin/MG5_aMC_v2_6_5/HEPTools/HEPToolsInstallers/HEPToolInstaller.py", line 1504, in install_with_dependencies
    install_with_dependencies(dependency)
  File "/home/shin/MG5_aMC_v2_6_5/HEPTools/HEPToolsInstallers/HEPToolInstaller.py", line 1528, in install_with_dependencies
    exec('install_%s(tmp_path)' % target)
  File "<string>", line 1, in <module>
NameError: name 'install_lhapdf62' is not defined
Command "install pythia8" interrupted with error:
InvalidCmd : Installation of pythia8 failed.

I also looked at HEPToolInstaller.py file to see what it says and under _HEPTools, for pythia8, it has lhapdf62 as optional_dependencies. Yet under install_pythia8 function defined in that same file, it only has lhapdf6 and lhapdf5 as optional_dependencies. Therefore I assume this is may be a bug?

Because I can't even download pythia8, I cannot generate any simulations, so any help is greatly appreciated.

Thank you.

P.S.

just to be clear, I got my mg5 tarball using

wget https://cms-project-generators.web.cern.ch/cms-project-generators/MG5_aMC_v2.6.5.tar.gz

Question information

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

Hi,

Thanks for the report,

>
> wget https://cms-project-generators.web.cern.ch/cms-project-generators/MG5_aMC_v2.6.5.tar.gz
>

We only support two version right now:
- the long term stable version 2.9.x (latest 2.9.5) where only bug fixing will occur
- the latest stable version with the latest feature.
So please use one of those since 2.6.5 is outdated and likely contains much more bugs than our LTS.

> MG5_aMC>install pythia8

This should be fixed in one hour (10h40), but I had to drop support for (at least some 2.6.x).
so please an more recent version of MG5aMC before trying.

Cheers,

Olivier

> On 26 Aug 2021, at 04:01, Jihoon Shin <email address hidden> wrote:
>
> New question #698514 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/698514
>
> I have been having an issue with Pythia8 in one of my servers, so I installed mg5_aMC in a different server and I tried to download pythi8. It successfully downloaded hepmc and zlib.
>
> Here I was instructed by my instructor to not install LHAPDF6, so I typed "n" when it asked if I want it downloaded. However, it proceeds to download lhapdf62, which I never heard of.
>
> I tried to look it up what it is but the google seems to not know what it is either.
>
> I have attached the error message below.
>
> MG5_aMC>install pythia8
> You are installing 'pythia8', please cite ref(s): arXiv:1410.3012.
> Downloading the HEPToolInstaller at:
> http://madgraph.physics.illinois.edu/Downloads/HEPToolsInstaller/HEPToolsInstaller_V151.tar.gz
> LHAPDF was not found. Do you want to install LHPADF6? (recommended) y/n >[y] [60s to answer]
>> n
> You decided not to link the Pythia8 installation to LHAPDF. Beware that only built-in PDF sets can be used then.
> Now installing Pythia8. Be patient...
> Detected 'pythia8' missing dependency: 'lhapdf62'. Will install it now.
> Fetching data with command:
> wget --no-check-certificate https://lhapdf.hepforge.org/downloads/LHAPDF-6.3.0.tar.gz
> --2021-08-26 10:45:51-- https://lhapdf.hepforge.org/downloads/LHAPDF-6.3.0.tar.gz
> Resolving lhapdf.hepforge.org... 129.234.186.186
> Connecting to lhapdf.hepforge.org|129.234.186.186|:443... connected.
> HTTP request sent, awaiting response... 302 Found
> Location: /downloads?f=/LHAPDF-6.3.0.tar.gz [following]
> --2021-08-26 10:45:54-- https://lhapdf.hepforge.org/downloads?f=/LHAPDF-6.3.0.tar.gz
> Reusing existing connection to lhapdf.hepforge.org:443.
> HTTP request sent, awaiting response... 302 Found
> Location: /downloads?f=LHAPDF-6.3.0.tar.gz [following]
> --2021-08-26 10:45:54-- https://lhapdf.hepforge.org/downloads?f=LHAPDF-6.3.0.tar.gz
> Reusing existing connection to lhapdf.hepforge.org:443.
> HTTP request sent, awaiting response... 200 OK
> Length: unspecified [application/x-gzip]
> Saving to: “LHAPDF-6.3.0.tar.gz”
>
> [ <=> ] 770,744 376K/s in 2.0s
>
> 2021-08-26 10:45:56 (376 KB/s) - “LHAPDF-6.3.0.tar.gz” saved [770744]
>
> Installing tool 'lhapdf62'...
>> Follow the installation progress by running the command below in a separate terminal)
>> tail -f /home/shin/MG5_aMC_v2_6_5/HEPTools/lhapdf62/lhapdf62_install.log
> Traceback (most recent call last):
> File "/home/shin/MG5_aMC_v2_6_5/HEPTools/HEPToolsInstallers/HEPToolInstaller.py", line 1554, in <module>
> install_with_dependencies(target_tool,is_main_target=True)
> File "/home/shin/MG5_aMC_v2_6_5/HEPTools/HEPToolsInstallers/HEPToolInstaller.py", line 1504, in install_with_dependencies
> install_with_dependencies(dependency)
> File "/home/shin/MG5_aMC_v2_6_5/HEPTools/HEPToolsInstallers/HEPToolInstaller.py", line 1528, in install_with_dependencies
> exec('install_%s(tmp_path)' % target)
> File "<string>", line 1, in <module>
> NameError: name 'install_lhapdf62' is not defined
> Command "install pythia8" interrupted with error:
> InvalidCmd : Installation of pythia8 failed.
>
>
>
>
> I also looked at HEPToolInstaller.py file to see what it says and under _HEPTools, for pythia8, it has lhapdf62 as optional_dependencies. Yet under install_pythia8 function defined in that same file, it only has lhapdf6 and lhapdf5 as optional_dependencies. Therefore I assume this is may be a bug?
>
> Because I can't even download pythia8, I cannot generate any simulations, so any help is greatly appreciated.
>
> Thank you.
>
> P.S.
>
> just to be clear, I got my mg5 tarball using
>
> wget https://cms-project-generators.web.cern.ch/cms-project-generators/MG5_aMC_v2.6.5.tar.gz
>
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
Jihoon Shin (sjhsjs987) said :
#2

Thanks Olivier Mattelaer, that solved my question.