i am trying to work with nornir but i get this
whene i try this :
from nornir.plugins.functions.text import print_result
i get this:
ModuleNotFoundError: No module named 'nornir.plugins.functions.text'
i've also tried this:
from nornir_utils.plugins.functions import print_result
the probleme is still there:
ModuleNotFoundError: No module named 'nornir.plugins.functions.text'
can anyone help me solve this ?
Looking in the
nornir
module docs there is noprint_result
function, but it is present in thenornir_utils
module.The plugins present in
nornir
are four, look hereYou can install the
nornir_utils
module withpip install nornir_utils
and thenornir
module aspip install nornir
.The corrent import to do is
from nornir_utils.plugins.functions import print_result
.Make sure to use the right pip to install the packages, sometimes I install in the wrong env having multiple python installation.