Exceptions

What gpype raises beyond the standard exceptions, by name.

exception gpype.ModuleNotAllowedError

Bases: RuntimeError

A document named a module this deployment does not permit.

exception gpype.MissingRequirementsError

Bases: BundleError

A document’s bundled code imports packages this host does not have.

exception gpype.BundleError

Bases: RuntimeError

A package could not be bundled or installed.

exception gpype.RequirementError[source]

Bases: BundleError

A pin is not exact, or a pinned wheel needs a distribution nobody pinned.

__init__(message, offenders=())[source]
offenders

What the message names, redacted.

exception gpype.RequirementConflictError[source]

Bases: BundleError

A pin, or what a pinned wheel needs or writes, conflicts with what is installed here.

__init__(message, offenders=())[source]
offenders

The conflicting pins or requirements.

exception gpype.InstallerError[source]

Bases: BundleError

pip, or this interpreter, cannot install a document’s pins.