Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for netbox 4.x #176

Open
dBitech opened this issue May 11, 2024 · 4 comments
Open

Support for netbox 4.x #176

dBitech opened this issue May 11, 2024 · 4 comments

Comments

@dBitech
Copy link

dBitech commented May 11, 2024

There were changes in netbox 3.7 which were further deprecated in 4.0 Please see Migrating Your Plugin to NetBox v4.0 for porting instructions to make the plugin compatible with 4.x

@xXAzazelXx
Copy link

xXAzazelXx commented Jul 21, 2024

Yep it's broken at the moment.
ModuleNotFoundError: No module named 'extras.plugins'

@OberMarcLP
Copy link

Can I do something to fix it, or must I wait until a new Version of Proxbox is coming out?

@Tehniels2000
Copy link

I also encountered the error today, i wanted to install this plugin on a new installation but got the following errors:

`1.171 Traceback (most recent call last):
1.171 File "/opt/netbox/venv/lib/python3.11/site-packages/django/core/management/init.py", line 255, in fetch_command
1.171 🧬 loaded config '/etc/netbox/config/configuration.py'
1.171 🧬 loaded config '/etc/netbox/config/extra.py'
1.171 🧬 loaded config '/etc/netbox/config/logging.py'
1.171 🧬 loaded config '/etc/netbox/config/plugins.py'
1.171 app_name = commands[subcommand]
1.171 ~~~~~~~~^^^^^^^^^^^^
1.171 KeyError: 'collectstatic'
1.171
1.171 During handling of the above exception, another exception occurred:
1.171
1.171 Traceback (most recent call last):
1.171 File "/opt/netbox/netbox/manage.py", line 10, in
1.172 execute_from_command_line(sys.argv)
1.172 File "/opt/netbox/venv/lib/python3.11/site-packages/django/core/management/init.py", line 442, in execute_from_command_line
1.172 utility.execute()
1.172 File "/opt/netbox/venv/lib/python3.11/site-packages/django/core/management/init.py", line 436, in execute
1.172 self.fetch_command(subcommand).run_from_argv(self.argv)
1.172 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1.172 File "/opt/netbox/venv/lib/python3.11/site-packages/django/core/management/init.py", line 262, in fetch_command
1.172 settings.INSTALLED_APPS
1.172 File "/opt/netbox/venv/lib/python3.11/site-packages/django/conf/init.py", line 89, in getattr
1.172 self._setup(name)
1.172 File "/opt/netbox/venv/lib/python3.11/site-packages/django/conf/init.py", line 76, in _setup
1.172 self._wrapped = Settings(settings_module)
1.172 ^^^^^^^^^^^^^^^^^^^^^^^^^
1.172 File "/opt/netbox/venv/lib/python3.11/site-packages/django/conf/init.py", line 190, in init
1.172 mod = importlib.import_module(self.SETTINGS_MODULE)
1.172 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1.172 File "/usr/lib/python3.11/importlib/init.py", line 126, in import_module
1.172 return _bootstrap._gcd_import(name[level:], package, level)
1.172 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1.172 File "", line 1204, in _gcd_import
1.172 File "", line 1176, in _find_and_load
1.172 File "", line 1147, in _find_and_load_unlocked
1.172 File "", line 690, in _load_unlocked
1.172 File "", line 940, in exec_module
1.173 File "", line 241, in _call_with_frames_removed
1.173 File "/opt/netbox/netbox/netbox/settings.py", line 785, in
1.173 raise e
1.173 File "/opt/netbox/netbox/netbox/settings.py", line 778, in
1.173 plugin = importlib.import_module(plugin_name)
1.173 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1.173 File "/usr/lib/python3.11/importlib/init.py", line 126, in import_module
1.173 return _bootstrap._gcd_import(name[level:], package, level)
1.173 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1.173 File "", line 1204, in _gcd_import
1.173 File "", line 1176, in _find_and_load
1.173 File "", line 1147, in _find_and_load_unlocked
1.173 File "", line 690, in _load_unlocked
1.173 File "", line 940, in exec_module
1.173 File "", line 241, in _call_with_frames_removed
1.173 File "/opt/netbox/venv/lib/python3.11/site-packages/netbox_proxbox/init.py", line 2, in
1.173 from extras.plugins import PluginConfig
1.173 ModuleNotFoundError: No module named 'extras.plugins'

`

Seems that the issue still fails on ModuleNotFoundError: No module named 'extras.plugins', can someone check this out?

I am running on Netbox v4.0.9

@Uzoma8Chi
Copy link

Why do you not make a new release for 4.x? I already see commit.
de2bb66c78be3cf8d20c93afd2f0e3c5ed6b3d9c\
Since I use docker I do not know how to use non released changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants