Skip to content

Errors

Module with all the custom errors.

DistNotFoundError

Raised when no PEKAT VISION was found in the default installation directory.

  • On Windows, the search location is C:\Program Files.
  • On Linux, the search location is /opt/PEKAT.

Location is searched for the pekat_vision/pekat_vision(.exe) binary.

DistNotExistsError

DistNotExistsError(path: Path, *args: tuple)

Raised when PEKAT VISION does not exist in the specified path.

PortIsAllocatedError

PortIsAllocatedError(port: int, *args: tuple)

Raised when the specified port is already used by another process.

InvalidDataTypeError

InvalidDataTypeError(type_: type, *args: tuple)

Raised when the input data is not a file path, bytes or a numpy array.

InvalidResponseTypeError

InvalidResponseTypeError(response_type: str, *args: tuple)

Raised when the response type is invalid.

ProjectNotFoundError

ProjectNotFoundError(path: Path, *args: tuple)

Raised when the project was not found in the specified location.

PekatNotStartedError

Raised when Instance couldn't start a project.

OpenCVImportError

Raised when the response_type is not "context" and OpenCV is not installed: cv2.

NoConnectionError

Raised when ping times out.