-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Description
Environment
- Python version: 3.8.5
- NetBox version: 2.9.7
Steps to Reproduce
- Install clean netbox instance using install instructions
- Clone animal_sounds plugin and install using python3 setup.py install
- 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'