Comment 1 for bug 1768538

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) wrote : Re: [Bug 1768538] [NEW] ImportError : No module named allmatrix2py

Thanks for the report,

I will double check to see if I can reproduce this issue locally (it will probably be not before Monday).
I might have more chance of success if you tell me,
1) your model
2) the process that you are using
3) which re-weighing you try to perform
4) which operating system you are using (and if not standard which version of python, numpy and gcc you are using)

Now the issue is related to the reweighting functionality.

That part of the code use a special method to evaluate the matrix-element since it use a python binding of a fortran code. (The reason is that such code is IO/parsing intensive and this is a nightmare to do in fortran but that the matrix-element needs to be in fortran for speed reason)

Looks like that such link fails to be created in your case.

Cheers,

Olivier

> On 2 May 2018, at 15:31, ComplicatedPhenomenon <email address hidden> wrote:
>
> Public bug reported:
>
>
> Hi, I'm new to these tools, actually I even don't know the effect caused by this error.
> ```
> generate_events run_04
> Traceback (most recent call last):
> File "/home/wm/MG5_aMC_v2_6_2/madgraph/interface/extended_cmd.py", line 1501, in onecmd
> return self.onecmd_orig(line, **opt)
> File "/home/wm/MG5_aMC_v2_6_2/madgraph/interface/extended_cmd.py", line 1450, in onecmd_orig
> return func(arg, **opt)
> File "/home/wm/MG5_aMC_v2_6_2/madgraph/interface/madevent_interface.py", line 2467, in do_generate_events
> self.run_generate_events(switch_mode, args)
> File "/home/wm/MG5_aMC_v2_6_2/madgraph/interface/common_run_interface.py", line 6685, in new_fct
> original_fct(obj, *args, **opts)
> File "/home/wm/MG5_aMC_v2_6_2/madgraph/interface/madevent_interface.py", line 2559, in run_generate_events
> self.exec_cmd('reweight -from_cards', postcmd=False)
> File "/home/wm/MG5_aMC_v2_6_2/madgraph/interface/extended_cmd.py", line 1528, in exec_cmd
> stop = Cmd.onecmd_orig(current_interface, line, **opt)
> File "/home/wm/MG5_aMC_v2_6_2/madgraph/interface/extended_cmd.py", line 1450, in onecmd_orig
> return func(arg, **opt)
> File "/home/wm/MG5_aMC_v2_6_2/madgraph/interface/common_run_interface.py", line 2138, in do_reweight
> reweight_cmd.import_command_file(path)
> File "/home/wm/MG5_aMC_v2_6_2/madgraph/interface/extended_cmd.py", line 1643, in import_command_file
> self.exec_cmd(line, precmd=True)
> File "/home/wm/MG5_aMC_v2_6_2/madgraph/interface/extended_cmd.py", line 1528, in exec_cmd
> stop = Cmd.onecmd_orig(current_interface, line, **opt)
> File "/home/wm/MG5_aMC_v2_6_2/madgraph/interface/extended_cmd.py", line 1450, in onecmd_orig
> return func(arg, **opt)
> File "/home/wm/MG5_aMC_v2_6_2/madgraph/various/misc.py", line 100, in f_with_no_logger
> out = f(self, *args, **opt)
> File "/home/wm/MG5_aMC_v2_6_2/madgraph/interface/reweight_interface.py", line 487, in do_launch
> self.load_module()
> File "/home/wm/MG5_aMC_v2_6_2/madgraph/interface/reweight_interface.py", line 1726, in load_module
> mymod = __import__(mod_name, globals(), locals(), [],-1)
> ImportError: No module named allmatrix2py
> ```
>
> ** Affects: mg5amcnlo
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are subscribed to
> MadGraph5_aMC@NLO.
> https://bugs.launchpad.net/bugs/1768538
>
> Title:
> ImportError : No module named allmatrix2py
>
> Status in MadGraph5_aMC@NLO:
> New
>
> Bug description:
>
> Hi, I'm new to these tools, actually I even don't know the effect caused by this error.
> ```
> generate_events run_04
> Traceback (most recent call last):
> File "/home/wm/MG5_aMC_v2_6_2/madgraph/interface/extended_cmd.py", line 1501, in onecmd
> return self.onecmd_orig(line, **opt)
> File "/home/wm/MG5_aMC_v2_6_2/madgraph/interface/extended_cmd.py", line 1450, in onecmd_orig
> return func(arg, **opt)
> File "/home/wm/MG5_aMC_v2_6_2/madgraph/interface/madevent_interface.py", line 2467, in do_generate_events
> self.run_generate_events(switch_mode, args)
> File "/home/wm/MG5_aMC_v2_6_2/madgraph/interface/common_run_interface.py", line 6685, in new_fct
> original_fct(obj, *args, **opts)
> File "/home/wm/MG5_aMC_v2_6_2/madgraph/interface/madevent_interface.py", line 2559, in run_generate_events
> self.exec_cmd('reweight -from_cards', postcmd=False)
> File "/home/wm/MG5_aMC_v2_6_2/madgraph/interface/extended_cmd.py", line 1528, in exec_cmd
> stop = Cmd.onecmd_orig(current_interface, line, **opt)
> File "/home/wm/MG5_aMC_v2_6_2/madgraph/interface/extended_cmd.py", line 1450, in onecmd_orig
> return func(arg, **opt)
> File "/home/wm/MG5_aMC_v2_6_2/madgraph/interface/common_run_interface.py", line 2138, in do_reweight
> reweight_cmd.import_command_file(path)
> File "/home/wm/MG5_aMC_v2_6_2/madgraph/interface/extended_cmd.py", line 1643, in import_command_file
> self.exec_cmd(line, precmd=True)
> File "/home/wm/MG5_aMC_v2_6_2/madgraph/interface/extended_cmd.py", line 1528, in exec_cmd
> stop = Cmd.onecmd_orig(current_interface, line, **opt)
> File "/home/wm/MG5_aMC_v2_6_2/madgraph/interface/extended_cmd.py", line 1450, in onecmd_orig
> return func(arg, **opt)
> File "/home/wm/MG5_aMC_v2_6_2/madgraph/various/misc.py", line 100, in f_with_no_logger
> out = f(self, *args, **opt)
> File "/home/wm/MG5_aMC_v2_6_2/madgraph/interface/reweight_interface.py", line 487, in do_launch
> self.load_module()
> File "/home/wm/MG5_aMC_v2_6_2/madgraph/interface/reweight_interface.py", line 1726, in load_module
> mymod = __import__(mod_name, globals(), locals(), [],-1)
> ImportError: No module named allmatrix2py
> ```
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/mg5amcnlo/+bug/1768538/+subscriptions