Skip to content
Discussion options

You must be logged in to vote

When you say "trying to load scripts", what exactly do you mean? Did you put some code in the /opt/netbox/netbox/scripts/ directory?

If so, then it seems your custom script is trying to use a module "pynetbox" but you don't have this available in your netbox virtualenv. Try adding pynetbox to local_requirements.txt then re-running upgrade.sh to rebuild the virtualenv. As an aside though: it would be very unusual for a custom script to use pynetbox, when it has direct access to the Django models and can access the database safely using transactions (this allows the custom script to have a dry run which is rolled back)

If that's not the case, then please can you explain more clearly what yo…

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@candlerb
Comment options

@jacen2110
Comment options

@lasag-2511
Comment options

@candlerb
Comment options

@lasag-2511
Comment options

Answer selected by jacen2110
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants