nextbox-ui-plugin icon indicating copy to clipboard operation
nextbox-ui-plugin copied to clipboard

Netbox 2.10.2 AttributeError: 'zipimporter' object has no attribute 'exec_module'

Open thefreakquency opened this issue 3 years ago • 0 comments

Python 3.8.5 Netbox 2.10.2

As per https://github.com/netbox-community/netbox/issues/5254 setup.py should now have "zip_safe=False,". This change is required as of NetBox 2.10.2 to avoid installation failure. It should be backward compatible with older NetBox versions as there are no changes to the code itself.

Before adding zip_safe=False,, I was getting the following error: (venv) username@hostname:/opt/netbox/netbox# python manage.py collectstatic Traceback (most recent call last): File "manage.py", line 10, in <module> execute_from_command_line(sys.argv) File "/opt/netbox-2.10.2/venv/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line utility.execute() File "/opt/netbox-2.10.2/venv/lib/python3.8/site-packages/django/core/management/__init__.py", line 377, in execute django.setup() File "/opt/netbox-2.10.2/venv/lib/python3.8/site-packages/django/__init__.py", line 24, in setup apps.populate(settings.INSTALLED_APPS) File "/opt/netbox-2.10.2/venv/lib/python3.8/site-packages/django/apps/registry.py", line 122, in populate app_config.ready() File "/opt/netbox-2.10.2/netbox/extras/plugins/__init__.py", line 63, in ready template_extensions = import_object(f"{self.__module__}.{self.template_extensions}") File "/opt/netbox-2.10.2/netbox/extras/plugins/utils.py", line 31, in import_object spec.loader.exec_module(module) AttributeError: 'zipimporter' object has no attribute 'exec_module'

thefreakquency avatar Mar 25 '21 15:03 thefreakquency