Missing key 'pjfry' in reweighting at NLO

Asked by Baptiste Ravina on 2020-09-17


I'm trying to reweight simple ttbar production at NLO in v2.7.2, using various EFT coefficients from the SMEFT@NLO model. The generation works fine, but the reweighting step fails with

reweight /Users/bravina/TempMG5/MG5_aMC_v2_7_2/ttbarSMEFT/Events/run_05/events.lhe.gz_0.lhe -from_cards --multicore=create
Traceback (most recent call last):
  File "/Users/bravina/TempMG5/MG5_aMC_v2_7_2/ttbarSMEFT/bin/internal/extended_cmd.py", line 1515, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/Users/bravina/TempMG5/MG5_aMC_v2_7_2/ttbarSMEFT/bin/internal/extended_cmd.py", line 1464, in onecmd_orig
    return func(arg, **opt)
  File "/Users/bravina/TempMG5/MG5_aMC_v2_7_2/ttbarSMEFT/bin/internal/common_run_interface.py", line 2149, in do_reweight
  File "/Users/bravina/TempMG5/MG5_aMC_v2_7_2/madgraph/interface/extended_cmd.py", line 1661, in import_command_file
    self.exec_cmd(line, precmd=True)
  File "/Users/bravina/TempMG5/MG5_aMC_v2_7_2/madgraph/interface/extended_cmd.py", line 1544, in exec_cmd
    stop = Cmd.onecmd_orig(current_interface, line, **opt)
  File "/Users/bravina/TempMG5/MG5_aMC_v2_7_2/madgraph/interface/extended_cmd.py", line 1464, in onecmd_orig
    return func(arg, **opt)
  File "/Users/bravina/TempMG5/MG5_aMC_v2_7_2/madgraph/various/misc.py", line 100, in f_with_no_logger
    out = f(self, *args, **opt)
  File "/Users/bravina/TempMG5/MG5_aMC_v2_7_2/madgraph/interface/reweight_interface.py", line 497, in do_launch
  File "/Users/bravina/TempMG5/MG5_aMC_v2_7_2/madgraph/various/misc.py", line 100, in f_with_no_logger
    out = f(self, *args, **opt)
  File "/Users/bravina/TempMG5/MG5_aMC_v2_7_2/madgraph/interface/reweight_interface.py", line 1636, in create_standalone_directory
    self.create_standalone_virt_directory(data, second)
  File "/Users/bravina/TempMG5/MG5_aMC_v2_7_2/madgraph/various/misc.py", line 100, in f_with_no_logger
    out = f(self, *args, **opt)
  File "/Users/bravina/TempMG5/MG5_aMC_v2_7_2/madgraph/interface/reweight_interface.py", line 1453, in create_standalone_virt_directory
    if mgcmd.options['golem'] or mgcmd.options['pjfry']:
KeyError: 'pjfry'
Value of current Options:
              text_editor : None
              web_browser : None
        cluster_temp_path : None
                  timeout : 60
       cluster_local_path : None
            cluster_queue : None
         madanalysis_path : None
                   lhapdf : lhapdf-config
             cluster_size : 100
           cluster_memory : None
    cluster_status_update : (600, 30)
             cluster_time : None
            f2py_compiler : None
                    ninja : /Users/bravina/TempMG5/MG5_aMC_v2_7_2/HEPTools/lib
               hepmc_path : None
mg5amc_py8_interface_path : /Users/bravina/TempMG5/MG5_aMC_v2_7_2/HEPTools/MG5aMC_PY8_interface
             pythia8_path : /Users/bravina/TempMG5/MG5_aMC_v2_7_2/HEPTools/pythia8
                hwpp_path : None
   automatic_html_opening : True
       cluster_retry_wait : 300
             stdout_level : None
          pythia-pgs_path : None
                 mg5_path : /Users/bravina/TempMG5/MG5_aMC_v2_7_2
                  td_path : None
             delphes_path : /Users/bravina/TempMG5/MG5_aMC_v2_7_2/Delphes
              thepeg_path : None
             cluster_type : condor
        madanalysis5_path : /Users/bravina/TempMG5/MG5_aMC_v2_7_2/HEPTools/madanalysis5/madanalysis5
      exrootanalysis_path : None
         fortran_compiler : None
                  nb_core : 4
                  collier : /Users/bravina/TempMG5/MG5_aMC_v2_7_2/HEPTools/collier
              auto_update : 7
         cluster_nb_retry : 1
               eps_viewer : None
             syscalc_path : None
                    golem : None
             cpp_compiler : None
      notification_center : True
                 run_mode : 2

Question information

English Edit question
MadGraph5_aMC@NLO Edit question
No assignee Edit question
Solved by:
Baptiste Ravina
Last query:
Last reply:

This question was reopened

This has been fixed already.
Please update your version of MG5aMC



Baptiste Ravina (bravina) said : #2

Thanks Olivier! I've moved to v2.8.0 with python 2.7, but I now encounter a different error

Unable to download /cvmfs/sft.cern.ch/lcg/external/lhapdfsets/current/NNPDF23_nlo_as_0119_qed.tar.gz
NNPDF23_nlo_as_0119_qed.tar.gz: 27.2 MB [1427058000.0%]
compile OLP rw_mevirt
Command "reweight /Users/bravina/TempMG5/MG5_aMC_v2_8_0/ttbarSMEFT/Events/run_04/events.lhe.gz_0.lhe -from_cards --multicore=create" interrupted with error:
MadGraph5Error : A compilation Error occurs when trying to compile /Users/bravina/TempMG5/MG5_aMC_v2_8_0/ttbarSMEFT/rw_me/SubProcesses.
 The compilation fails with the following output message:
     f2py --f77exec=gfortran -L../lib/ -ldhelas -lmodel -c P1_bbx_ttx/matrix.f -m P1_bbx_ttx2py
     make: f2py: No such file or directory
     f2py --f77exec=gfortran -L../lib/ -ldhelas -lmodel -c P1_ccx_ttx/matrix.f -m P1_ccx_ttx2py
     make: f2py: No such file or directory
     f2py --f77exec=gfortran -L../lib/ -ldhelas -lmodel -c P1_ddx_ttx/matrix.f -m P1_ddx_ttx2py
     make: f2py: No such file or directory
     f2py --f77exec=gfortran -L../lib/ -ldhelas -lmodel -c P1_gg_ttx/matrix.f -m P1_gg_ttx2py
     make: f2py: No such file or directory
     make: *** [P1_gg_ttx2py.so] Error 1
     make: *** Waiting for unfinished jobs....
     make: *** [P1_ccx_ttx2py.so] Error 1
     make: *** [P1_bbx_ttx2py.so] Error 1
     make: *** [P1_ddx_ttx2py.so] Error 1

Is the statement about not being able to download the PDF set related to the error? It shows up fine in HEPTools/lhapdf6/share/LHAPDF/NNPDF23_nlo_as_0119_qed/

This means that your f2py compiler is not present in your PATH and is not define in input/mg5_configuration.txt
This is a code install with numpy which is needed for the reweighting.

Note that in 2.8.0
you can can specify in input/mg5_configuration.txt
f2py_py2 and f2py_py3
which allow you to specify the path for either the one compatible with python2 or the one compatible with python3.
(not that 2.8.0 runs by default python3 even if your default python is python2)



Baptiste Ravina (bravina) said : #4

Hi Olivier,

I found this information in an old ticket too, sorry for the noise :)
Set "f2py_compiler_py2 = /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/bin/f2py"
and everything seems to run smoothly now.