Open cdrag45 opened 3 years ago
The instruction is missing a } in the block just add it at the end
PLUGINS_CONFIG = { 'netbox_proxbox': { 'proxmox': { 'domain': 'proxbox.example.com', # May also be IP address 'http_port': 8006, 'user': 'root@pam', 'password': 'Strong@P4ssword', 'token': { 'name': 'tokenID', # Only type the token name and not the 'user@pam:tokenID' format 'value': '039az154-23b2-4be0-8d20-b66abc8c4686' }, 'ssl': False }, 'netbox': { 'domain': 'netbox.example.com', # May also be IP address 'http_port': 80, 'token': '0dd7cddfaee3b38bbffbd2937d44c4a03f9c9d38', 'ssl': False, # There is no support to SSL on Netbox yet, so let it always False. 'settings': { 'virtualmachine_role_id' : 0, 'node_role_id' : 0, 'site_id': 0 } } } }
I'm running into a different problem running the migrate command:
`(venv) user@netbox:/opt/netbox/netbox$ python3 manage.py migrate
Traceback (most recent call last):
File "/opt/netbox/venv/lib/python3.8/site-packages/django/core/management/base.py", line 414, in run_from_argv
self.execute(*args, *cmd_options)
File "/opt/netbox/venv/lib/python3.8/site-packages/django/core/management/base.py", line 460, in execute
output = self.handle(args, **options)
File "/opt/netbox/venv/lib/python3.8/site-packages/django/core/management/base.py", line 95, in wrapped
saved_locale = translation.get_language()
File "/opt/netbox/venv/lib/python3.8/site-packages/django/utils/translation/init.py", line 210, in get_language
return _trans.get_language()
File "/opt/netbox/venv/lib/python3.8/site-packages/django/utils/translation/init.py", line 65, in getattr
if settings.USE_I18N:
File "/opt/netbox/venv/lib/python3.8/site-packages/django/conf/init.py", line 87, in getattr
self._setup(name)
File "/opt/netbox/venv/lib/python3.8/site-packages/django/conf/init.py", line 74, in _setup
self._wrapped = Settings(settings_module)
File "/opt/netbox/venv/lib/python3.8/site-packages/django/conf/init.py", line 183, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "manage.py", line 10, in
Any hints?
"pip install proxmoxer" sorted the error for me. I also had to install the pynetbox module the same was whilst in the venv.
Hi, could you please try testing it again, if possible? There was several new updates to code since then. Thank you already!
(venv) ubuntu@apihub:/opt/netbox/netbox$ python3 manage.py migrate Traceback (most recent call last): File "manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/opt/netbox/venv/lib/python3.8/site-packages/django/core/management/in it.py", line 419, in execute_from_command_line
utility.execute()
File "/opt/netbox/venv/lib/python3.8/site-packages/django/core/management/in it.py", line 363, in execute
settings.INSTALLED_APPS
File "/opt/netbox/venv/lib/python3.8/site-packages/django/conf/init.py", l ine 82, in getattr
self._setup(name)
File "/opt/netbox/venv/lib/python3.8/site-packages/django/conf/init.py", l ine 69, in _setup
self._wrapped = Settings(settings_module)
File "/opt/netbox/venv/lib/python3.8/site-packages/django/conf/init.py", l ine 170, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 848, in exec_module
File "", line 219, in _call_with_frames_removed
File "/opt/netbox/netbox/netbox/settings.py", line 46, in
from netbox import configuration
File "/opt/netbox/netbox/netbox/configuration.py", line 241
PREFER_IPV4 = False
^
SyntaxError: invalid syntax