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
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, ComplicatedPhen omenon <email address hidden> wrote: wm/MG5_ aMC_v2_ 6_2/madgraph/ interface/ extended_ cmd.py" , line 1501, in onecmd orig(line, **opt) wm/MG5_ aMC_v2_ 6_2/madgraph/ interface/ extended_ cmd.py" , line 1450, in onecmd_orig wm/MG5_ aMC_v2_ 6_2/madgraph/ interface/ madevent_ interface. py", line 2467, in do_generate_events generate_ events( switch_ mode, args) wm/MG5_ aMC_v2_ 6_2/madgraph/ interface/ common_ run_interface. py", line 6685, in new_fct wm/MG5_ aMC_v2_ 6_2/madgraph/ interface/ madevent_ interface. py", line 2559, in run_generate_events cmd('reweight -from_cards', postcmd=False) wm/MG5_ aMC_v2_ 6_2/madgraph/ interface/ extended_ cmd.py" , line 1528, in exec_cmd orig(current_ interface, line, **opt) wm/MG5_ aMC_v2_ 6_2/madgraph/ interface/ extended_ cmd.py" , line 1450, in onecmd_orig wm/MG5_ aMC_v2_ 6_2/madgraph/ interface/ common_ run_interface. py", line 2138, in do_reweight cmd.import_ command_ file(path) wm/MG5_ aMC_v2_ 6_2/madgraph/ interface/ extended_ cmd.py" , line 1643, in import_command_file wm/MG5_ aMC_v2_ 6_2/madgraph/ interface/ extended_ cmd.py" , line 1528, in exec_cmd orig(current_ interface, line, **opt) wm/MG5_ aMC_v2_ 6_2/madgraph/ interface/ extended_ cmd.py" , line 1450, in onecmd_orig wm/MG5_ aMC_v2_ 6_2/madgraph/ various/ misc.py" , line 100, in f_with_no_logger wm/MG5_ aMC_v2_ 6_2/madgraph/ interface/ reweight_ interface. py", line 487, in do_launch wm/MG5_ aMC_v2_ 6_2/madgraph/ interface/ reweight_ interface. py", line 1726, in load_module _(mod_name, globals(), locals(), [],-1) /bugs.launchpad .net/bugs/ 1768538 wm/MG5_ aMC_v2_ 6_2/madgraph/ interface/ extended_ cmd.py" , line 1501, in onecmd orig(line, **opt) wm/MG5_ aMC_v2_ 6_2/madgraph/ interface/ extended_ cmd.py" , line 1450, in onecmd_orig wm/MG5_ aMC_v2_ 6_2/madgraph/ interface/ madevent_ interface. py", line 2467, in do_generate_events generate_ events( switch_ mode, args) wm/MG5_ aMC_v2_ 6_2/madgraph/ interface/ common_ run_interface. py", line 6685, in new_fct wm/MG5_ aMC_v2_ 6_2/madgraph/ interface/ madevent_ interface. py", line 2559, in run_generate_events cmd('reweight -from_cards', postcmd=False) wm/MG5_ aMC_v2_ 6_2/madgraph/ interface/ extended_ cmd.py" , line 1528, in exec_cmd orig(current_ interface, line, **opt) wm/MG5_ aMC_v2_ 6_2/madgraph/ interface/ extended_ cmd.py" , line 1450, in onecmd_orig wm/MG5_ aMC_v2_ 6_2/madgraph/ interface/ common_ run_interface. py", line 2138, in do_reweight cmd.import_ command_ file(path) wm/MG5_ aMC_v2_ 6_2/madgraph/ interface/ extended_ cmd.py" , line 1643, in import_command_file wm/MG5_ aMC_v2_ 6_2/madgraph/ interface/ extended_ cmd.py" , line 1528, in exec_cmd orig(current_ interface, line, **opt) wm/MG5_ aMC_v2_ 6_2/madgraph/ interface/ extended_ cmd.py" , line 1450, in onecmd_orig wm/MG5_ aMC_v2_ 6_2/madgraph/ various/ misc.py" , line 100, in f_with_no_logger wm/MG5_ aMC_v2_ 6_2/madgraph/ interface/ reweight_ interface. py", line 487, in do_launch wm/MG5_ aMC_v2_ 6_2/madgraph/ interface/ reweight_ interface. py", line 1726, in load_module _(mod_name, globals(), locals(), [],-1) /bugs.launchpad .net/mg5amcnlo/ +bug/1768538/ +subscriptions
>
> 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/
> return self.onecmd_
> File "/home/
> return func(arg, **opt)
> File "/home/
> self.run_
> File "/home/
> original_fct(obj, *args, **opts)
> File "/home/
> self.exec_
> File "/home/
> stop = Cmd.onecmd_
> File "/home/
> return func(arg, **opt)
> File "/home/
> reweight_
> File "/home/
> self.exec_cmd(line, precmd=True)
> File "/home/
> stop = Cmd.onecmd_
> File "/home/
> return func(arg, **opt)
> File "/home/
> out = f(self, *args, **opt)
> File "/home/
> self.load_module()
> File "/home/
> mymod = __import_
> 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:/
>
> 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/
> return self.onecmd_
> File "/home/
> return func(arg, **opt)
> File "/home/
> self.run_
> File "/home/
> original_fct(obj, *args, **opts)
> File "/home/
> self.exec_
> File "/home/
> stop = Cmd.onecmd_
> File "/home/
> return func(arg, **opt)
> File "/home/
> reweight_
> File "/home/
> self.exec_cmd(line, precmd=True)
> File "/home/
> stop = Cmd.onecmd_
> File "/home/
> return func(arg, **opt)
> File "/home/
> out = f(self, *args, **opt)
> File "/home/
> self.load_module()
> File "/home/
> mymod = __import_
> ImportError: No module named allmatrix2py
> ```
>
> To manage notifications about this bug go to:
> https:/