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 pretty 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
errno.ENOENTΒΆ
No such file or directory
errno.ESRCHΒΆ
No such process
errno.EINTRΒΆ
Interrupted system call
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
errno.EAGAINΒΆ
Try again
errno.ENOMEMΒΆ
Out of memory
errno.EACCESΒΆ
Permission denied
errno.EFAULTΒΆ
Bad address
errno.ENOTBLKΒΆ
Block device required
errno.EBUSYΒΆ
Device or resource busy
errno.EEXISTΒΆ
File exists
errno.EXDEVΒΆ
Cross-device link
errno.ENODEVΒΆ
No such device
errno.ENOTDIRΒΆ
Not a directory
errno.EISDIRΒΆ
Is a directory
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
Too many links
errno.EPIPEΒΆ
Broken pipe
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
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
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.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
errno.ECONNRESETΒΆ
Connection reset by peer
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
errno.ETOOMANYREFSΒΆ
Too many references: cannot splice
errno.ETIMEDOUTΒΆ
Connection timed out
errno.ECONNREFUSEDΒΆ
Connection refused
errno.EHOSTDOWNΒΆ
Host is down
errno.EHOSTUNREACHΒΆ
No route to host
errno.EALREADYΒΆ
Operation already in progress
errno.EINPROGRESSΒΆ
Operation now in progress
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

Previous topic

platform — Access to underlying platform’s identifying data.

Next topic

ctypes — A foreign function library for Python.

This Page