devon-mar / netbox-kea

Manage Kea DHCP leases in NetBox.
Apache License 2.0
70 stars 3 forks source link

Installtion error #111

Open Agilitytime opened 1 month ago

Agilitytime commented 1 month ago

Hi,

Unfortunately, I can't succeed in installing the plugin, could someone please list the steps for me?

sorry, i'm new to the Netbox topic...

i getting this error.

(venv) root@network:/opt/netbox/netbox# ./manage.py migrate Traceback (most recent call last): File "/opt/netbox-4.0.9/netbox/netbox/settings.py", line 778, in plugin = importlib.import_module(plugin_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/importlib/init.py", line 90, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1387, in _gcd_import File "", line 1360, in _find_and_load File "", line 1324, in _find_and_load_unlocked ModuleNotFoundError: No module named 'netbox_kea'

I install the dependencies

Kea Control Agent lease_cmds hook library

Thnaks, Sebastian

devon-mar commented 1 month ago

Did you run pip install -r local_requirements.txt to install the plugin? (It also looks like the upgrade.sh script will do this for you)

See https://netboxlabs.com/docs/netbox/en/stable/plugins/installation/

Agilitytime commented 1 month ago

Hi,

thanks for your answer.

I test this also and it still not works. Did you have another Idea?

Thanks, Sebastian

devon-mar commented 1 month ago

Can you try the upgrade.sh script? It looks like it will install the packages from local_requirements.txt into the correct virtual environment.