Replies: 1 comment 2 replies
-
Have you done this? https://docs.netbox.dev/en/stable/installation/3-netbox/#configuration |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Good morning ,
I am installing Netbox but I have just encountered a problem when I execute the command source /opt/netbox/venv/bin/activate at the end of the command here are the errors found : Skipping local dependencies (local_requirements.txt not found)
Applying database migrations (python3 netbox/manage.py migrate)...
Traceback (most recent call last):
File "/opt/netbox-3.7.3/netbox/netbox/settings.py", line 52, in
configuration = importlib.import_module(config_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1206, in _gcd_import
File "", line 1178, in _find_and_load
File "", line 1142, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'netbox.configuration'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/netbox-3.7.3/netbox/manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/opt/netbox-3.7.3/venv/lib/python3.11/site-packages/django/core/management/init.py", line 442, in execute_from_command_line
utility.execute()
File "/opt/netbox-3.7.3/venv/lib/python3.11/site-packages/django/core/management/init.py", line 436, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/opt/netbox-3.7.3/venv/lib/python3.11/site-packages/django/core/management/base.py", line 412, in run_from_argv
self.execute(*args, **cmd_options)
File "/opt/netbox-3.7.3/venv/lib/python3.11/site-packages/django/core/management/base.py", line 458, in execute
output = self.handle(*args, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/netbox-3.7.3/venv/lib/python3.11/site-packages/django/core/management/base.py", line 103, in wrapper
saved_locale = translation.get_language()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/netbox-3.7.3/venv/lib/python3.11/site-packages/django/utils/translation/init.py", line 210, in get_language
return _trans.get_language()
^^^^^^^^^^^^^^^^^^^
File "/opt/netbox-3.7.3/venv/lib/python3.11/site-packages/django/utils/translation/init.py", line 65, in getattr
if settings.USE_I18N:
^^^^^^^^^^^^^^^^^
File "/opt/netbox-3.7.3/venv/lib/python3.11/site-packages/django/conf/init.py", line 102, in getattr
self._setup(name)
File "/opt/netbox-3.7.3/venv/lib/python3.11/site-packages/django/conf/init.py", line 89, in _setup
self._wrapped = Settings(settings_module)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/netbox-3.7.3/venv/lib/python3.11/site-packages/django/conf/init.py", line 217, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1206, in _gcd_import
File "", line 1178, in _find_and_load
File "", line 1149, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/opt/netbox-3.7.3/netbox/netbox/settings.py", line 55, in
raise ImproperlyConfigured(
django.core.exceptions.ImproperlyConfigured: Specified configuration module (netbox.configuration) not found. Please define netbox/netbox/configuration.py per the documentation, or specify an alternate module in the NETBOX_CONFIGURATION environment variable.
root@Netbox:/# source /opt/netbox-3.7.3/venv/bin/activate
(venv) root@Netbox:/# cd /opt/netbox-3.7.3/netbox/
(venv) root@Netbox:/opt/netbox-3.7.3/netbox# ls
account core extras ipam media project-static scripts tenancy users virtualization wireless
circuits dcim generate_secret_key.py manage.py netbox reports templates translations utilities vpn
(venv) root@Netbox:/opt/netbox-3.7.3/netbox# python3 manage.py createsuperuser
Traceback (most recent call last):
File "/opt/netbox-3.7.3/venv/lib/python3.11/site-packages/django/core/management/init.py", line 255, in fetch_command
app_name = commands[subcommand]
~~~~~~~~^^^^^^^^^^^^
KeyError: 'createsuperuser'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/netbox-3.7.3/netbox/netbox/settings.py", line 52, in
configuration = importlib.import_module(config_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1206, in _gcd_import
File "", line 1178, in _find_and_load
File "", line 1142, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'netbox.configuration'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/netbox-3.7.3/netbox/manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/opt/netbox-3.7.3/venv/lib/python3.11/site-packages/django/core/management/init.py", line 442, in execute_from_command_line
utility.execute()
File "/opt/netbox-3.7.3/venv/lib/python3.11/site-packages/django/core/management/init.py", line 436, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/netbox-3.7.3/venv/lib/python3.11/site-packages/django/core/management/init.py", line 262, in fetch_command
settings.INSTALLED_APPS
File "/opt/netbox-3.7.3/venv/lib/python3.11/site-packages/django/conf/init.py", line 102, in getattr
self._setup(name)
File "/opt/netbox-3.7.3/venv/lib/python3.11/site-packages/django/conf/init.py", line 89, in _setup
self._wrapped = Settings(settings_module)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/netbox-3.7.3/venv/lib/python3.11/site-packages/django/conf/init.py", line 217, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1206, in _gcd_import
File "", line 1178, in _find_and_load
File "", line 1149, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/opt/netbox-3.7.3/netbox/netbox/settings.py", line 55, in
raise ImproperlyConfigured(
django.core.exceptions.ImproperlyConfigured: Specified configuration module (netbox.configuration) not found. Please define netbox/netbox/configuration.py per the documentation, or specify an alternate module in the NETBOX_CONFIGURATION environment variable.
can someone help me to solve the problem please? thank you in advance
Beta Was this translation helpful? Give feedback.
All reactions