iDebugAll / phonebox_plugin

A Telephone Number Management Plugin for Netbox and more
MIT License
89 stars 26 forks source link

Error when migrating in NetBox 3.1.8 #22

Closed TwixusVulgaris closed 2 years ago

TwixusVulgaris commented 2 years ago

(venv) root@netboxclone:/opt/netbox/netbox# python3 manage.py migrate /opt/netbox-3.1.8/netbox/netbox/settings.py:57: UserWarning: The CACHE_TIMEOUT configuration parameter was removed in v3.0.0 and no longer has any effect. warnings.warn( /opt/netbox-3.1.8/netbox/netbox/settings.py:61: UserWarning: The RELEASE_CHECK_TIMEOUT configuration parameter was removed in v3.0.0 and no longer has any effect. warnings.warn( Traceback (most recent call last): File "manage.py", line 10, in execute_from_command_line(sys.argv) File "/opt/netbox-3.1.8/venv/lib/python3.8/site-packages/django/core/management/init.py", line 419, in execute_from_command_line utility.execute() File "/opt/netbox-3.1.8/venv/lib/python3.8/site-packages/django/core/management/init.py", line 413, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/opt/netbox-3.1.8/venv/lib/python3.8/site-packages/django/core/management/base.py", line 354, in run_from_argv self.execute(*args, cmd_options) File "/opt/netbox-3.1.8/venv/lib/python3.8/site-packages/django/core/management/base.py", line 398, in execute output = self.handle(*args, *options) File "/opt/netbox-3.1.8/venv/lib/python3.8/site-packages/django/core/management/base.py", line 89, in wrapped res = handle_func(args, kwargs) File "/opt/netbox-3.1.8/venv/lib/python3.8/site-packages/django/core/management/commands/migrate.py", line 75, in handle self.check(databases=[database]) File "/opt/netbox-3.1.8/venv/lib/python3.8/site-packages/django/core/management/base.py", line 419, in check all_issues = checks.run_checks( File "/opt/netbox-3.1.8/venv/lib/python3.8/site-packages/django/core/checks/registry.py", line 76, in run_checks new_errors = check(app_configs=app_configs, databases=databases) File "/opt/netbox-3.1.8/venv/lib/python3.8/site-packages/django/core/checks/urls.py", line 40, in check_url_namespaces_unique all_namespaces = _load_all_namespaces(resolver) File "/opt/netbox-3.1.8/venv/lib/python3.8/site-packages/django/core/checks/urls.py", line 57, in _load_all_namespaces url_patterns = getattr(resolver, 'url_patterns', []) File "/opt/netbox-3.1.8/venv/lib/python3.8/site-packages/django/utils/functional.py", line 48, in get res = instance.dict[self.name] = self.func(instance) File "/opt/netbox-3.1.8/venv/lib/python3.8/site-packages/django/urls/resolvers.py", line 602, in url_patterns patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module) File "/opt/netbox-3.1.8/venv/lib/python3.8/site-packages/django/utils/functional.py", line 48, in get res = instance.dict[self.name] = self.func(instance) File "/opt/netbox-3.1.8/venv/lib/python3.8/site-packages/django/urls/resolvers.py", line 595, in urlconf_module return import_module(self.urlconf_name) File "/usr/lib/python3.8/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1014, in _gcd_import File "", line 991, in _find_and_load File "", line 975, in _find_and_load_unlocked File "", line 671, in _load_unlocked File "", line 848, in exec_module File "", line 219, in _call_with_frames_removed File "/opt/netbox-3.1.8/netbox/netbox/urls.py", line 9, in from extras.plugins.urls import plugin_admin_patterns, plugin_patterns, plugin_api_patterns File "/opt/netbox-3.1.8/netbox/extras/plugins/urls.py", line 28, in urlpatterns = import_object(f"{plugin_path}.urls.urlpatterns") File "/opt/netbox-3.1.8/netbox/extras/plugins/utils.py", line 31, in import_object spec.loader.exec_module(module) File "/opt/netbox-3.1.8/venv/lib/python3.8/site-packages/phonebox_plugin/urls.py", line 2, in from . import views File "/opt/netbox-3.1.8/venv/lib/python3.8/site-packages/phonebox_plugin/views.py", line 6, in from . import forms File "/opt/netbox-3.1.8/venv/lib/python3.8/site-packages/phonebox_plugin/forms.py", line 67, in class NumberBulkEditForm(BootstrapMixin, AddRemoveTagsForm, BulkEditForm): File "/opt/netbox-3.1.8/venv/lib/python3.8/site-packages/django/forms/forms.py", line 31, in new new_class = super().new(mcs, name, bases, attrs) File "/opt/netbox-3.1.8/venv/lib/python3.8/site-packages/django/forms/widgets.py", line 191, in new new_class = super().new(mcs, name, bases, attrs) TypeError: Cannot create a consistent method resolution order (MRO) for bases BootstrapMixin, AddRemoveTagsForm, BulkEditForm

TwixusVulgaris commented 2 years ago

The error occured when we tryed to install plugin on our probably modified NetBox instance. Plugin succesfully installed on clear NetBox.