LocalEntryNotFoundError class

Raised when trying to access a file or snapshot that is not on the disk when network is disabled or unavailable (connection issue). The entry may exist on the Hub.

Note: ValueError type is to ensure backward compatibility. Note: LocalEntryNotFoundError derives from HTTPError because of EntryNotFoundError even when it is not a network issue.

Example:

>>> from huggingface_hub import hf_hub_download
>>> hf_hub_download('bert-base-cased', '<non-cached-file>',  local_files_only=True)
(...)
huggingface_hub.utils._errors.LocalEntryNotFoundError: Cannot find the requested files in the disk cache and outgoing traffic has been disabled. To enable hf.co look-ups and downloads online, set 'local_files_only' to False.
Inheritance

Constructors

LocalEntryNotFoundError(String message, [Response? response, String? serverMessage])

Properties

hashCode int
The hash code for this object.
no setterinherited
message String
getter/setter pairinherited
requestId String?
getter/setter pairinherited
response ↔ Response?
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serverMessage String?
getter/setter pairinherited

Methods

appendToMessage(String additionalMessage) → void
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

clsName String
final