MissingOptionalDependencyError

class of dascore.exceptions
inherits from: ImportError, DependencyError, DASCoreError, Exception, BaseException
source

MissingOptionalDependencyError(
    *args ,
    install_name: str | None[str, None] = None,
    **kwargs ,
)

Raised when an optional package needed for some functionality is missing.

The install_name attribute, when set, gives the name of the package to install (eg protobuf) which may differ from the import name (eg google.protobuf). It defaults on the class so subclasses which don’t call this init still have it.