I am trying to generate a device_db.py file from modified gateware. I have previously done this successfully and tested the output signals from the modified gateware so I know that it works but I have had to create a whole new host PC system and therefore lost my device_db.py file. I have been advised that there are two ways to create the device_db.py file. However with both methods I am getting the same error as shown below. Could someone please advise me on this.
strontium@strontium-VirtualBox:~$ artiq_ddb_template ubirmingham2.json > device_db.py
Traceback (most recent call last):
File "/nix/store/bxwlk55kz5c219fi2z8jdr1wvnq6c99a-python3.9-artiq-7.8116.eba143a/bin/.artiq_ddb_template-wrapped", line 6, in <module>
from artiq.frontend.artiq_ddb_template import main
File "/nix/store/lk71n8bhpaswwz2iv8hb68sw2a2vpdii-python3-3.9.13-env/lib/python3.9/site-packages/artiq/frontend/artiq_ddb_template.py", line 10, in <module>
from artiq.coredevice import jsondesc
File "/nix/store/lk71n8bhpaswwz2iv8hb68sw2a2vpdii-python3-3.9.13-env/lib/python3.9/site-packages/artiq/coredevice/jsondesc.py", line 3, in <module>
from jsonschema import Draft7Validator, validators
ModuleNotFoundError: No module named 'jsonschema'
strontium@strontium-VirtualBox:~$ python -m artiq.frontend.artiq_ddb_template ubirmingham.json -o device_db.py
Traceback (most recent call last):
File "/nix/store/65h1mb8604dbw077762j702q6b8i0mpw-python3-3.9.13/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/nix/store/65h1mb8604dbw077762j702q6b8i0mpw-python3-3.9.13/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/nix/store/lk71n8bhpaswwz2iv8hb68sw2a2vpdii-python3-3.9.13-env/lib/python3.9/site-packages/artiq/frontend/artiq_ddb_template.py", line 10, in <module>
from artiq.coredevice import jsondesc
File "/nix/store/lk71n8bhpaswwz2iv8hb68sw2a2vpdii-python3-3.9.13-env/lib/python3.9/site-packages/artiq/coredevice/jsondesc.py", line 3, in <module>
from jsonschema import Draft7Validator, validators
ModuleNotFoundError: No module named 'jsonschema'