Unable to import plugin netbox-initializers #1154
Unanswered
jose-hernandez2
asked this question in
Getting Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm trying to update netbox-docker from v2.1.0 to 2.2.0. I saw in the update release notes, that from v2.2.0 onwards, all initializers were moved out of the image into a plug-in. I followed the documentation on how to install the plug-in using netbox-docker, but unfortunately, that isn't working for me. When I start netbox, I get the following error:
django.core.exceptions.ImproperlyConfigured: Unable to import plugin netbox_initializers: Module not found. Check that the plugin module has been installed within the correct Python environment.
What I did:
I built a custom image as explained in the documentation, where I install the plug-in using:
Then I added the plug-in to configuration/plugins.py as follows:
PLUGINS = [ 'netbox_initializers', ]
If I log-in into the netbox container und execute
pip list
I'm able to see "netbox-initializers" in the package list with version 3.3.3. so I don't understand why is the module not being found. I also tried adding the plug-in in the plugins.py file with the name "netbox-initializers" (using dash instead of underscore) as that is the name displayed in the pip package list, but I get the same result, just the name of the module in the error message changes accordingly to "netbox-initializers". I also tried using other netbox images, such asnetboxcommunity/netbox:v3.3
but with the same result.I'm also not able to execute the "manage.py copy_initializers_examples" and "manage.py load_initializer_data" commands mentioned in the doc, but I'm not sure if it's because the netbox-initializers module is not being found. I get the error:
Unknown command: 'copy_initializers_examples'
Anyhow I'm not sure how I should execute those commands? Should I do that with
docker-compose exec
outside the container?Can anyone please help me with some guidance about how should I install the netbox-initializers Plug-in properly?
Thanks in advance!
Kind regards,
José
Beta Was this translation helpful? Give feedback.
All reactions