errors migrating from 3.3.6 to 3.5.0 - TypeError: __init__() missing 1 required positional argument: 'model' #14426
-
File "/opt/netbox-3.5.0/netbox/scripts/examples.py", line 19, in NewBranchScript |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
I think the error message is clear: there is a script called "examples.py" in the scripts directory, and that script is not valid with the new version of Netbox. I think you must have copied the one from here but it seems to be broken. As a quick fix, you can move the file out of the way and replace it with a zero-byte file:
|
Beta Was this translation helpful? Give feedback.
-
Hey Candlerb, Thank you for your insights, I'm able to resolve that error but encountering a new issue: |
Beta Was this translation helpful? Give feedback.
-
cd /opt/netbox |
Beta Was this translation helpful? Give feedback.
I think the error message is clear: there is a script called "examples.py" in the scripts directory, and that script is not valid with the new version of Netbox. I think you must have copied the one from here but it seems to be broken.
As a quick fix, you can move the file out of the way and replace it with a zero-byte file: