Python OS Module Error Codes
The Python OS module enables the coder to interact with the operating system. You can read files, write to them, manipulate paths and even run built-in operating system specific commands. It’s one of the most used modules, and one of the mos tproblematic.
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/ : error
errno.ENXIO : No such device or address
errno.ENOMEM : Out of memory
errno.EACCES : Permission denied
errno.EEXIST : File exists
errno.EISDIR : Is a directory
errno.EINVAL : Invalid argument
errno.EMFILE : Too many open files
errno.ETXTBSY : Text file busy
errno.EFBIG : File too large
errno.ENOSPC : No space left on device
errno.EROFS : Read-only file system
errno.ENAMETOOLONG : File name too long
errno.ENOTEMPTY : Directory not empty
errno.ENONET : Machine is not on the network
errno.ENOPKG : Package not installed
errno.ECOMM : Communication error on send
errno.EPROTO : Protocol error
errno.ELIBBAD : Accessing a corrupted shared library
errno.EUSERS : Too many users
errno.EDESTADDRREQ : Destination address required
errno.EMSGSIZE : Message too long
errno.ENOPROTOOPT : Protocol not available
errno.EPROTONOSUPPORT : Protocol not supported
errno.EADDRINUSE : Address already in use
errno.ENETDOWN : Network is down
errno.ENETUNREACH : Network is unreachable
errno.ECONNRESET : Connection reset by peer
errno.ENOBUFS : No buffer space available
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.EREMOTEIO : Remote I/O error
Python OS Module Error Codes |
OS.ERROR
The interaction between Python and the operating system brings about its own set of problems and error codes. Filename too long, path not valid and so on are represented as errno. values. Here’s a list of common ones.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/ : error
errno.ENXIO : No such device or address
errno.ENOMEM : Out of memory
errno.EACCES : Permission denied
errno.EEXIST : File exists
errno.EISDIR : Is a directory
errno.EINVAL : Invalid argument
errno.EMFILE : Too many open files
errno.ETXTBSY : Text file busy
errno.EFBIG : File too large
errno.ENOSPC : No space left on device
errno.EROFS : Read-only file system
errno.ENAMETOOLONG : File name too long
errno.ENOTEMPTY : Directory not empty
errno.ENONET : Machine is not on the network
errno.ENOPKG : Package not installed
errno.ECOMM : Communication error on send
errno.EPROTO : Protocol error
errno.ELIBBAD : Accessing a corrupted shared library
errno.EUSERS : Too many users
errno.EDESTADDRREQ : Destination address required
errno.EMSGSIZE : Message too long
errno.ENOPROTOOPT : Protocol not available
errno.EPROTONOSUPPORT : Protocol not supported
errno.EADDRINUSE : Address already in use
errno.ENETDOWN : Network is down
errno.ENETUNREACH : Network is unreachable
errno.ECONNRESET : Connection reset by peer
errno.ENOBUFS : No buffer space available
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.EREMOTEIO : Remote I/O error
0 Response to "Python OS Module Error Codes"
Post a Comment