CONFIGURATION: pdf with NLO executable

Asked by Guglielmo Coloretti

Dear all,

I am using the latest MadGraph release (on Linux machine) and installed independently LHAPDF and fastjet.

With LO generation, all is working well. At NLO, some time ago it was running well but then it suddenly stopped working, although I did not install or re-install anything new (as far as I can remember). Indeed, for instance, when I tried to compute:

generate p p > e- e+ [QCD]

it breaks with the following message:

******************************************************************************************************************************
Traceback (most recent call last):
  File "/home/bup/Desktop/MG5_aMC/scratch/bin/internal/extended_cmd.py", line 1546, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/home/bup/Desktop/MG5_aMC/scratch/bin/internal/extended_cmd.py", line 1495, in onecmd_orig
    return func(arg, **opt)
  File "/home/bup/Desktop/MG5_aMC/scratch/bin/internal/amcatnlo_run_interface.py", line 1768, in do_launch
    mode = self.ask_run_configuration(mode, options)
  File "/home/bup/Desktop/MG5_aMC/scratch/bin/internal/amcatnlo_run_interface.py", line 5719, in ask_run_configuration
    self.ask_edit_cards(cards, plot=False, first_cmd=first_cmd, switch=switch)
  File "/home/bup/Desktop/MG5_aMC/scratch/bin/internal/common_run_interface.py", line 1039, in ask_edit_cards
    self.ask_edit_card_static(cards, mode, plot, self.options['timeout'],
  File "/home/bup/Desktop/MG5_aMC/scratch/bin/internal/common_run_interface.py", line 1111, in ask_edit_card_static
    out = ask(question, '0', possible_answer, timeout=int(1.5*timeout),
  File "/home/bup/Desktop/MG5_aMC/scratch/bin/internal/extended_cmd.py", line 1151, in ask
    value = Cmd.timed_input(question, default, timeout=timeout,
  File "/home/bup/Desktop/MG5_aMC/scratch/bin/internal/extended_cmd.py", line 1762, in timed_input
    result = fct(question)
  File "/home/bup/Desktop/MG5_aMC/scratch/bin/internal/extended_cmd.py", line 2133, in __call__
    return self.cmdloop()
  File "/home/bup/Desktop/MG5_aMC/scratch/bin/internal/extended_cmd.py", line 2304, in cmdloop
    super(SmartQuestion,self).cmdloop(intro)
  File "/home/bup/Desktop/MG5_aMC/scratch/bin/internal/extended_cmd.py", line 178, in cmdloop
    stop = self.postcmd(stop, line)
  File "/home/bup/Desktop/MG5_aMC/scratch/bin/internal/common_run_interface.py", line 6619, in postcmd
    self.do_update('dependent', timer=20)
  File "/home/bup/Desktop/MG5_aMC/scratch/bin/internal/common_run_interface.py", line 6670, in do_update
    self.update_dependent(self.mother_interface, self.me_dir, self.param_card,
  File "/home/bup/Desktop/MG5_aMC/scratch/bin/internal/common_run_interface.py", line 6807, in update_dependent
    pdf = lhapdf.mkPDF(lhaid)
  File "lhapdf.pyx", line 875, in python.lhapdf.mkPDF
  File "lhapdf.pyx", line 835, in python.lhapdf.mkPDF_lhaid
RuntimeError: Info file not found for PDF set 'NNPDF23_nlo_as_0118_qed'
******************************************************************************************************************************

although the pdf set is present and working with the LO generation. I fear I have some problems linking LHAPDF with the NLO executable and I was wondering if there is a way to uninstall all dependencies and re-install them from scratch.

I thank you very much for your help!

Best regards,
Guglielmo Coloretti

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Solved by:
Guglielmo Coloretti
Solved:
Last query:
Last reply:
Revision history for this message
Sihyun Jeon (shjeon) said :
#1

Hello,

Try below

1. remove the lhapdf installation directory in <MG_PATH>/HEPTools

2. prompt madgraph shell (by doing "./bin/mg5_aMC")

3. install lhapdf again by doing "install lhapdf6"

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

Maybe one option is to comment the line
 File "/home/bup/Desktop/MG5_aMC/scratch/bin/internal/common_run_interface.py", line 6619, in postcmd
   self.do_update('dependent', timer=20)
Which is only doing sanity check of your param_card (and update value within that file for consistency).
Since this is the problematic part you should be able to comment it and go trough
(knowing that some input in your param_card might not be the one actually used --like alphas and MW--

Cheers,

Olivier

> On 1 Apr 2024, at 17:10, Guglielmo Coloretti <email address hidden> wrote:
>
> Question #710327 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/710327
>
> Description changed to:
> Dear all,
>
> I am using the latest MadGraph release (on Linux machine) and installed
> independently LHAPDF and fastjet.
>
> With LO generation, all is working well. At NLO, some time ago it was
> running well but then it suddenly stopped working, although I did not
> install or re-install anything new (as far as I can remember). Indeed,
> for instance, when I tried to compute:
>
> generate p p > e- e+ [QCD]
>
> it breaks with the following message:
>
> ******************************************************************************************************************************
> Traceback (most recent call last):
> File "/home/bup/Desktop/MG5_aMC/scratch/bin/internal/extended_cmd.py", line 1546, in onecmd
> return self.onecmd_orig(line, **opt)
> File "/home/bup/Desktop/MG5_aMC/scratch/bin/internal/extended_cmd.py", line 1495, in onecmd_orig
> return func(arg, **opt)
> File "/home/bup/Desktop/MG5_aMC/scratch/bin/internal/amcatnlo_run_interface.py", line 1768, in do_launch
> mode = self.ask_run_configuration(mode, options)
> File "/home/bup/Desktop/MG5_aMC/scratch/bin/internal/amcatnlo_run_interface.py", line 5719, in ask_run_configuration
> self.ask_edit_cards(cards, plot=False, first_cmd=first_cmd, switch=switch)
> File "/home/bup/Desktop/MG5_aMC/scratch/bin/internal/common_run_interface.py", line 1039, in ask_edit_cards
> self.ask_edit_card_static(cards, mode, plot, self.options['timeout'],
> File "/home/bup/Desktop/MG5_aMC/scratch/bin/internal/common_run_interface.py", line 1111, in ask_edit_card_static
> out = ask(question, '0', possible_answer, timeout=int(1.5*timeout),
> File "/home/bup/Desktop/MG5_aMC/scratch/bin/internal/extended_cmd.py", line 1151, in ask
> value = Cmd.timed_input(question, default, timeout=timeout,
> File "/home/bup/Desktop/MG5_aMC/scratch/bin/internal/extended_cmd.py", line 1762, in timed_input
> result = fct(question)
> File "/home/bup/Desktop/MG5_aMC/scratch/bin/internal/extended_cmd.py", line 2133, in __call__
> return self.cmdloop()
> File "/home/bup/Desktop/MG5_aMC/scratch/bin/internal/extended_cmd.py", line 2304, in cmdloop
> super(SmartQuestion,self).cmdloop(intro)
> File "/home/bup/Desktop/MG5_aMC/scratch/bin/internal/extended_cmd.py", line 178, in cmdloop
> stop = self.postcmd(stop, line)
> File "/home/bup/Desktop/MG5_aMC/scratch/bin/internal/common_run_interface.py", line 6619, in postcmd
> self.do_update('dependent', timer=20)
> File "/home/bup/Desktop/MG5_aMC/scratch/bin/internal/common_run_interface.py", line 6670, in do_update
> self.update_dependent(self.mother_interface, self.me_dir, self.param_card,
> File "/home/bup/Desktop/MG5_aMC/scratch/bin/internal/common_run_interface.py", line 6807, in update_dependent
> pdf = lhapdf.mkPDF(lhaid)
> File "lhapdf.pyx", line 875, in python.lhapdf.mkPDF
> File "lhapdf.pyx", line 835, in python.lhapdf.mkPDF_lhaid
> RuntimeError: Info file not found for PDF set 'NNPDF23_nlo_as_0118_qed'
> ******************************************************************************************************************************
>
> although the pdf set is present and working with the LO generation. I
> fear I have some problems linking LHAPDF with the NLO executable and I
> was wondering if there is a way to uninstall all dependencies and re-
> install them from scratch.
>
> I thank you very much for your help!
>
> Best regards,
> Guglielmo Coloretti
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
Guglielmo Coloretti (guglielmocoloretti) said (last edit ):
#3

Dear all,

After a clean re-installation of lhapdf6 through MadGraph, it looks like it is working now!

I have some problems though running ttZ production though. I guess it is better if I open a new thread.

Thank you very much!

Best,
Guglielmo

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

Hi,

I also fail to link lhapdf to python those days... So not sure I can really help you on that.
I actually even have added the posibility to remove the python linking when installing lhpadf if it crash at the installation when installing it. So it might also be your issue.

Can you check if you can do
import lhapdf
within a python shell.

If not nothing that I can do.

Cheers,

Oliver

> On 3 Apr 2024, at 19:15, Guglielmo Coloretti <email address hidden> wrote:
>
> Question #710327 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/710327
>
> Status: Answered => Open
>
> Guglielmo Coloretti is still having a problem:
> Dearl all,
>
> After a clean re-installation of lhapdf6 through MadGraph, now it is
> complaining with the usual:
>
> Failed to access python version of LHAPDF: If the python interface to
> LHAPDF is available on your system, try adding its location to the
> PYTHONPATH environment variable and theLHAPDF library location to
> LD_LIBRARY_PATH (linux) or DYLD_LIBRARY_PATH (mac os x).The required
> LD_LIBRARY_PATH is
> /home/workstation/Desktop/MG5_aMC/HEPTools/lhapdf6_py3/lib
>
>
> Although I exported the path correctly in my .bashrc file.
>
> Any ideas?
>
> Thank you very much!
>
> Best,
> Guglielmo
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
Guglielmo Coloretti (guglielmocoloretti) said :
#5

Dear Oliver,

It actually worked (not sure why though). I removed the export path from the .bashrc file, re-install lhapd6 and pythia8 interface (in this order) and then exported the path of LD_LIBRARY and PYTHON.

Thank you very much and always for all your help!

Best,
Guglielmo