AttributeError

Asked by Ankur Panchal

When I am trying to generate and launch mu- mu+ > t2 t2~ in MSSM_SLHA2 model, I get the following error

Command "generate_events run_01" interrupted in sub-command:
"set nlo_mixed_expansion True" with error:
AttributeError : 'ModelReader' object has no attribute 'path'

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
Ankur Panchal (ankurpanchal) said :
#1

This error also asks me attach this file 'MG5_debug' in my report.
Here's its content:

#************************************************************
#* MadGraph5_aMC@NLO *
#* *
#* * * *
#* * * * * *
#* * * * * 5 * * * * *
#* * * * * *
#* * * *
#* *
#* *
#* VERSION 3.5.1 2023-07-11 *
#* *
#* 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 low_mem_multicore_nlo_generation False
set complex_mass_scheme False
set include_lepton_initiated_processes False
set gauge unitary
set loop_optimized_output True
set loop_color_flows False
set max_npoint_for_channel 0
set default_unset_couplings 99
set max_t_for_channel 99
set zerowidth_tchannel True
set nlo_mixed_expansion True
Traceback (most recent call last):
  File "/home/ankur/Desktop/MG5_aMC_v3_5_0/madgraph/interface/extended_cmd.py", line 1543, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/home/ankur/Desktop/MG5_aMC_v3_5_0/madgraph/interface/extended_cmd.py", line 1492, in onecmd_orig
    return func(arg, **opt)
  File "/home/ankur/Desktop/MG5_aMC_v3_5_0/madgraph/interface/madevent_interface.py", line 2395, in do_generate_events
    switch_mode = self.ask_run_configuration(mode, args)
  File "/home/ankur/Desktop/MG5_aMC_v3_5_0/madgraph/interface/madevent_interface.py", line 6441, in ask_run_configuration
    self.ask_edit_cards(cards, plot=False, first_cmd=first_cmd)
  File "/home/ankur/Desktop/MG5_aMC_v3_5_0/madgraph/interface/common_run_interface.py", line 1039, in ask_edit_cards
    self.ask_edit_card_static(cards, mode, plot, self.options['timeout'],
  File "/home/ankur/Desktop/MG5_aMC_v3_5_0/madgraph/interface/common_run_interface.py", line 1111, in ask_edit_card_static
    out = ask(question, '0', possible_answer, timeout=int(1.5*timeout),
  File "/home/ankur/Desktop/MG5_aMC_v3_5_0/madgraph/interface/extended_cmd.py", line 1134, in ask
    question_instance.postcmd(answer, line)
  File "/home/ankur/Desktop/MG5_aMC_v3_5_0/madgraph/interface/common_run_interface.py", line 6584, in postcmd
    self.do_update('dependent', timer=20)
  File "/home/ankur/Desktop/MG5_aMC_v3_5_0/madgraph/interface/common_run_interface.py", line 6630, in do_update
    self.do_compute_widths('')
  File "/home/ankur/Desktop/MG5_aMC_v3_5_0/madgraph/interface/common_run_interface.py", line 7069, in do_compute_widths
    out = self.mother_interface.do_compute_widths(line)
  File "/home/ankur/Desktop/MG5_aMC_v3_5_0/madgraph/interface/common_run_interface.py", line 2379, in do_compute_widths
    out = cmd.exec_cmd(line, model=opts['model'])
  File "/home/ankur/Desktop/MG5_aMC_v3_5_0/madgraph/interface/extended_cmd.py", line 1572, in exec_cmd
    stop = Cmd.onecmd_orig(current_interface, line, **opt)
  File "/home/ankur/Desktop/MG5_aMC_v3_5_0/madgraph/interface/extended_cmd.py", line 1492, in onecmd_orig
    return func(arg, **opt)
  File "/home/ankur/Desktop/MG5_aMC_v3_5_0/madgraph/interface/master_interface.py", line 346, in do_compute_widths
    return self.cmd.do_compute_widths(self, *args, **opts)
  File "/home/ankur/Desktop/MG5_aMC_v3_5_0/madgraph/interface/madgraph_interface.py", line 8687, in do_compute_widths
    particles, opts = self.check_compute_widths(self.split_arg(line))
  File "/home/ankur/Desktop/MG5_aMC_v3_5_0/madgraph/interface/master_interface.py", line 340, in check_compute_widths
    return self.cmd.check_compute_widths(self, *args, **opts)
  File "/home/ankur/Desktop/MG5_aMC_v3_5_0/madgraph/interface/madgraph_interface.py", line 1760, in check_compute_widths
    elif os.path.exists(pjoin(self._curr_model.path, options['path'])):
AttributeError: 'ModelReader' object has no attribute 'path'
                          MadGraph5_aMC@NLO Options
                          ----------------
                auto_update : 7 (user set)
        complex_mass_scheme : False
    default_unset_couplings : 99 (user set)
                      gauge : unitary
         group_subprocesses : Auto
  ignore_six_quark_processes : False
  include_lepton_initiated_processes : False
           loop_color_flows : False
      loop_optimized_output : True
  low_mem_multicore_nlo_generation : False
     max_npoint_for_channel : 0 (user set)
          max_t_for_channel : 99 (user set)
        nlo_mixed_expansion : True
               stdout_level : 20 (user set)
         zerowidth_tchannel : True

                         MadEvent Options
                          ----------------
     automatic_html_opening : False (user set)
                    nb_core : 12 (user set)
        notification_center : True
                   run_mode : 2

                      Configuration Options
                      ---------------------
                        OLP : MadLoop
   acknowledged_v3.1_syntax : False
         auto_convert_model : False
         cluster_local_path : None
           cluster_nb_retry : 1
              cluster_queue : None (user set)
         cluster_retry_wait : 300
               cluster_size : 100
      cluster_status_update : (600, 30)
          cluster_temp_path : None
               cluster_type : condor
                    collier : ./HEPTools/lib
                contur_path : None (user set)
               cpp_compiler : None
             crash_on_error : False
               delphes_path : None (user set)
                      eMELA : None (user set)
                 eps_viewer : None
        exrootanalysis_path : None (user set)
              f2py_compiler : None
          f2py_compiler_py2 : None
          f2py_compiler_py3 : None
                    fastjet : None (user set)
           fortran_compiler : None
                      golem : None (user set)
                 hepmc_path : None (user set)
                  hwpp_path : None (user set)
                     lhapdf : lhapdf-config
                 lhapdf_py2 : None
                 lhapdf_py3 : None
          madanalysis5_path : None (user set)
           madanalysis_path : None (user set)
  mg5amc_py8_interface_path : None (user set)
                      ninja : ./HEPTools/lib
        output_dependencies : external
                   pineappl : pineappl
            pythia-pgs_path : None (user set)
               pythia8_path : None (user set)
                 rivet_path : None (user set)
                    samurai : None
               syscalc_path : None (user set)
                    td_path : None (user set)
                text_editor : None
                thepeg_path : None (user set)
                    timeout : 60
                web_browser : None
                  yoda_path : None (user set)

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

If I'm running the following command:
import model MSSM_SLHA2
generate mu- mu+ > t2 t2~
output
launch
set decay all auto

Then I do have the automatic computation of the width working (contrary to your report).
To be complete the rest of the computation returns 0 cross-section, I did not investigate it but this is likely the fact that the default value for the mass of t2 is larger than the default beam energy for a muon.

But since it works if you put all particle to auto (in the default benchmark) could you indicate which benchmark you are using and which particle are set to auto width?

Cheers,

Olivier

Can you help with this problem?

Provide an answer of your own, or ask Ankur Panchal for more information if necessary.

To post a message you must log in.