Skip to content

MissingDependencyError(package_name, extra_name) Source

Bases: NumdaplotError

Raised when reading or writing Excel or Parquet files without the matching optional package.

Added in version 0.1.0

Parameters:

  • package_name (str)

    Name of the missing package, such as openpyxl.

  • extra_name (str)

    Name of the numdaplot extra that installs it, such as excel.

Attributes:

  • package_name

    Name of the missing package, such as openpyxl.

  • extra_name

    Name of the numdaplot extra that installs it, such as excel.

Examples:

import numdaplot as ndp

print(ndp.MissingDependencyError("openpyxl", "excel"))
# This file format needs the openpyxl package, install it with: pip install numdaplot[excel]