DreamConfigError
class DreamConfigError(DreamError, ValueError)
Importable as dream.DreamConfigError.
Something the caller passed or configured is wrong; the message says what, and the same call fails again.
The causes a customer meets:
- no API key: pass
api_key, or setDREAM_API_KEYin the environment or in~/.dreamlabs/credentials; - an API key holding a character an HTTP header cannot carry (a line break, a typographic quote): copy the key again;
- a URL that is not
http(s)://<host>[:<port>](in the credentials, or passed toDreamClient), a host name that is not valid (a space, an empty label), or a credentials file that cannot be read; the message names the URL or the file; - a config key of the wrong type or range, a missing
checkpoint, or a key the client does not take (DreamClient.policy()); DreamClient.set_observation(),DreamClient.get_action()or another inference call beforeDreamClient.policy();- an embodiment config that is not valid (the message names the key or part);
- a dataset path that is not a directory or cannot be listed, or a request value JSON cannot carry (a numpy number as a fine-tuning knob: pass a Python
intorfloat); - the dataset dependencies missing; the message says how to install the library with them.
The model refusing a request as malformed (DA-4000) is DreamBadRequest, a subclass.
Raised by
dream.datasets.add_embodiment()dream.datasets.list_embodiments()dream.datasets.validate_dataset()dream.datasets.upload_dataset()dream.datasets.get_dataset()dream.datasets.list_datasets()dream.datasets.retry_dataset()dream.datasets.delete_dataset()dream.fine_tuning.create()dream.fine_tuning.check_eef()dream.fine_tuning.list()dream.fine_tuning.get()dream.fine_tuning.cancel()dream.fine_tuning.queue()dream.models.list_models()DreamClient()DreamClient.add_embodiment()DreamClient.get_embodiments()DreamClient.get_models()DreamClient.validate_dataset()DreamClient.upload_dataset()DreamClient.get_dataset_status()DreamClient.get_datasets()DreamClient.retry_dataset()DreamClient.delete_dataset()DreamClient.finetune()DreamClient.get_finetuning_status()DreamClient.policy()DreamClient.set_observation()DreamClient.get_action()DreamClient.reset_episode()DreamClient.wait_for_ik()DreamClient.refill_due()DreamClient.execution_horizon()DreamClient.action_hz()DreamClient.mode()LiveViewClient()
Subclasses: DreamBadRequest