Eccezioni Python
Sfoglia tutti i 80 codici di errore Eccezioni Python con cause, soluzioni ed esempi.
SyntaxErrorSyntaxError
Python ha incontrato una sintassi non valida che non può essere analizzata.
IndentationErrorIndentationError
Il codice presenta un'indentazione errata, che in Python ha rilevanza sintattica.
TabErrorTabError
L'indentazione utilizza un mix incoerente di tab e spazi.
TypeErrorTypeError
Un'operazione o funzione è stata applicata a un oggetto di tipo inappropriato.
ValueErrorValueError
Una funzione ha ricevuto un argomento del tipo corretto ma con un valore inappropriato.
KeyErrorKeyError
Una chiave del dizionario non è stata trovata nel dizionario.
IndexErrorIndexError: list index out of range
Un indice di sequenza è fuori dall'intervallo valido per la sequenza specificata.
AttributeErrorAttributeError
Un oggetto non possiede l'attributo o il metodo richiesto.
NameErrorNameError: il nome non è definito
È stato referenziato un nome locale o globale che non è stato definito.
UnboundLocalErrorUnboundLocalError
Una variabile locale è stata referenziata prima di essere stata assegnata a un valore.
ImportErrorImportError
Un'istruzione import non è riuscita a trovare o caricare il modulo o il nome specificato.
ModuleNotFoundErrorModuleNotFoundError
Python non ha trovato il modulo specificato da importare.
FileNotFoundErrorFileNotFoundError
Il file o la directory specificata non esiste.
FileExistsErrorFileExistsError
Un'operazione è fallita perché il file o la directory esiste già.
PermissionErrorPermissionError
L'operazione non è consentita a causa di permessi insufficienti sul file system.
OSErrorOSError
Si è verificato un errore a livello di sistema durante un'operazione I/O.
IOErrorIOError
Un'operazione I/O è fallita. IOError è un alias di OSError in Python 3.
IsADirectoryErrorIsADirectoryError
È stata tentata un'operazione su file su un percorso che è una directory.
NotADirectoryErrorNotADirectoryError
È stata tentata un'operazione su directory su un percorso che non è una directory.
ZeroDivisionErrorZeroDivisionError
È stata tentata un'operazione di divisione o modulo con zero come divisore.
ArithmeticErrorArithmeticError
Classe base per gli errori aritmetici, inclusi ZeroDivisionError, OverflowError e FloatingPointError.
OverflowErrorOverflowError
Il risultato di un'operazione aritmetica è troppo grande per essere rappresentato.
FloatingPointErrorFloatingPointError
Un'operazione in virgola mobile è fallita. Raramente si verifica a meno che fpectl non sia abilitato.
StopIterationStopIteration
Sollevata dalla funzione next() per indicare che non ci sono ulteriori elementi in un iteratore.
- StopAsyncIteration
- GeneratorExit
- KeyboardInterrupt
- SystemExit
- MemoryError
- RecursionError
- RuntimeError
- NotImplementedError
- LookupError
- AssertionError
- EOFError
- UnicodeEncodeError
- UnicodeDecodeError
- UnicodeTranslateError
- ConnectionError
- ConnectionRefusedError
- ConnectionResetError
- ConnectionAbortedError
- BrokenPipeError
- TimeoutError
- ChildProcessError
- ProcessLookupError — Ricerca del Processo Fallita
- InterruptedError
- BlockingIOError
- EnvironmentError
- BufferError
- DeprecationWarning
- FutureWarning
- ResourceWarning
- ExceptionGroup
- requests.exceptions.ConnectionError
- requests.exceptions.Timeout
- requests.exceptions.HTTPError
- json.JSONDecodeError
- pickle.UnpicklingError
- asyncio.TimeoutError
- asyncio.CancelledError
- struct.error
- re.error: espressione regolare non valida
- subprocess.CalledProcessError
- TypeError: tipo non hashable
- TypeError: manca un argomento posizionale obbligatorio
- TypeError: l'oggetto non è subscriptable
- TypeError: l'oggetto non è callable
- TypeError: l'oggetto non è iterabile
- django.core.exceptions.ImproperlyConfigured
- Model.DoesNotExist
- sqlalchemy.exc.OperationalError
- pandas KeyError: colonna non trovata
- numpy ValueError: shape non compatibile
- pip: ERROR: Impossibile installare i pacchetti
- ssl.SSLCertVerificationError
- socket.gaierror: nome o servizio sconosciuto
- concurrent.futures.TimeoutError
- pydantic.ValidationError
- multiprocessing.AuthenticationError