KeyError : 'samurai'

Asked by Ilirjan Margjeka on 2018-07-10

When I request the output of the the event I'd like to generate, I get this error:
KeyError : 'samurai'
 What does that mean?

Question information

Language:
English Edit question
Status:
Answered
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Last query:
2018-07-10
Last reply:
2018-07-12

Can you copy paste, the debug file.
Like this I have no idea.

Cheers,

Olivier

> On 10 Jul 2018, at 15:16, Ilirjan Margjeka <email address hidden> wrote:
>
> New question #670794 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/670794
>
> When I request the output of the the event I'd like to generate, I get this error:
> KeyError : 'samurai'
> What does that mean?
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Ilirjan Margjeka (ilir92) said : #2

#************************************************************
#* MadGraph5_aMC@NLO *
#* *
#* * * *
#* * * * * *
#* * * * * 5 * * * * *
#* * * * * *
#* * * *
#* *
#* *
#* VERSION 2.3.3 2015-10-25 *
#* *
#* The MadGraph5_aMC@NLO Development Team - Find us at *
#* https://server06.fynu.ucl.ac.be/projects/madgraph *
#* *
#************************************************************
#* *
#* Command File for MadGraph5_aMC@NLO *
#* *
#* run as ./bin/mg5_aMC filename *
#* *
#************************************************************
set group_subprocesses Auto
set ignore_six_quark_processes False
set loop_color_flows False
set gauge unitary
set complex_mass_scheme False
set max_npoint_for_channel 0
import model sm
define p = g u c d s u~ c~ d~ s~
define j = g u c d s u~ c~ d~ s~
define l+ = e+ mu+
define l- = e- mu-
define vl = ve vm vt
define vl~ = ve~ vm~ vt~
import model BSM_gg_hh
generate p p > h h
output shprese1
Traceback (most recent call last):
  File "/lustrehome/imargjek/mgbasedir/madgraph/interface/extended_cmd.py", line 908, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/lustrehome/imargjek/mgbasedir/madgraph/interface/extended_cmd.py", line 897, in onecmd_orig
    return func(arg, **opt)
  File "/lustrehome/imargjek/mgbasedir/madgraph/interface/master_interface.py", line 284, in do_output
    self.cmd.do_output(self, line, *args, **opts)
  File "/lustrehome/imargjek/mgbasedir/madgraph/interface/madgraph_interface.py", line 6666, in do_output
    group_subprocesses=group_processes)
  File "/lustrehome/imargjek/mgbasedir/madgraph/iolibs/export_v4.py", line 6833, in ExportV4Factory
    'samurai_dir':cmd.options['samurai'],
KeyError: 'samurai'
                          MadGraph5_aMC@NLO Options
                          ----------------
        complex_mass_scheme : False
                      gauge : unitary
         group_subprocesses : Auto
  ignore_six_quark_processes : False
           loop_color_flows : False
      loop_optimized_output : True
     max_npoint_for_channel : 0
               stdout_level : 20 (user set)

                         MadEvent Options
                          ----------------
     automatic_html_opening : False (user set)
                    nb_core : None
        notification_center : True
                   run_mode : 1 (user set)

                      Configuration Options
                      ---------------------
                        OLP : MadLoop
                    amcfast : amcfast-config
                   applgrid : applgrid-config
                auto_update : 0 (user set)
         cluster_local_path : /cvmfs/cp3.uclouvain.be/madgraph/
           cluster_nb_retry : 3 (user set)
              cluster_queue : 8nh (user set)
         cluster_retry_wait : 300
               cluster_size : 100
      cluster_status_update : (60, 30) (user set)
          cluster_temp_path : None
               cluster_type : lsf (user set)
               cpp_compiler : None
               delphes_path : ./Delphes
                 eps_viewer : None
        exrootanalysis_path : ./ExRootAnalysis
              f2py_compiler : None
                    fastjet : None (user set)
           fortran_compiler : None
                      golem : None (user set)
                 hepmc_path : None (user set)
                  hwpp_path : None (user set)
                     lhapdf : /cvmfs/cms.cern.ch/slc6_amd64_gcc481/external/lhapdf/6.1.5-ddibom2/share/LHAPDF/../../bin/lhapdf-config (user set)
           madanalysis_path : ./MadAnalysis
        output_dependencies : external
                      pjfry : None (user set)
            pythia-pgs_path : ./pythia-pgs
               pythia8_path : None (user set)
               syscalc_path : ./SysCalc
                    td_path : ./td
                text_editor : None
                thepeg_path : None (user set)
                    timeout : 60
                web_browser : None

Hi,

We do not provide support for that version of MG5aMC anymore (this is a 3 year old version).
What you can try is to add the line
samurai = None
in your file input/mg5_configuration.txt
But I have no idea if it will solve your problem or not.

If that does not help, then my advise would be to update to the latest version of the code.
If it will still occur (unlikely) then please report here back.

Cheers,

Olivier

> On 10 Jul 2018, at 15:27, Ilirjan Margjeka <email address hidden> wrote:
>
> Question #670794 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/670794
>
> Ilirjan Margjeka posted a new comment:
> #************************************************************
> #* MadGraph5_aMC@NLO *
> #* *
> #* * * *
> #* * * * * *
> #* * * * * 5 * * * * *
> #* * * * * *
> #* * * *
> #* *
> #* *
> #* VERSION 2.3.3 2015-10-25 *
> #* *
> #* The MadGraph5_aMC@NLO Development Team - Find us at *
> #* https://server06.fynu.ucl.ac.be/projects/madgraph *
> #* *
> #************************************************************
> #* *
> #* Command File for MadGraph5_aMC@NLO *
> #* *
> #* run as ./bin/mg5_aMC filename *
> #* *
> #************************************************************
> set group_subprocesses Auto
> set ignore_six_quark_processes False
> set loop_color_flows False
> set gauge unitary
> set complex_mass_scheme False
> set max_npoint_for_channel 0
> import model sm
> define p = g u c d s u~ c~ d~ s~
> define j = g u c d s u~ c~ d~ s~
> define l+ = e+ mu+
> define l- = e- mu-
> define vl = ve vm vt
> define vl~ = ve~ vm~ vt~
> import model BSM_gg_hh
> generate p p > h h
> output shprese1
> Traceback (most recent call last):
> File "/lustrehome/imargjek/mgbasedir/madgraph/interface/extended_cmd.py", line 908, in onecmd
> return self.onecmd_orig(line, **opt)
> File "/lustrehome/imargjek/mgbasedir/madgraph/interface/extended_cmd.py", line 897, in onecmd_orig
> return func(arg, **opt)
> File "/lustrehome/imargjek/mgbasedir/madgraph/interface/master_interface.py", line 284, in do_output
> self.cmd.do_output(self, line, *args, **opts)
> File "/lustrehome/imargjek/mgbasedir/madgraph/interface/madgraph_interface.py", line 6666, in do_output
> group_subprocesses=group_processes)
> File "/lustrehome/imargjek/mgbasedir/madgraph/iolibs/export_v4.py", line 6833, in ExportV4Factory
> 'samurai_dir':cmd.options['samurai'],
> KeyError: 'samurai'
> MadGraph5_aMC@NLO Options
> ----------------
> complex_mass_scheme : False
> gauge : unitary
> group_subprocesses : Auto
> ignore_six_quark_processes : False
> loop_color_flows : False
> loop_optimized_output : True
> max_npoint_for_channel : 0
> stdout_level : 20 (user set)
>
> MadEvent Options
> ----------------
> automatic_html_opening : False (user set)
> nb_core : None
> notification_center : True
> run_mode : 1 (user set)
>
> Configuration Options
> ---------------------
> OLP : MadLoop
> amcfast : amcfast-config
> applgrid : applgrid-config
> auto_update : 0 (user set)
> cluster_local_path : /cvmfs/cp3.uclouvain.be/madgraph/
> cluster_nb_retry : 3 (user set)
> cluster_queue : 8nh (user set)
> cluster_retry_wait : 300
> cluster_size : 100
> cluster_status_update : (60, 30) (user set)
> cluster_temp_path : None
> cluster_type : lsf (user set)
> cpp_compiler : None
> delphes_path : ./Delphes
> eps_viewer : None
> exrootanalysis_path : ./ExRootAnalysis
> f2py_compiler : None
> fastjet : None (user set)
> fortran_compiler : None
> golem : None (user set)
> hepmc_path : None (user set)
> hwpp_path : None (user set)
> lhapdf : /cvmfs/cms.cern.ch/slc6_amd64_gcc481/external/lhapdf/6.1.5-ddibom2/share/LHAPDF/../../bin/lhapdf-config (user set)
> madanalysis_path : ./MadAnalysis
> output_dependencies : external
> pjfry : None (user set)
> pythia-pgs_path : ./pythia-pgs
> pythia8_path : None (user set)
> syscalc_path : ./SysCalc
> td_path : ./td
> text_editor : None
> thepeg_path : None (user set)
> timeout : 60
> web_browser : None
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Ilirjan Margjeka (ilir92) said : #4

How can I update inside a server the latest release of MadGraph?
Thank you

Ilirjan Margjeka (ilir92) said : #5

P.s.: I am using ubuntu 18.04

What do you mean by server?
if you install the code via bazaar (which would be the correct way if this is really a server), then you just have to do
bzr pull
to have it up-to-date.
Otherwise, for such huge version difference, a clean install is the only method.

Cheers,

Olivier

Ilirjan Margjeka (ilir92) said : #7

Dear Olivier,

I do get the respective model (BSM_gg_hh) from this link, which is quite important for me. I tried to run other events generations with different models like 2HDM or just sm and it works perfectly. Only with this model I am getting errors. Is there any compatibility problem?

https://cms-project-generators.web.cern.ch/cms-project-generators/

Thx

Cheers!

Did you mix thread?

Olivier

Ilirjan Margjeka (ilir92) said : #9

No, I didnt .
I mean, if you try by yourself t to download that model (BSM_gg_hh) and to generate p p > h h, tell if works to and if not, do you get the same error like the others above?

thx

cheers

Hi,

Indeed this model has currently some issue: see: https://answers.launchpad.net/mg5amcnlo/+question/670817
So indeed it does not work and no I do not reproduce the 'samurai' error with that.

Now this bug report is specific to 2.6.3. The above patch does not make any sense in older version.

Cheers,

Olivier

> On 12 Jul 2018, at 11:32, Ilirjan Margjeka <email address hidden> wrote:
>
> Question #670794 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/670794
>
> Ilirjan Margjeka posted a new comment:
> No, I didnt .
> I mean, if you try by yourself t to download that model (BSM_gg_hh) and to generate p p > h h, tell if works to and if not, do you get the same error like the others above?
>
> thx
>
> cheers
>
> --
> 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 Ilirjan Margjeka for more information if necessary.

To post a message you must log in.