exceptions
#
Conda exceptions.
Functions#
|
|
|
|
|
- exception ResolvePackageNotFound(bad_deps: collections.abc.Iterable[collections.abc.Iterable[conda.models.match_spec.MatchSpec]])#
Bases:
conda.CondaError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception LockError(message: str)#
Bases:
conda.CondaError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception ArgumentError(message: str, **kwargs)#
Bases:
conda.CondaError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- return_code = 2#
- exception Help(message: str | None, caused_by: Any | None = None, **kwargs)#
Bases:
conda.CondaError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception ActivateHelp#
Bases:
Help
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception DeactivateHelp#
Bases:
Help
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception GenericHelp(command: str)#
Bases:
Help
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception CondaSignalInterrupt(signum: int)#
Bases:
conda.CondaError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception TooManyArgumentsError(expected: int, received: int, offending_arguments: collections.abc.Iterable[str], optional_message: str = '', *args)#
Bases:
ArgumentError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception ClobberError(message: str, path_conflict: conda.base.constants.PathConflict, **kwargs)#
Bases:
conda.CondaError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- __repr__()#
Return repr(self).
- exception BasicClobberError(source_path: os.PathLike, target_path: os.PathLike, context: conda.base.context.Context)#
Bases:
ClobberError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception KnownPackageClobberError(target_path: os.PathLike, colliding_dist_being_linked: conda.models.records.PackageRecord | str, colliding_linked_dist: conda.models.records.PackageRecord | str, context: conda.base.context.Context)#
Bases:
ClobberError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception UnknownPackageClobberError(target_path: os.PathLike, colliding_dist_being_linked: conda.models.records.PackageRecord | str, context: conda.base.context.Context)#
Bases:
ClobberError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
Bases:
ClobberError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception CommandNotFoundError(command: str)#
Bases:
conda.CondaError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception PathNotFoundError(path: os.PathLike)#
Bases:
conda.CondaError
,OSError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception DirectoryNotFoundError(path: os.PathLike)#
Bases:
conda.CondaError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception EnvironmentLocationNotFound(location: os.PathLike)#
Bases:
conda.CondaError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception EnvironmentNameNotFound(environment_name: str)#
Bases:
conda.CondaError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception NoBaseEnvironmentError#
Bases:
conda.CondaError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception DirectoryNotACondaEnvironmentError(target_directory: os.PathLike)#
Bases:
conda.CondaError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception CondaEnvironmentError(message: str, *args)#
Bases:
conda.CondaError
,OSError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception DryRunExit#
Bases:
conda.CondaExitZero
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception CondaSystemExit(*args)#
Bases:
conda.CondaExitZero
,SystemExit
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception PaddingError(dist: str, placeholder: str, placeholder_length: int)#
Bases:
conda.CondaError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception LinkError(message: str)#
Bases:
conda.CondaError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception CondaOSError(message: str, **kwargs)#
Bases:
conda.CondaError
,OSError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception ProxyError#
Bases:
conda.CondaError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception CondaIOError(message: str, *args)#
Bases:
conda.CondaError
,OSError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception CondaFileIOError(filepath: os.PathLike, message: str, *args)#
Bases:
CondaIOError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception CondaKeyError(key: Any, message: str, *args)#
Bases:
conda.CondaError
,KeyError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception ChannelError(message: str | None, caused_by: Any | None = None, **kwargs)#
Bases:
conda.CondaError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception ChannelNotAllowed(channel: conda.models.channel.Channel)#
Bases:
ChannelError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- warning = 'Channel not included in allowlist'#
- exception ChannelDenied(channel: conda.models.channel.Channel)#
Bases:
ChannelNotAllowed
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- warning = 'Channel included in denylist'#
Bases:
ChannelError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception OperationNotAllowed(message: str)#
Bases:
conda.CondaError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception CondaImportError(message: str)#
Bases:
conda.CondaError
,ImportError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception ParseError(message: str)#
Bases:
conda.CondaError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception CouldntParseError(reason: str)#
Bases:
ParseError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception ChecksumMismatchError(url: str, target_full_path: os.PathLike, checksum_type: str, expected_checksum: str, actual_checksum: str, partial_download: bool = False)#
Bases:
conda.CondaError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception PackageNotInstalledError(prefix: os.PathLike, package_name: str)#
Bases:
conda.CondaError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception CondaHTTPError(message: str, url: str, status_code: int | str, reason: str, elapsed_time: datetime.timedelta | str, response: requests.Response | None = None, caused_by: Any = None)#
Bases:
conda.CondaError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception CondaSSLError(message: str | None, caused_by: Any | None = None, **kwargs)#
Bases:
conda.CondaError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception AuthenticationError(message: str | None, caused_by: Any | None = None, **kwargs)#
Bases:
conda.CondaError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception PackagesNotFoundError(packages: collections.abc.Iterable[conda.models.match_spec.MatchSpec | conda.models.records.PackageRecord | str], channel_urls: collections.abc.Iterable[str] = ())#
Bases:
conda.CondaError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception UnsatisfiableError(bad_deps: collections.abc.Iterable[collections.abc.Iterable[conda.models.match_spec.MatchSpec]], chains: bool = True, strict: bool = False)#
Bases:
conda.CondaError
An exception to report unsatisfiable dependencies.
- Parameters:
bad_deps -- a list of tuples of objects (likely MatchSpecs).
chains -- (optional) if True, the tuples are interpreted as chains of dependencies, from top level to bottom. If False, the tuples are interpreted as simple lists of conflicting specs.
- Returns:
Raises an exception with a formatted message detailing the unsatisfiable specifications.
Initialize self. See help(type(self)) for accurate signature.
- _format_chain_str(bad_deps: collections.abc.Iterable[collections.abc.Iterable[conda.models.match_spec.MatchSpec]])#
- exception RemoveError(message: str)#
Bases:
conda.CondaError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception DisallowedPackageError(package_ref: conda.models.records.PackageRecord, **kwargs)#
Bases:
conda.CondaError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception SpecsConfigurationConflictError(requested_specs: collections.abc.Iterable[conda.models.match_spec.MatchSpec], pinned_specs: collections.abc.Iterable[conda.models.match_spec.MatchSpec], prefix: os.PathLike)#
Bases:
conda.CondaError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception CondaIndexError(message: str)#
Bases:
conda.CondaError
,IndexError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception CondaValueError(message: str, *args, **kwargs)#
Bases:
conda.CondaError
,ValueError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception CyclicalDependencyError(packages_with_cycles: collections.abc.Iterable[conda.models.records.PackageRecord], **kwargs)#
Bases:
conda.CondaError
,ValueError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception CorruptedEnvironmentError(environment_location: os.PathLike, corrupted_file: os.PathLike, **kwargs)#
Bases:
conda.CondaError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception CondaHistoryError(message: str)#
Bases:
conda.CondaError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception CondaUpgradeError(message: str)#
Bases:
conda.CondaError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception CondaVerificationError(message: str)#
Bases:
conda.CondaError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception SafetyError(message: str)#
Bases:
conda.CondaError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception CondaMemoryError(caused_by: Any, **kwargs)#
Bases:
conda.CondaError
,MemoryError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception NotWritableError(path: os.PathLike, errno: int, **kwargs)#
Bases:
conda.CondaError
,OSError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception NoWritableEnvsDirError(envs_dirs: collections.abc.Iterable[os.PathLike], **kwargs)#
Bases:
conda.CondaError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception NoWritablePkgsDirError(pkgs_dirs: collections.abc.Iterable[os.PathLike], **kwargs)#
Bases:
conda.CondaError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception EnvironmentIsFrozenError(prefix: os.PathLike, message: str = '', **kwargs)#
Bases:
conda.CondaError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception EnvironmentNotWritableError(environment_location: os.PathLike, **kwargs)#
Bases:
conda.CondaError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception CondaDependencyError(message: str)#
Bases:
conda.CondaError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception BinaryPrefixReplacementError(path: os.PathLike, placeholder: str, new_prefix: os.PathLike, original_data_length: int, new_data_length: int)#
Bases:
conda.CondaError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception InvalidSpec(message: str, **kwargs)#
Bases:
conda.CondaError
,ValueError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception InvalidVersionSpec(invalid_spec: str | conda.models.match_spec.MatchSpec, details: str)#
Bases:
InvalidSpec
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception InvalidMatchSpec(invalid_spec: str | conda.models.match_spec.MatchSpec, details: str)#
Bases:
InvalidSpec
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception EncodingError(caused_by: Any, **kwargs)#
Bases:
conda.CondaError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception NoSpaceLeftError(caused_by: Any, **kwargs)#
Bases:
conda.CondaError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception CondaEnvException(message: str, *args, **kwargs)#
Bases:
conda.CondaError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception EnvironmentFileNotFound(filename: os.PathLike, *args, **kwargs)#
Bases:
CondaEnvException
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception EnvironmentFileExtensionNotValid(filename: os.PathLike, *args, **kwargs)#
Bases:
CondaEnvException
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception EnvironmentFileEmpty(filename: os.PathLike, *args, **kwargs)#
Bases:
CondaEnvException
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception EnvironmentFileNotDownloaded(username: str, packagename: str, *args, **kwargs)#
Bases:
conda.CondaError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception EnvironmentSpecPluginNotDetected(name, plugin_names, *args, **kwargs)#
Bases:
conda.CondaError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception SpecNotFound(msg: str, *args, **kwargs)#
Bases:
conda.CondaError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception PluginError(message: str | None, caused_by: Any | None = None, **kwargs)#
Bases:
conda.CondaError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- maybe_raise(error: BaseException, context: conda.base.context.Context)#
- print_conda_exception(exc_val: conda.CondaError, exc_tb: types.TracebackType | None = None)#
- _format_exc(exc_val: BaseException | None = None, exc_tb: types.TracebackType | None = None)#
- exception InvalidInstaller(name: str)#
Bases:
Exception
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception OfflineError(message: str | None, caused_by: Any | None = None, **kwargs)#
Bases:
conda.CondaError
,RuntimeError
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.