Onemind-Services-LLC / netbox-secrets

Enhance your secret management with encrypted storage and flexible, user-friendly features.
Apache License 2.0
104 stars 10 forks source link

[Bug]: Unable to import plugin netbox-secrets: Module not found. #120

Closed cmcknz77 closed 10 months ago

cmcknz77 commented 10 months ago

NetBox Secrets plugin version

v1.10.0

NetBox version

v3.7.0

Steps to Reproduce

(venv) [root@localhost netbox]# python3 manage.py migrate Traceback (most recent call last): File "/opt/netbox-3.7.0/netbox/netbox/settings.py", line 748, in plugin = importlib.import_module(plugin_name) File "/usr/local/lib/python3.10/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 1004, in _find_and_load_unlocked ModuleNotFoundError: No module named 'netbox-secrets'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/opt/netbox-3.7.0/netbox/manage.py", line 10, in execute_from_command_line(sys.argv) File "/opt/netbox-3.7.0/venv/lib/python3.10/site-packages/django/core/management/init.py", line 442, in execute_from_command_line utility.execute() File "/opt/netbox-3.7.0/venv/lib/python3.10/site-packages/django/core/management/init.py", line 436, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/opt/netbox-3.7.0/venv/lib/python3.10/site-packages/django/core/management/base.py", line 412, in run_from_argv self.execute(*args, *cmd_options) File "/opt/netbox-3.7.0/venv/lib/python3.10/site-packages/django/core/management/base.py", line 458, in execute output = self.handle(args, **options) File "/opt/netbox-3.7.0/venv/lib/python3.10/site-packages/django/core/management/base.py", line 103, in wrapper saved_locale = translation.get_language() File "/opt/netbox-3.7.0/venv/lib/python3.10/site-packages/django/utils/translation/init.py", line 210, in get_language return _trans.get_language() File "/opt/netbox-3.7.0/venv/lib/python3.10/site-packages/django/utils/translation/init.py", line 65, in getattr if settings.USE_I18N: File "/opt/netbox-3.7.0/venv/lib/python3.10/site-packages/django/conf/init.py", line 102, in getattr self._setup(name) File "/opt/netbox-3.7.0/venv/lib/python3.10/site-packages/django/conf/init.py", line 89, in _setup self._wrapped = Settings(settings_module) File "/opt/netbox-3.7.0/venv/lib/python3.10/site-packages/django/conf/init.py", line 217, in init mod = importlib.import_module(self.SETTINGS_MODULE) File "/usr/local/lib/python3.10/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 1006, in _find_and_load_unlocked File "", line 688, in _load_unlocked File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "/opt/netbox-3.7.0/netbox/netbox/settings.py", line 751, in raise ImproperlyConfigured( django.core.exceptions.ImproperlyConfigured: Unable to import plugin netbox-secrets: Module not found. Check that the plugin module has been installed within the correct Python environment.

Expected Behavior

python3 manage.py migrate succeeds

Observed Behavior

Screenshot 2024-01-03 005705 Screenshot 2024-01-03 012400

Screenshot 2024-01-03 005849

cmcknz77 commented 10 months ago

Sorry - this was an ID: 10T error... I'd used a - instead of a _ in the configuration.