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
nornirmodule docs there is noprint_resultfunction, but it is present in thenornir_utilsmodule.The plugins present in
nornirare four, look hereYou can install the
nornir_utilsmodule withpip install nornir_utilsand thenornirmodule 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.