English
Languages
English
Japanese
German
Korean
Portuguese, Brazilian
French
Shortcuts

qiskit.aqua.MissingOptionalLibraryError

exception MissingOptionalLibraryError(libname, name, pip_install=None, msg=None)[source]

Raised when an optional library is missing.

Set the error message.

Parameters
  • libname (str) – Name of missing library

  • name (str) – Name of class, function, module that uses this library

  • pip_install (Optional[str]) – pip install command, if any

  • msg (Optional[str]) – Descriptive message, if any

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.