ImportError : No module named function_library
Hello,
I just made UFO model with FeynRules Version: 2.3.36 ( 28 November 2019) and I am trying to load it in MG but there is an error for
`ImportError : No module named function_library`
I have checked I have this error in 2.6.0 and 2.7.0 as well.
The error goes away if I remove in write_param_card.py some import commands
#from __future__ import absolute_import
#from __future__ import print_function
but then the model does not generate processes with errors such as a
"generate e+ e- > e+ e-" with error:
KeyError : '1'
FYI I have noticed I get a "3 june 2010" version of write_param_card.py instead of "02 Aug 2012" i find in models shipped with MG (this is how I figured to remove the imports)
I am attaching the DEBUG file from the failed import usage of the plain model as generated from FeynRules.
Thanks for helping,
Roberto
#******
#* MadGraph5_aMC@NLO *
#* *
#* * * *
#* * * * * *
#* * * * * 5 * * * * *
#* * * * * *
#* * * *
#* *
#* *
#* VERSION 2.7.0 2020-01-20 *
#* *
#* The MadGraph5_aMC@NLO Development Team - Find us at *
#* https:/
#* *
#******
#* *
#* Command File for MadGraph5_aMC@NLO *
#* *
#* run as ./bin/mg5_aMC filename *
#* *
#******
set default_
set group_subprocesses Auto
set ignore_
set loop_optimized_
set low_mem_
set loop_color_flows False
set gauge unitary
set complex_mass_scheme False
set max_npoint_
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 SMplusGagammagamma
Traceback (most recent call last):
File "/Users/
return self.onecmd_
File "/Users/
return func(arg, **opt)
File "/Users/
self.
File "/Users/
complex_
File "/Users/
model = import_
File "/Users/
ufo_model = ufomodels.
File "/Users/
__import_
File "/Users/
import write_param_card
File "/Users/
from function_library import *
ImportError: No module named function_library
default_
ignore_
loop_
low_mem_
max_
automatic_
cluster_
mg5amc_
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Olivier Mattelaer
- Solved:
- Last query:
- Last reply: