Skip to content

Error loading plugin #5254

@kilker12

Description

@kilker12

Environment

  • Python version: 3.8.5
  • NetBox version: 2.9.7

Steps to Reproduce

  1. Install clean netbox instance using install instructions
  2. Clone animal_sounds plugin and install using python3 setup.py install
  3. Run python3 manage.py collectstatic

Expected Behavior

python3 manage.py collectstatic to not produce errors

Observed Behavior

(venv) root@netbox-test:/opt/netbox-animal-sounds# python3 /opt/netbox/netbox/manage.py collectstatic
Traceback (most recent call last):
File "/opt/netbox/netbox/manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/opt/netbox-2.9.7/venv/lib/python3.8/site-packages/django/core/management/init.py", line 401, in execute_from_command_line
utility.execute()
File "/opt/netbox-2.9.7/venv/lib/python3.8/site-packages/django/core/management/init.py", line 377, in execute
django.setup()
File "/opt/netbox-2.9.7/venv/lib/python3.8/site-packages/django/init.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/opt/netbox-2.9.7/venv/lib/python3.8/site-packages/django/apps/registry.py", line 122, in populate
app_config.ready()
File "/opt/netbox-2.9.7/netbox/extras/plugins/init.py", line 64, in ready
template_extensions = import_object(f"{self.module}.{self.template_extensions}")
File "/opt/netbox-2.9.7/netbox/extras/plugins/utils.py", line 31, in import_object
spec.loader.exec_module(module)
AttributeError: 'zipimporter' object has no attribute 'exec_module'

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions