Skip to content

No module named 'netbox_napalm_plugin' #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
kozlooo opened this issue Oct 26, 2023 · 2 comments
Closed

No module named 'netbox_napalm_plugin' #24

kozlooo opened this issue Oct 26, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@kozlooo
Copy link

kozlooo commented Oct 26, 2023

NetBox version
What version of NetBox are you currently running?
3.6.3
Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Follow netbox official documentation and prepare docker file for netbox installation with napalm plugin
  2. Build docker image
  3. Add to custom HELM chart init commands for migration
  4. Enable napalm plugin
  5. Try to run it

Expected behavior
Netbox will be running as it was with other plugins

Additional context
Hi! I am trying to install netbox-napalm-plugin but without success. We have custom helm chart for netbox and it is deployed in k8s environment. Netbox deployment consist of netbox pod and worker pod which works as init container. Netbox is working fine with other plugins, have several installed on sysytem,, but when I try to add napalm plugin, it does not start up, netbox error
ModuleNotFoundError: No module named 'netbox_napalm_plugin'. I followed napalm documentation and added migrate command to init container, but it is not working.
I thought that maybe issue is in python env, but it is not, tried to install venv and in usual pip (for troubleshooting reasons)

@kozlooo kozlooo added the bug Something isn't working label Oct 26, 2023
@gormur
Copy link

gormur commented Nov 17, 2023

@kozlooo Please be aware that the string needed in plugin_requirements.txt is different from the one needed in configuration/plugins.py. Notice dash and underscore.

  • netbox-napalm-plugin in plugin_requirements.txt
  • netbox_napalm_plugin in configuration/plugins.py

gormur added a commit to gormur/netbox-napalm that referenced this issue Nov 17, 2023
Highlight difference between dashes and underscores. Might fix issue netbox-community#24
@arthanson
Copy link
Contributor

@kozlooo Does the above solve your issue? Looking to close this ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants