Try to run MG_aMC_v2.3.3 and MG_aMC_v2.6.0 with LHAPDF_v6.2.1

Asked by w-ding

I tried to run MG_aMC_v2.3.3 with LHAPDF_v6.2.1, I installed LHAPDF_v6.2.1,I also downloaded the pdf 247000:NNPDF23_lo_as_0130_qed, and modified the file input/mg5_configuration.txt to specify the path lhapdf = /home/wei/CalcHEP/PDF/bin/lhapdf-config, in the run_card :
lhapdf = pdlabel ! PDF set
247000 = lhaid ! if pdlabel=lhapdf, this is the lhapdf number
NNPDF23_lo_as_0130_qed = sys_pdf
in the proc_card.dat:
set lhapdf = /home/wei/CalcHEP/PDF/bin/lhapdf-config
import sm
generate p p > t t~
output -f
launch
And then ran as usual, but it failed:
generate_events run_01
Traceback (most recent call last):
  File "/home/wei/MadGraph/MG5_aMC_v2_3_3/madgraph/interface/extended_cmd.py", line 908, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/home/wei/MadGraph/MG5_aMC_v2_3_3/madgraph/interface/extended_cmd.py", line 897, in onecmd_orig
    return func(arg, **opt)
  File "/home/wei/MadGraph/MG5_aMC_v2_3_3/madgraph/interface/madevent_interface.py", line 1998, in do_generate_events
    postcmd=False)
  File "/home/wei/MadGraph/MG5_aMC_v2_3_3/madgraph/interface/extended_cmd.py", line 958, in exec_cmd
    stop = Cmd.onecmd_orig(current_interface, line, **opt)
  File "/home/wei/MadGraph/MG5_aMC_v2_3_3/madgraph/interface/extended_cmd.py", line 897, in onecmd_orig
    return func(arg, **opt)
  File "/home/wei/MadGraph/MG5_aMC_v2_3_3/madgraph/interface/madevent_interface.py", line 2655, in do_survey
    self.configure_directory()
  File "/home/wei/MadGraph/MG5_aMC_v2_3_3/madgraph/interface/madevent_interface.py", line 3844, in configure_directory
    self.link_lhapdf(pjoin(self.me_dir,'lib'))
  File "/home/wei/MadGraph/MG5_aMC_v2_3_3/madgraph/interface/common_run_interface.py", line 2061, in link_lhapdf
    lhapdf_version = self.get_lhapdf_version()
  File "/home/wei/MadGraph/MG5_aMC_v2_3_3/madgraph/interface/common_run_interface.py", line 2267, in get_lhapdf_version
    stdout = subprocess.PIPE).stdout.read().strip()
  File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Also I tried to run MG_aMC_v2.6.0 which I download it from lxplus with LHAPDF_v6.2.1, as previous process, it also failed :
generate_events run_01
Traceback (most recent call last):
  File "/home/wei/MadGraph/MG5_aMC_v2_6_0/madgraph/interface/extended_cmd.py", line 1438, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/home/wei/MadGraph/MG5_aMC_v2_6_0/madgraph/interface/extended_cmd.py", line 1392, in onecmd_orig
    return func(arg, **opt)
  File "/home/wei/MadGraph/MG5_aMC_v2_6_0/madgraph/interface/madevent_interface.py", line 2122, in do_generate_events
    postcmd=False)
  File "/home/wei/MadGraph/MG5_aMC_v2_6_0/madgraph/interface/extended_cmd.py", line 1465, in exec_cmd
    stop = Cmd.onecmd_orig(current_interface, line, **opt)
  File "/home/wei/MadGraph/MG5_aMC_v2_6_0/madgraph/interface/extended_cmd.py", line 1392, in onecmd_orig
    return func(arg, **opt)
  File "/home/wei/MadGraph/MG5_aMC_v2_6_0/madgraph/interface/madevent_interface.py", line 2915, in do_survey
    self.configure_directory()
  File "/home/wei/MadGraph/MG5_aMC_v2_6_0/madgraph/interface/madevent_interface.py", line 5245, in configure_directory
    self.link_lhapdf(pjoin(self.me_dir,'lib'))
  File "/home/wei/MadGraph/MG5_aMC_v2_6_0/madgraph/interface/common_run_interface.py", line 3695, in link_lhapdf
    lhapdf_version = self.get_lhapdf_version()
  File "/home/wei/MadGraph/MG5_aMC_v2_6_0/madgraph/interface/common_run_interface.py", line 3951, in get_lhapdf_version
    raise Exception, 'lhapdf executable (%s) is not found on your system. Please install it and/or indicate the path to the correct executable in input/mg5_configuration.txt' % self.options['lhapdf']
Exception: lhapdf executable (=) is not found on your system. Please install it and/or indicate the path to the correct executable in input/mg5_configuration.txt
I am sure that I have installed LHAPDF and downloaded the PDF file.

Question information

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

Hi,

You need to have at least 2.6.1 in order to have support of lhapdf 6.2

Cheers,

Olivier

> On 9 Jul 2018, at 20:37, w-ding <email address hidden> wrote:
>
> New question #670779 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/670779
>
> I tried to run MG_aMC_v2.3.3 with LHAPDF_v6.2.1, I installed LHAPDF_v6.2.1,I also downloaded the pdf 247000:NNPDF23_lo_as_0130_qed, and modified the file input/mg5_configuration.txt to specify the path lhapdf = /home/wei/CalcHEP/PDF/bin/lhapdf-config, in the run_card :
> lhapdf = pdlabel ! PDF set
> 247000 = lhaid ! if pdlabel=lhapdf, this is the lhapdf number
> NNPDF23_lo_as_0130_qed = sys_pdf
> in the proc_card.dat:
> set lhapdf = /home/wei/CalcHEP/PDF/bin/lhapdf-config
> import sm
> generate p p > t t~
> output -f
> launch
> And then ran as usual, but it failed:
> generate_events run_01
> Traceback (most recent call last):
> File "/home/wei/MadGraph/MG5_aMC_v2_3_3/madgraph/interface/extended_cmd.py", line 908, in onecmd
> return self.onecmd_orig(line, **opt)
> File "/home/wei/MadGraph/MG5_aMC_v2_3_3/madgraph/interface/extended_cmd.py", line 897, in onecmd_orig
> return func(arg, **opt)
> File "/home/wei/MadGraph/MG5_aMC_v2_3_3/madgraph/interface/madevent_interface.py", line 1998, in do_generate_events
> postcmd=False)
> File "/home/wei/MadGraph/MG5_aMC_v2_3_3/madgraph/interface/extended_cmd.py", line 958, in exec_cmd
> stop = Cmd.onecmd_orig(current_interface, line, **opt)
> File "/home/wei/MadGraph/MG5_aMC_v2_3_3/madgraph/interface/extended_cmd.py", line 897, in onecmd_orig
> return func(arg, **opt)
> File "/home/wei/MadGraph/MG5_aMC_v2_3_3/madgraph/interface/madevent_interface.py", line 2655, in do_survey
> self.configure_directory()
> File "/home/wei/MadGraph/MG5_aMC_v2_3_3/madgraph/interface/madevent_interface.py", line 3844, in configure_directory
> self.link_lhapdf(pjoin(self.me_dir,'lib'))
> File "/home/wei/MadGraph/MG5_aMC_v2_3_3/madgraph/interface/common_run_interface.py", line 2061, in link_lhapdf
> lhapdf_version = self.get_lhapdf_version()
> File "/home/wei/MadGraph/MG5_aMC_v2_3_3/madgraph/interface/common_run_interface.py", line 2267, in get_lhapdf_version
> stdout = subprocess.PIPE).stdout.read().strip()
> File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
> errread, errwrite)
> File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
> raise child_exception
> OSError: [Errno 2] No such file or directory
>
> Also I tried to run MG_aMC_v2.6.0 which I download it from lxplus with LHAPDF_v6.2.1, as previous process, it also failed :
> generate_events run_01
> Traceback (most recent call last):
> File "/home/wei/MadGraph/MG5_aMC_v2_6_0/madgraph/interface/extended_cmd.py", line 1438, in onecmd
> return self.onecmd_orig(line, **opt)
> File "/home/wei/MadGraph/MG5_aMC_v2_6_0/madgraph/interface/extended_cmd.py", line 1392, in onecmd_orig
> return func(arg, **opt)
> File "/home/wei/MadGraph/MG5_aMC_v2_6_0/madgraph/interface/madevent_interface.py", line 2122, in do_generate_events
> postcmd=False)
> File "/home/wei/MadGraph/MG5_aMC_v2_6_0/madgraph/interface/extended_cmd.py", line 1465, in exec_cmd
> stop = Cmd.onecmd_orig(current_interface, line, **opt)
> File "/home/wei/MadGraph/MG5_aMC_v2_6_0/madgraph/interface/extended_cmd.py", line 1392, in onecmd_orig
> return func(arg, **opt)
> File "/home/wei/MadGraph/MG5_aMC_v2_6_0/madgraph/interface/madevent_interface.py", line 2915, in do_survey
> self.configure_directory()
> File "/home/wei/MadGraph/MG5_aMC_v2_6_0/madgraph/interface/madevent_interface.py", line 5245, in configure_directory
> self.link_lhapdf(pjoin(self.me_dir,'lib'))
> File "/home/wei/MadGraph/MG5_aMC_v2_6_0/madgraph/interface/common_run_interface.py", line 3695, in link_lhapdf
> lhapdf_version = self.get_lhapdf_version()
> File "/home/wei/MadGraph/MG5_aMC_v2_6_0/madgraph/interface/common_run_interface.py", line 3951, in get_lhapdf_version
> raise Exception, 'lhapdf executable (%s) is not found on your system. Please install it and/or indicate the path to the correct executable in input/mg5_configuration.txt' % self.options['lhapdf']
> Exception: lhapdf executable (=) is not found on your system. Please install it and/or indicate the path to the correct executable in input/mg5_configuration.txt
> I am sure that I have installed LHAPDF and downloaded the PDF file.
>
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
w-ding (w-e-i-d-i) said :
#2

Thank you, Olivier,
Does LHAPDF_6.1.4 work ? I also tried LHAPDF_6.1.4 ,the error was the same.

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

Hi,

I do not know what the status is for that version, we were suggesting 6.1.6 for a very long period.
(if you do "install lhapdf" this is actually the version that you will install)

Now please try with the latest version of MG5aMC and if you still have problem,
please include the full debug file.

Cheers,

Olivier

> On 10 Jul 2018, at 04:12, w-ding <email address hidden> wrote:
>
> Question #670779 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/670779
>
> Status: Answered => Open
>
> w-ding is still having a problem:
> Thank you, Olivier,
> Does LHAPDF_6.1.4 work ? I also tried LHAPDF_6.1.4 ,the error was the same.
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Can you help with this problem?

Provide an answer of your own, or ask w-ding for more information if necessary.

To post a message you must log in.