qiboteam / qibolab

Quantum hardware module and drivers for Qibo.
https://qibo.science
Apache License 2.0
43 stars 14 forks source link

_pydantic_core Validation Error - Input should be a valid list #1084

Closed aorgazf closed 3 weeks ago

aorgazf commented 3 weeks ago

Hi, I've pulled the latest changes to branch 0.1 and I now get the following error:

[Qibo 0.2.12|INFO|2024-10-30 13:47:53]: Loading platform dummy
Traceback (most recent call last):
  File "/nfs/users/alvaro.orgaz/.envs/main_october/bin/qq", line 8, in <module>
    sys.exit(command())
  File "/nfs/users/alvaro.orgaz/.envs/main_october/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/nfs/users/alvaro.orgaz/.envs/main_october/lib/python3.10/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/nfs/users/alvaro.orgaz/.envs/main_october/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/nfs/users/alvaro.orgaz/.envs/main_october/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/nfs/users/alvaro.orgaz/.envs/main_october/lib/python3.10/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/nfs/users/alvaro.orgaz/qibocal/src/qibocal/cli/_base.py", line 68, in auto
    runcard = Runcard.load(yaml.safe_load(runcard.read_text(encoding="utf-8")))
  File "/nfs/users/alvaro.orgaz/qibocal/src/qibocal/auto/runcard.py", line 45, in load
    return cls(**runcard)
  File "/nfs/users/alvaro.orgaz/.envs/main_october/lib/python3.10/site-packages/pydantic/_internal/_dataclasses.py", line 141, in __init__
    s.__pydantic_validator__.validate_python(ArgsKwargs(args, kwargs), self_instance=s)
pydantic_core._pydantic_core.ValidationError: 1 validation error for Runcard
actions
  Input should be a valid list [type=list_type, input_value=None, input_type=NoneType]
    For further information visit https://errors.pydantic.dev/2.9/v/list_type