craft_parts.packages.errors module¶
Exceptions raised by the packages handling subsystem.
- exception craft_parts.packages.errors.BuildPackageNotFound(package)[source]¶
Bases:
PackagesError
A package listed in ‘build-packages’ was not found.
- Parameters:
package (
str
) – The name of the missing package.
- exception craft_parts.packages.errors.BuildPackagesNotInstalled(*, packages)[source]¶
Bases:
PackagesError
Could not install all requested build packages.
- Parameters:
packages (
Sequence
[str
]) – The packages to install.
- exception craft_parts.packages.errors.ChiselError(*, slices, output)[source]¶
Bases:
PackagesError
A “chisel”-related command failed.
- Parameters:
slices (
list
[str
])output (
str
)
- exception craft_parts.packages.errors.FileProviderNotFound(*, file_path)[source]¶
Bases:
PackagesError
A file is not provided by any package.
- Parameters:
file_path (
str
) – The file path.
- exception craft_parts.packages.errors.PackageBackendNotSupported(backend)[source]¶
Bases:
PartsError
Requested package resolved not supported on this host.
- Parameters:
backend (
str
)
- exception craft_parts.packages.errors.PackageBroken(package_name, *, deps)[source]¶
Bases:
PackagesError
Package has unmet dependencies.
- Parameters:
package_name (
str
) – The name of the package with unmet dependencies.deps (
Sequence
[str
]) – The list of unmet dependencies.
- exception craft_parts.packages.errors.PackageFetchError(message)[source]¶
Bases:
PackagesError
Failed to fetch package from remote repository.
- Parameters:
message (
str
) – The error message.
- exception craft_parts.packages.errors.PackageListRefreshError(message)[source]¶
Bases:
PackagesError
Failed to refresh the list of available packages.
- Parameters:
message (
str
) – The error message.
- exception craft_parts.packages.errors.PackageNotFound(package_name)[source]¶
Bases:
PackagesError
Requested package doesn’t exist in the remote repository.
- Parameters:
package_name (
str
) – The name of the missing package.
- exception craft_parts.packages.errors.PackagesDownloadError(*, packages)[source]¶
Bases:
PackagesError
Failed to download packages from remote repository.
- Parameters:
packages (
Sequence
[str
]) – The packages to download.
- exception craft_parts.packages.errors.PackagesError(brief, details=None, resolution=None, doc_slug=None)[source]¶
Bases:
PartsError
Base class for package handler errors.
- Parameters:
brief (
str
)details (
Optional
[str
])resolution (
Optional
[str
])doc_slug (
Optional
[str
])
- exception craft_parts.packages.errors.PackagesNotFound(packages)[source]¶
Bases:
PackagesError
Requested package doesn’t exist in the remote repository.
- Parameters:
package_name – The names of the missing packages.
packages (
Sequence
[str
])
- exception craft_parts.packages.errors.SnapDownloadError(*, snap_name, snap_channel)[source]¶
Bases:
PackagesError
Failed to download a snap.
- Parameters:
snap_name (
str
) – The snap name.snap_channel (
str
) – The snap channel.
- exception craft_parts.packages.errors.SnapGetAssertionError(*, assertion_params)[source]¶
Bases:
PackagesError
Failed to retrieve snap assertion.
- Parameters:
assertion_params (
Sequence
[str
]) – The snap assertion parameters.
- exception craft_parts.packages.errors.SnapInstallError(*, snap_name, snap_channel)[source]¶
Bases:
PackagesError
Failed to install a snap.
- Parameters:
snap_name (
str
) – The snap name.snap_channel (
str
) – The snap channel.
- exception craft_parts.packages.errors.SnapRefreshError(*, snap_name, snap_channel)[source]¶
Bases:
PackagesError
Failed to refresh a snap.
- Parameters:
snap_name (
str
) – The snap name.snap_channel (
str
) – The snap channel.
Bases:
PackagesError
Failed to install or refresh a snap.
- Parameters:
snap_name (
str
) – The snap name.snap_channel (
str
) – The snap channel.
- exception craft_parts.packages.errors.SnapdConnectionError(*, snap_name, url)[source]¶
Bases:
PackagesError
Failed to connect to snapd.
- Parameters:
snap_name (
str
) – The snap name.url (
str
) – The failed connection URL.
- exception craft_parts.packages.errors.UnpackError(package)[source]¶
Bases:
PackagesError
Error unpacking stage package.
- Parameters:
package (
str
) – The package that failed to unpack.