Replies: 2 comments
-
You don’t have to, the plugin does it on its own. You only have to install it so I am guessing you didn’t. |
Beta Was this translation helpful? Give feedback.
0 replies
-
You are correct. I have rebuilt the virtual environment and even though i had nornir_netbox plugin in the requirements file i had to manually install it again for some reason. I just assumed it was all installed. Thank you for the prompt reply. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have been using Nornir 3.0.0 with python 3.6 after upgrade from ubuntu 18 to 20 and python upgrade to 3.8 and Nornir 3.1.1 i am suddenly seeing this error:
Traceback (most recent call last):
File "scripts/run_check_oldm.py", line 6, in
from helpers import adapt_user_password
File "/opt/nornir-netbox-napalm/scripts/helpers.py", line 22, in
nr = InitNornir(config_file="./config.yaml")
File "/opt/nornir-netbox-napalm/venv/lib/python3.8/site-packages/nornir/init_nornir.py", line 64, in InitNornir
inventory=load_inventory(config),
File "/opt/nornir-netbox-napalm/venv/lib/python3.8/site-packages/nornir/init_nornir.py", line 17, in load_inventory
inventory_plugin = InventoryPluginRegister.get_plugin(config.inventory.plugin)
File "/opt/nornir-netbox-napalm/venv/lib/python3.8/site-packages/nornir/core/plugins/register.py", line 75, in get_plugin
raise PluginNotRegistered(f"plugin {name!r} is not registered")
nornir.core.exceptions.PluginNotRegistered: plugin 'NetBoxInventory2' is not registered
I am using it like this:
#!./venv/bin/python
from nornir import InitNornir
from netbox import NetBox
nr = InitNornir(config_file="./config.yaml")
How do i register plugin NetBoxInventory2?
Beta Was this translation helpful? Give feedback.
All reactions