You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
v4.2.7 (seems to fail on 4.2.2 or greater 4.2.1 still works)
Diode version
N/A
Diode SDK type
diode-sdk-python
Diode SDK version
N/A
Steps to reproduce
include diode plugin in plugins requirements and config and rebuild docker using Dockerfile-Plugins. After compile docker compose up -d and look for error:
Expected behavior
plugin should load
Observed behavior
netbox-1 | Traceback (most recent call last):
netbox-1 | File "/opt/netbox/netbox/./manage.py", line 10, in
netbox-1 | execute_from_command_line(sys.argv)
netbox-1 | File "/opt/netbox/venv/lib/python3.12/site-packages/django/core/management/init.py", line 442, in execute_from_command_line
netbox-1 | utility.execute()
netbox-1 | File "/opt/netbox/venv/lib/python3.12/site-packages/django/core/management/init.py", line 436, in execute
netbox-1 | self.fetch_command(subcommand).run_from_argv(self.argv)
netbox-1 | File "/opt/netbox/venv/lib/python3.12/site-packages/django/core/management/base.py", line 413, in run_from_argv
netbox-1 | self.execute(*args, **cmd_options)
netbox-1 | File "/opt/netbox/venv/lib/python3.12/site-packages/django/core/management/base.py", line 454, in execute
netbox-1 | self.check()
netbox-1 | File "/opt/netbox/venv/lib/python3.12/site-packages/django/core/management/base.py", line 486, in check
netbox-1 | all_issues = checks.run_checks(
netbox-1 | ^^^^^^^^^^^^^^^^^^
netbox-1 | File "/opt/netbox/venv/lib/python3.12/site-packages/django/core/checks/registry.py", line 88, in run_checks
netbox-1 | new_errors = check(app_configs=app_configs, databases=databases)
netbox-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
netbox-1 | File "/opt/netbox/venv/lib/python3.12/site-packages/django/core/checks/urls.py", line 44, in check_url_namespaces_unique
netbox-1 | all_namespaces = _load_all_namespaces(resolver)
netbox-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
netbox-1 | File "/opt/netbox/venv/lib/python3.12/site-packages/django/core/checks/urls.py", line 63, in _load_all_namespaces
netbox-1 | url_patterns = getattr(resolver, "url_patterns", [])
netbox-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
netbox-1 | File "/opt/netbox/venv/lib/python3.12/site-packages/django/utils/functional.py", line 47, in get
netbox-1 | res = instance.dict[self.name] = self.func(instance)
netbox-1 | ^^^^^^^^^^^^^^^^^^^
netbox-1 | File "/opt/netbox/venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 718, in url_patterns
netbox-1 | patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
netbox-1 | ^^^^^^^^^^^^^^^^^^^
netbox-1 | File "/opt/netbox/venv/lib/python3.12/site-packages/django/utils/functional.py", line 47, in get
netbox-1 | res = instance.dict[self.name] = self.func(instance)
netbox-1 | ^^^^^^^^^^^^^^^^^^^
netbox-1 | File "/opt/netbox/venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 711, in urlconf_module
netbox-1 | return import_module(self.urlconf_name)
netbox-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
netbox-1 | File "/usr/lib/python3.12/importlib/init.py", line 90, in import_module
netbox-1 | return _bootstrap._gcd_import(name[level:], package, level)
netbox-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
netbox-1 | File "", line 1387, in _gcd_import
netbox-1 | File "", line 1360, in _find_and_load
netbox-1 | File "", line 1331, in _find_and_load_unlocked
netbox-1 | File "", line 935, in _load_unlocked
netbox-1 | File "", line 995, in exec_module
netbox-1 | File "", line 488, in _call_with_frames_removed
netbox-1 | File "/opt/netbox/netbox/netbox/urls.py", line 11, in
netbox-1 | from netbox.plugins.urls import plugin_patterns, plugin_api_patterns
netbox-1 | File "/opt/netbox/netbox/netbox/plugins/urls.py", line 26, in
netbox-1 | urlpatterns = import_string(f"{plugin_path}.urls.urlpatterns")
netbox-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
netbox-1 | File "/opt/netbox/venv/lib/python3.12/site-packages/django/utils/module_loading.py", line 30, in import_string
netbox-1 | return cached_import(module_path, class_name)
netbox-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
netbox-1 | File "/opt/netbox/venv/lib/python3.12/site-packages/django/utils/module_loading.py", line 15, in cached_import
netbox-1 | module = import_module(module_path)
netbox-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
netbox-1 | File "/usr/lib/python3.12/importlib/init.py", line 90, in import_module
netbox-1 | return _bootstrap._gcd_import(name[level:], package, level)
netbox-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
netbox-1 | File "/opt/netbox/venv/lib/python3.12/site-packages/netbox_diode_plugin/urls.py", line 7, in
netbox-1 | from . import views
netbox-1 | File "/opt/netbox/venv/lib/python3.12/site-packages/netbox_diode_plugin/views.py", line 26, in
netbox-1 | from netbox_diode_plugin.tables import IngestionLogsTable
netbox-1 | File "/opt/netbox/venv/lib/python3.12/site-packages/netbox_diode_plugin/tables.py", line 11, in
netbox-1 | if version.parse(settings.VERSION).major >= 4:
netbox-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
netbox-1 | File "/opt/netbox/venv/lib/python3.12/site-packages/packaging/version.py", line 56, in parse
netbox-1 | return Version(version)
netbox-1 | ^^^^^^^^^^^^^^^^
netbox-1 | File "/opt/netbox/venv/lib/python3.12/site-packages/packaging/version.py", line 202, in init
netbox-1 | raise InvalidVersion(f"Invalid version: {version!r}")
netbox-1 | packaging.version.InvalidVersion: Invalid version: '4.2.7-Docker-3.2.0'
The text was updated successfully, but these errors were encountered:
Diode NetBox Plugin version
v.0.6.0
NetBox version
v4.2.7 (seems to fail on 4.2.2 or greater 4.2.1 still works)
Diode version
N/A
Diode SDK type
diode-sdk-python
Diode SDK version
N/A
Steps to reproduce
include diode plugin in plugins requirements and config and rebuild docker using Dockerfile-Plugins. After compile docker compose up -d and look for error:
Expected behavior
plugin should load
Observed behavior
netbox-1 | Traceback (most recent call last):
netbox-1 | File "/opt/netbox/netbox/./manage.py", line 10, in
netbox-1 | execute_from_command_line(sys.argv)
netbox-1 | File "/opt/netbox/venv/lib/python3.12/site-packages/django/core/management/init.py", line 442, in execute_from_command_line
netbox-1 | utility.execute()
netbox-1 | File "/opt/netbox/venv/lib/python3.12/site-packages/django/core/management/init.py", line 436, in execute
netbox-1 | self.fetch_command(subcommand).run_from_argv(self.argv)
netbox-1 | File "/opt/netbox/venv/lib/python3.12/site-packages/django/core/management/base.py", line 413, in run_from_argv
netbox-1 | self.execute(*args, **cmd_options)
netbox-1 | File "/opt/netbox/venv/lib/python3.12/site-packages/django/core/management/base.py", line 454, in execute
netbox-1 | self.check()
netbox-1 | File "/opt/netbox/venv/lib/python3.12/site-packages/django/core/management/base.py", line 486, in check
netbox-1 | all_issues = checks.run_checks(
netbox-1 | ^^^^^^^^^^^^^^^^^^
netbox-1 | File "/opt/netbox/venv/lib/python3.12/site-packages/django/core/checks/registry.py", line 88, in run_checks
netbox-1 | new_errors = check(app_configs=app_configs, databases=databases)
netbox-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
netbox-1 | File "/opt/netbox/venv/lib/python3.12/site-packages/django/core/checks/urls.py", line 44, in check_url_namespaces_unique
netbox-1 | all_namespaces = _load_all_namespaces(resolver)
netbox-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
netbox-1 | File "/opt/netbox/venv/lib/python3.12/site-packages/django/core/checks/urls.py", line 63, in _load_all_namespaces
netbox-1 | url_patterns = getattr(resolver, "url_patterns", [])
netbox-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
netbox-1 | File "/opt/netbox/venv/lib/python3.12/site-packages/django/utils/functional.py", line 47, in get
netbox-1 | res = instance.dict[self.name] = self.func(instance)
netbox-1 | ^^^^^^^^^^^^^^^^^^^
netbox-1 | File "/opt/netbox/venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 718, in url_patterns
netbox-1 | patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
netbox-1 | ^^^^^^^^^^^^^^^^^^^
netbox-1 | File "/opt/netbox/venv/lib/python3.12/site-packages/django/utils/functional.py", line 47, in get
netbox-1 | res = instance.dict[self.name] = self.func(instance)
netbox-1 | ^^^^^^^^^^^^^^^^^^^
netbox-1 | File "/opt/netbox/venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 711, in urlconf_module
netbox-1 | return import_module(self.urlconf_name)
netbox-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
netbox-1 | File "/usr/lib/python3.12/importlib/init.py", line 90, in import_module
netbox-1 | return _bootstrap._gcd_import(name[level:], package, level)
netbox-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
netbox-1 | File "", line 1387, in _gcd_import
netbox-1 | File "", line 1360, in _find_and_load
netbox-1 | File "", line 1331, in _find_and_load_unlocked
netbox-1 | File "", line 935, in _load_unlocked
netbox-1 | File "", line 995, in exec_module
netbox-1 | File "", line 488, in _call_with_frames_removed
netbox-1 | File "/opt/netbox/netbox/netbox/urls.py", line 11, in
netbox-1 | from netbox.plugins.urls import plugin_patterns, plugin_api_patterns
netbox-1 | File "/opt/netbox/netbox/netbox/plugins/urls.py", line 26, in
netbox-1 | urlpatterns = import_string(f"{plugin_path}.urls.urlpatterns")
netbox-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
netbox-1 | File "/opt/netbox/venv/lib/python3.12/site-packages/django/utils/module_loading.py", line 30, in import_string
netbox-1 | return cached_import(module_path, class_name)
netbox-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
netbox-1 | File "/opt/netbox/venv/lib/python3.12/site-packages/django/utils/module_loading.py", line 15, in cached_import
netbox-1 | module = import_module(module_path)
netbox-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
netbox-1 | File "/usr/lib/python3.12/importlib/init.py", line 90, in import_module
netbox-1 | return _bootstrap._gcd_import(name[level:], package, level)
netbox-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
netbox-1 | File "/opt/netbox/venv/lib/python3.12/site-packages/netbox_diode_plugin/urls.py", line 7, in
netbox-1 | from . import views
netbox-1 | File "/opt/netbox/venv/lib/python3.12/site-packages/netbox_diode_plugin/views.py", line 26, in
netbox-1 | from netbox_diode_plugin.tables import IngestionLogsTable
netbox-1 | File "/opt/netbox/venv/lib/python3.12/site-packages/netbox_diode_plugin/tables.py", line 11, in
netbox-1 | if version.parse(settings.VERSION).major >= 4:
netbox-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
netbox-1 | File "/opt/netbox/venv/lib/python3.12/site-packages/packaging/version.py", line 56, in parse
netbox-1 | return Version(version)
netbox-1 | ^^^^^^^^^^^^^^^^
netbox-1 | File "/opt/netbox/venv/lib/python3.12/site-packages/packaging/version.py", line 202, in init
netbox-1 | raise InvalidVersion(f"Invalid version: {version!r}")
netbox-1 | packaging.version.InvalidVersion: Invalid version: '4.2.7-Docker-3.2.0'
The text was updated successfully, but these errors were encountered: