4.2.8 - Any plugin i install throws this error, what am I missing? #11151

Closed
opened 2025-12-29 21:40:59 +01:00 by adam · 2 comments
Owner

Originally created by @warriorsoul15 on GitHub (May 9, 2025).

Deployment Type

Self-hosted

NetBox Version

v4.2.8

Python Version

3.12

Steps to Reproduce

Ive tried a few plugins so i must be missing some step but for the life of me I cannot find it. Any plugin I put in throws this error for that plugin. What did I miss?

Expected Behavior

I expected the plugin to work lol

Observed Behavior

May 08 22:00:46 hostname.host.org uwsgi[183388]: Traceback (most recent call last):
May 08 22:00:46 hostname.host.org uwsgi[183388]: File "/opt/netbox-4.2.8/netbox/netbox/settings.py", line 812, in
May 08 22:00:46 hostname.host.org uwsgi[183388]: plugin_config: PluginConfig = plugin.config
May 08 22:00:46 hostname.host.org uwsgi[183388]: ^^^^^^^^^^^^^
May 08 22:00:46 hostname.host.org uwsgi[183388]: AttributeError: module 'netbox_floorplan' has no attribute 'config'
May 08 22:00:46 hostname.host.org uwsgi[183388]: During handling of the above exception, another exception occurred:
May 08 22:00:46 hostname.host.org uwsgi[183388]: Traceback (most recent call last):
May 08 22:00:46 hostname.host.org uwsgi[183388]: File "/opt/netbox-4.2.8/netbox/netbox/wsgi.py", line 7, in
May 08 22:00:46 hostname.host.org uwsgi[183388]: application = get_wsgi_application()
May 08 22:00:46 hostname.host.org uwsgi[183388]: ^^^^^^^^^^^^^^^^^^^^^^
May 08 22:00:46 hostname.host.org uwsgi[183388]: File "/opt/netbox-4.2.8/venv/lib64/python3.12/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application
May 08 22:00:46 hostname.host.org uwsgi[183388]: django.setup(set_prefix=False)
May 08 22:00:46 hostname.host.org uwsgi[183388]: File "/opt/netbox-4.2.8/venv/lib64/python3.12/site-packages/django/init.py", line 19, in setup
May 08 22:00:46 hostname.host.org uwsgi[183388]: configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
May 08 22:00:46 hostname.host.org uwsgi[183388]: ^^^^^^^^^^^^^^^^^^^^^^^
May 08 22:00:46 hostname.host.org uwsgi[183388]: File "/opt/netbox-4.2.8/venv/lib64/python3.12/site-packages/django/conf/init.py", line 81, in getattr
May 08 22:00:46 hostname.host.org uwsgi[183388]: self._setup(name)
May 08 22:00:46 hostname.host.org uwsgi[183388]: File "/opt/netbox-4.2.8/venv/lib64/python3.12/site-packages/django/conf/init.py", line 68, in _setup
May 08 22:00:46 hostname.host.org uwsgi[183388]: self._wrapped = Settings(settings_module)
May 08 22:00:46 hostname.host.org uwsgi[183388]: ^^^^^^^^^^^^^^^^^^^^^^^^^
May 08 22:00:46 hostname.host.org uwsgi[183388]: File "/opt/netbox-4.2.8/venv/lib64/python3.12/site-packages/django/conf/init.py", line 166, in init
May 08 22:00:46 hostname.host.org uwsgi[183388]: mod = importlib.import_module(self.SETTINGS_MODULE)
May 08 22:00:46 hostname.host.org uwsgi[183388]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 08 22:00:46 hostname.host.org uwsgi[183388]: File "/usr/lib64/python3.12/importlib/init.py", line 90, in import_module
May 08 22:00:46 hostname.host.org uwsgi[183388]: return _bootstrap._gcd_import(name[level:], package, level)
May 08 22:00:46 hostname.host.org uwsgi[183388]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 08 22:00:46 hostname.host.org uwsgi[183388]: File "/opt/netbox-4.2.8/netbox/netbox/settings.py", line 814, in
May 08 22:00:46 hostname.host.org uwsgi[183388]: raise ImproperlyConfigured(
May 08 22:00:46 hostname.host.org uwsgi[183388]: django.core.exceptions.ImproperlyConfigured: Plugin netbox_floorplan does not provide a 'config' variable. This should be defined in the plugin's init.py file and point to the PluginConfig subclass.

Originally created by @warriorsoul15 on GitHub (May 9, 2025). ### Deployment Type Self-hosted ### NetBox Version v4.2.8 ### Python Version 3.12 ### Steps to Reproduce Ive tried a few plugins so i must be missing some step but for the life of me I cannot find it. Any plugin I put in throws this error for that plugin. What did I miss? ### Expected Behavior I expected the plugin to work lol ### Observed Behavior May 08 22:00:46 hostname.host.org uwsgi[183388]: Traceback (most recent call last): May 08 22:00:46 hostname.host.org uwsgi[183388]: File "/opt/netbox-4.2.8/netbox/netbox/settings.py", line 812, in <module> May 08 22:00:46 hostname.host.org uwsgi[183388]: plugin_config: PluginConfig = plugin.config May 08 22:00:46 hostname.host.org uwsgi[183388]: ^^^^^^^^^^^^^ May 08 22:00:46 hostname.host.org uwsgi[183388]: AttributeError: module 'netbox_floorplan' has no attribute 'config' May 08 22:00:46 hostname.host.org uwsgi[183388]: During handling of the above exception, another exception occurred: May 08 22:00:46 hostname.host.org uwsgi[183388]: Traceback (most recent call last): May 08 22:00:46 hostname.host.org uwsgi[183388]: File "/opt/netbox-4.2.8/netbox/netbox/wsgi.py", line 7, in <module> May 08 22:00:46 hostname.host.org uwsgi[183388]: application = get_wsgi_application() May 08 22:00:46 hostname.host.org uwsgi[183388]: ^^^^^^^^^^^^^^^^^^^^^^ May 08 22:00:46 hostname.host.org uwsgi[183388]: File "/opt/netbox-4.2.8/venv/lib64/python3.12/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application May 08 22:00:46 hostname.host.org uwsgi[183388]: django.setup(set_prefix=False) May 08 22:00:46 hostname.host.org uwsgi[183388]: File "/opt/netbox-4.2.8/venv/lib64/python3.12/site-packages/django/__init__.py", line 19, in setup May 08 22:00:46 hostname.host.org uwsgi[183388]: configure_logging(settings.LOGGING_CONFIG, settings.LOGGING) May 08 22:00:46 hostname.host.org uwsgi[183388]: ^^^^^^^^^^^^^^^^^^^^^^^ May 08 22:00:46 hostname.host.org uwsgi[183388]: File "/opt/netbox-4.2.8/venv/lib64/python3.12/site-packages/django/conf/__init__.py", line 81, in __getattr__ May 08 22:00:46 hostname.host.org uwsgi[183388]: self._setup(name) May 08 22:00:46 hostname.host.org uwsgi[183388]: File "/opt/netbox-4.2.8/venv/lib64/python3.12/site-packages/django/conf/__init__.py", line 68, in _setup May 08 22:00:46 hostname.host.org uwsgi[183388]: self._wrapped = Settings(settings_module) May 08 22:00:46 hostname.host.org uwsgi[183388]: ^^^^^^^^^^^^^^^^^^^^^^^^^ May 08 22:00:46 hostname.host.org uwsgi[183388]: File "/opt/netbox-4.2.8/venv/lib64/python3.12/site-packages/django/conf/__init__.py", line 166, in __init__ May 08 22:00:46 hostname.host.org uwsgi[183388]: mod = importlib.import_module(self.SETTINGS_MODULE) May 08 22:00:46 hostname.host.org uwsgi[183388]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ May 08 22:00:46 hostname.host.org uwsgi[183388]: File "/usr/lib64/python3.12/importlib/__init__.py", line 90, in import_module May 08 22:00:46 hostname.host.org uwsgi[183388]: return _bootstrap._gcd_import(name[level:], package, level) May 08 22:00:46 hostname.host.org uwsgi[183388]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ May 08 22:00:46 hostname.host.org uwsgi[183388]: File "/opt/netbox-4.2.8/netbox/netbox/settings.py", line 814, in <module> May 08 22:00:46 hostname.host.org uwsgi[183388]: raise ImproperlyConfigured( May 08 22:00:46 hostname.host.org uwsgi[183388]: django.core.exceptions.ImproperlyConfigured: Plugin netbox_floorplan does not provide a 'config' variable. This should be defined in the plugin's __init__.py file and point to the PluginConfig subclass.
adam added the netbox label 2025-12-29 21:40:59 +01:00
adam closed this issue 2025-12-29 21:40:59 +01:00
Author
Owner

@pheus commented on GitHub (May 9, 2025):

Hi @warriorsoul15,

Thanks for reaching out — and sorry you’re having trouble getting plugins to work!

Just a quick heads-up: this issue tracker is intended for bugs and feature requests related to the NetBox core. For help with plugin installation or configuration, we recommend using the Discussions section with the “Help wanted” tag - it’s a great place to get support from the community.

That said, the error you’re seeing often happens when the plugin is not installed in the virtual environment that NetBox uses. To check this, activate your NetBox virtual environment and reinstall the plugin:

source /opt/netbox/venv/bin/activate
pip install netbox-floorplan

Also, make sure your configuration.py includes the plugin like this:

Example for ACL


PLUGINS = [
    "netbox_acls"
]

PLUGINS_CONFIG = {
    "netbox_acls": {
        "top_level_menu": True,
    },
}

Once that’s done, restart your NetBox application server and you should be good to go.

Hope this helps. Move this to Discussions for more in-depth troubleshooting.

@pheus commented on GitHub (May 9, 2025): Hi @warriorsoul15, Thanks for reaching out — and sorry you’re having trouble getting plugins to work! Just a quick heads-up: this issue tracker is intended for **bugs** and **feature requests** related to the NetBox core. For help with plugin installation or configuration, we recommend using the **Discussions** section with the _“Help wanted”_ tag - it’s a great place to get support from the community. That said, the error you’re seeing often happens when the plugin is not installed in the virtual environment that NetBox uses. To check this, activate your NetBox virtual environment and reinstall the plugin: ```bash source /opt/netbox/venv/bin/activate pip install netbox-floorplan ``` Also, make sure your configuration.py includes the plugin like this: Example for ACL ```python PLUGINS = [ "netbox_acls" ] PLUGINS_CONFIG = { "netbox_acls": { "top_level_menu": True, }, } ``` Once that’s done, restart your NetBox application server and you should be good to go. Hope this helps. Move this to Discussions for more in-depth troubleshooting.
Author
Owner

@arthanson commented on GitHub (May 9, 2025):

converting this to a discussion.

@arthanson commented on GitHub (May 9, 2025): converting this to a discussion.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11151