netbox-community / netbox-demo-data

Demo data useful for populating demo instances of NetBox
MIT License
22 stars 10 forks source link

Demo Data import not working for V3.2 beta #5

Closed empusas closed 1 year ago

empusas commented 2 years ago

I did a fresh install in a test VM with netbox v3.2 beta 2, Python 3.8.10 on Ubuntu Focal 64

(netbox) vagrant@netbox-Dev-VM:~$ python3 /opt//netbox/netbox/manage.py loaddata -v 3 /home/vagrant/netbox-demo-v3.2.json
Loading '/home/vagrant/netbox-demo-v3.2' fixtures...
Checking '/home/vagrant' for fixtures...
Installing json fixture 'netbox-demo-v3.2' from '/home/vagrant'.
Traceback (most recent call last):
  File "/opt/netbox/.venv/netbox/lib/python3.8/site-packages/django/core/serializers/json.py", line 69, in Deserializer
    objects = json.loads(stream_or_string)
  File "/usr/lib/python3.8/json/__init__.py", line 357, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.8/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.8/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 7 column 1 (char 6)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt//netbox/netbox/manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/opt/netbox/.venv/netbox/lib/python3.8/site-packages/django/core/management/__init__.py", line 446, in execute_from_command_line
    utility.execute()
  File "/opt/netbox/.venv/netbox/lib/python3.8/site-packages/django/core/management/__init__.py", line 440, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/opt/netbox/.venv/netbox/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/netbox/lib/python3.8/site-packages/django/core/management/base.py", line 460, in execute
    output = self.handle(*args, **options)
  File "/opt/netbox/.venv/netbox/lib/python3.8/site-packages/django/core/management/commands/loaddata.py", line 102, in handle
    self.loaddata(fixture_labels)
  File "/opt/netbox/.venv/netbox/lib/python3.8/site-packages/django/core/management/commands/loaddata.py", line 163, in loaddata
    self.load_label(fixture_label)
  File "/opt/netbox/.venv/netbox/lib/python3.8/site-packages/django/core/management/commands/loaddata.py", line 251, in load_label
    for obj in objects:
  File "/opt/netbox/.venv/netbox/lib/python3.8/site-packages/django/core/serializers/json.py", line 74, in Deserializer
    raise DeserializationError() from exc
django.core.serializers.base.DeserializationError: Problem installing fixture '/home/vagrant/netbox-demo-v3.2.json':
(netbox) vagrant@netbox-Dev-VM:~$