errno β Standard errno system symbolsΒΆ
This module makes available standard errno system symbols. The value of each
symbol is the corresponding integer value. The names and descriptions are
borrowed from linux/include/errno.h, which should be
all-inclusive.
- errno.errorcodeΒΆ
Dictionary providing a mapping from the errno value to the string name in the underlying system. For instance,
errno.errorcode[errno.EPERM]maps to'EPERM'.
To translate a numeric error code to an error message, use os.strerror().
Of the following list, symbols that are not used on the current platform are not
defined by the module. The specific list of defined symbols is available as
errno.errorcode.keys(). Symbols available can include:
- errno.EPERMΒΆ
Operation not permitted. This error is mapped to the exception
PermissionError.
- errno.ENOENTΒΆ
No such file or directory. This error is mapped to the exception
FileNotFoundError.
- errno.ESRCHΒΆ
No such process. This error is mapped to the exception
ProcessLookupError.
- errno.EINTRΒΆ
Interrupted system call. This error is mapped to the exception
InterruptedError.
- errno.EIOΒΆ
I/O error
- errno.ENXIOΒΆ
No such device or address
- errno.E2BIGΒΆ
Arg list too long
- errno.ENOEXECΒΆ
Exec format error
- errno.EBADFΒΆ
Bad file number
- errno.ECHILDΒΆ
No child processes. This error is mapped to the exception
ChildProcessError.
- errno.EAGAINΒΆ
Try again. This error is mapped to the exception
BlockingIOError.
- errno.ENOMEMΒΆ
Out of memory
- errno.EACCESΒΆ
Permission denied. This error is mapped to the exception
PermissionError.
- errno.EFAULTΒΆ
Bad address
- errno.ENOTBLKΒΆ
Block device required
- errno.EBUSYΒΆ
Device or resource busy
- errno.EEXISTΒΆ
File exists. This error is mapped to the exception
FileExistsError.
- errno.EXDEVΒΆ
Cross-device link
- errno.ENODEVΒΆ
No such device
- errno.ENOTDIRΒΆ
Not a directory. This error is mapped to the exception
NotADirectoryError.
- errno.EISDIRΒΆ
Is a directory. This error is mapped to the exception
IsADirectoryError.
- errno.EINVALΒΆ
Invalid argument
- errno.ENFILEΒΆ
File table overflow
- errno.EMFILEΒΆ
Too many open files
- errno.ENOTTYΒΆ
Not a typewriter
- errno.ETXTBSYΒΆ
Text file busy
- errno.EFBIGΒΆ
File too large
- errno.ENOSPCΒΆ
No space left on device
- errno.ESPIPEΒΆ
Illegal seek
- errno.EROFSΒΆ
Read-only file system
- errno.EMLINKΒΆ
Too many links
- errno.EPIPEΒΆ
Broken pipe. This error is mapped to the exception
BrokenPipeError.
- errno.EDOMΒΆ
Math argument out of domain of func
- errno.ERANGEΒΆ
Math result not representable
- errno.EDEADLKΒΆ
Resource deadlock would occur
- errno.ENAMETOOLONGΒΆ
File name too long
- errno.ENOLCKΒΆ
No record locks available
- errno.ENOSYSΒΆ
Function not implemented
- errno.ENOTEMPTYΒΆ
Directory not empty
- errno.ELOOPΒΆ
Too many symbolic links encountered
- errno.EWOULDBLOCKΒΆ
Operation would block. This error is mapped to the exception
BlockingIOError.
- errno.ENOMSGΒΆ
No message of desired type
- errno.EIDRMΒΆ
Identifier removed
- errno.ECHRNGΒΆ
Channel number out of range
- errno.EL2NSYNCΒΆ
Level 2 not synchronized
- errno.EL3HLTΒΆ
Level 3 halted
- errno.EL3RSTΒΆ
Level 3 reset
- errno.ELNRNGΒΆ
Link number out of range
- errno.EUNATCHΒΆ
Protocol driver not attached
- errno.ENOCSIΒΆ
No CSI structure available
- errno.EL2HLTΒΆ
Level 2 halted
- errno.EBADEΒΆ
Invalid exchange
- errno.EBADRΒΆ
Invalid request descriptor
- errno.EXFULLΒΆ
Exchange full
- errno.ENOANOΒΆ
No anode
- errno.EBADRQCΒΆ
Invalid request code
- errno.EBADSLTΒΆ
Invalid slot
- errno.EDEADLOCKΒΆ
File locking deadlock error
- errno.EBFONTΒΆ
Bad font file format
- errno.ENOSTRΒΆ
Device not a stream
- errno.ENODATAΒΆ
No data available
- errno.ETIMEΒΆ
Timer expired
- errno.ENOSRΒΆ
Out of streams resources
- errno.ENONETΒΆ
Machine is not on the network
- errno.ENOPKGΒΆ
Package not installed
- errno.EREMOTEΒΆ
Object is remote
- errno.ENOLINKΒΆ
Link has been severed
- errno.EADVΒΆ
Advertise error
- errno.ESRMNTΒΆ
Srmount error
- errno.ECOMMΒΆ
Communication error on send
- errno.EPROTOΒΆ
Protocol error
- errno.EMULTIHOPΒΆ
Multihop attempted
- errno.EDOTDOTΒΆ
RFS specific error
- errno.EBADMSGΒΆ
Not a data message
- errno.EOVERFLOWΒΆ
Value too large for defined data type
- errno.ENOTUNIQΒΆ
Name not unique on network
- errno.EBADFDΒΆ
File descriptor in bad state
- errno.EREMCHGΒΆ
Remote address changed
- errno.ELIBACCΒΆ
Can not access a needed shared library
- errno.ELIBBADΒΆ
Accessing a corrupted shared library
- errno.ELIBSCNΒΆ
.lib section in a.out corrupted
- errno.ELIBMAXΒΆ
Attempting to link in too many shared libraries
- errno.ELIBEXECΒΆ
Cannot exec a shared library directly
- errno.EILSEQΒΆ
Illegal byte sequence
- errno.ERESTARTΒΆ
Interrupted system call should be restarted
- errno.ESTRPIPEΒΆ
Streams pipe error
- errno.EUSERSΒΆ
Too many users
- errno.ENOTSOCKΒΆ
Socket operation on non-socket
- errno.EDESTADDRREQΒΆ
Destination address required
- errno.EMSGSIZEΒΆ
Message too long
- errno.EPROTOTYPEΒΆ
Protocol wrong type for socket
- errno.ENOPROTOOPTΒΆ
Protocol not available
- errno.EPROTONOSUPPORTΒΆ
Protocol not supported
- errno.ESOCKTNOSUPPORTΒΆ
Socket type not supported
- errno.EOPNOTSUPPΒΆ
Operation not supported on transport endpoint
- errno.ENOTSUPΒΆ
Operation not supported
Added in version 3.2.
- errno.EPFNOSUPPORTΒΆ
Protocol family not supported
- errno.EAFNOSUPPORTΒΆ
Address family not supported by protocol
- errno.EADDRINUSEΒΆ
Address already in use
- errno.EADDRNOTAVAILΒΆ
Cannot assign requested address
- errno.ENETDOWNΒΆ
Network is down
- errno.ENETUNREACHΒΆ
Network is unreachable
- errno.ENETRESETΒΆ
Network dropped connection because of reset
- errno.ECONNABORTEDΒΆ
Software caused connection abort. This error is mapped to the exception
ConnectionAbortedError.
- errno.ECONNRESETΒΆ
Connection reset by peer. This error is mapped to the exception
ConnectionResetError.
- errno.ENOBUFSΒΆ
No buffer space available
- errno.EISCONNΒΆ
Transport endpoint is already connected
- errno.ENOTCONNΒΆ
Transport endpoint is not connected
- errno.ESHUTDOWNΒΆ
Cannot send after transport endpoint shutdown. This error is mapped to the exception
BrokenPipeError.
- errno.ETOOMANYREFSΒΆ
Too many references: cannot splice
- errno.ETIMEDOUTΒΆ
Connection timed out. This error is mapped to the exception
TimeoutError.
- errno.ECONNREFUSEDΒΆ
Connection refused. This error is mapped to the exception
ConnectionRefusedError.
- errno.EHOSTDOWNΒΆ
Host is down
- errno.EHOSTUNREACHΒΆ
No route to host
- errno.EHWPOISONΒΆ
Memory page has hardware error.
Added in version 3.14.
- errno.EALREADYΒΆ
Operation already in progress. This error is mapped to the exception
BlockingIOError.
- errno.EINPROGRESSΒΆ
Operation now in progress. This error is mapped to the exception
BlockingIOError.
- errno.ESTALEΒΆ
Stale NFS file handle
- errno.EUCLEANΒΆ
Structure needs cleaning
- errno.ENOTNAMΒΆ
Not a XENIX named type file
- errno.ENAVAILΒΆ
No XENIX semaphores available
- errno.EISNAMΒΆ
Is a named type file
- errno.EREMOTEIOΒΆ
Remote I/O error
- errno.EDQUOTΒΆ
Quota exceeded
- errno.EQFULLΒΆ
Interface output queue is full
Added in version 3.11.
- errno.ENOMEDIUMΒΆ
No medium found
- errno.EMEDIUMTYPEΒΆ
Wrong medium type
- errno.ENOKEYΒΆ
Required key not available
- errno.EKEYEXPIREDΒΆ
Key has expired
- errno.EKEYREVOKEDΒΆ
Key has been revoked
- errno.EKEYREJECTEDΒΆ
Key was rejected by service
- errno.ERFKILLΒΆ
Operation not possible due to RF-kill
- errno.ELOCKUNMAPPEDΒΆ
Locked lock was unmapped
- errno.ENOTACTIVEΒΆ
Facility is not active
- errno.EAUTHΒΆ
Authentication error
Added in version 3.2.
- errno.EBADARCHΒΆ
Bad CPU type in executable
Added in version 3.2.
- errno.EBADEXECΒΆ
Bad executable (or shared library)
Added in version 3.2.
- errno.EBADMACHOΒΆ
Malformed Mach-o file
Added in version 3.2.
- errno.EDEVERRΒΆ
Device error
Added in version 3.2.
- errno.EFTYPEΒΆ
Inappropriate file type or format
Added in version 3.2.
- errno.ENEEDAUTHΒΆ
Need authenticator
Added in version 3.2.
- errno.ENOATTRΒΆ
Attribute not found
Added in version 3.2.
- errno.ENOPOLICYΒΆ
Policy not found
Added in version 3.2.
- errno.EPROCLIMΒΆ
Too many processes
Added in version 3.2.
- errno.EPROCUNAVAILΒΆ
Bad procedure for program
Added in version 3.2.
- errno.EPROGMISMATCHΒΆ
Program version wrong
Added in version 3.2.
- errno.EPROGUNAVAILΒΆ
RPC prog. not avail
Added in version 3.2.
- errno.EPWROFFΒΆ
Device power is off
Added in version 3.2.
- errno.EBADRPCΒΆ
RPC struct is bad
Added in version 3.2.
- errno.ERPCMISMATCHΒΆ
RPC version wrong
Added in version 3.2.
- errno.ESHLIBVERSΒΆ
Shared library version mismatch
Added in version 3.2.
- errno.ENOTCAPABLEΒΆ
Capabilities insufficient. This error is mapped to the exception
PermissionError.Availability: WASI, FreeBSD
Added in version 3.11.1.
- errno.ECANCELEDΒΆ
Operation canceled
Added in version 3.2.
- errno.EOWNERDEADΒΆ
Owner died
Added in version 3.2.
- errno.ENOTRECOVERABLEΒΆ
State not recoverable
Added in version 3.2.