1:mod:`errno` --- Standard errno system symbols 2============================================== 3 4.. module:: errno 5 :synopsis: Standard errno system symbols. 6 7---------------- 8 9This module makes available standard ``errno`` system symbols. The value of each 10symbol is the corresponding integer value. The names and descriptions are 11borrowed from :file:`linux/include/errno.h`, which should be pretty 12all-inclusive. 13 14 15.. data:: errorcode 16 17 Dictionary providing a mapping from the errno value to the string name in the 18 underlying system. For instance, ``errno.errorcode[errno.EPERM]`` maps to 19 ``'EPERM'``. 20 21To translate a numeric error code to an error message, use :func:`os.strerror`. 22 23Of the following list, symbols that are not used on the current platform are not 24defined by the module. The specific list of defined symbols is available as 25``errno.errorcode.keys()``. Symbols available can include: 26 27 28.. data:: EPERM 29 30 Operation not permitted 31 32 33.. data:: ENOENT 34 35 No such file or directory 36 37 38.. data:: ESRCH 39 40 No such process 41 42 43.. data:: EINTR 44 45 Interrupted system call. 46 47 .. seealso:: 48 This error is mapped to the exception :exc:`InterruptedError`. 49 50 51.. data:: EIO 52 53 I/O error 54 55 56.. data:: ENXIO 57 58 No such device or address 59 60 61.. data:: E2BIG 62 63 Arg list too long 64 65 66.. data:: ENOEXEC 67 68 Exec format error 69 70 71.. data:: EBADF 72 73 Bad file number 74 75 76.. data:: ECHILD 77 78 No child processes 79 80 81.. data:: EAGAIN 82 83 Try again 84 85 86.. data:: ENOMEM 87 88 Out of memory 89 90 91.. data:: EACCES 92 93 Permission denied 94 95 96.. data:: EFAULT 97 98 Bad address 99 100 101.. data:: ENOTBLK 102 103 Block device required 104 105 106.. data:: EBUSY 107 108 Device or resource busy 109 110 111.. data:: EEXIST 112 113 File exists 114 115 116.. data:: EXDEV 117 118 Cross-device link 119 120 121.. data:: ENODEV 122 123 No such device 124 125 126.. data:: ENOTDIR 127 128 Not a directory 129 130 131.. data:: EISDIR 132 133 Is a directory 134 135 136.. data:: EINVAL 137 138 Invalid argument 139 140 141.. data:: ENFILE 142 143 File table overflow 144 145 146.. data:: EMFILE 147 148 Too many open files 149 150 151.. data:: ENOTTY 152 153 Not a typewriter 154 155 156.. data:: ETXTBSY 157 158 Text file busy 159 160 161.. data:: EFBIG 162 163 File too large 164 165 166.. data:: ENOSPC 167 168 No space left on device 169 170 171.. data:: ESPIPE 172 173 Illegal seek 174 175 176.. data:: EROFS 177 178 Read-only file system 179 180 181.. data:: EMLINK 182 183 Too many links 184 185 186.. data:: EPIPE 187 188 Broken pipe 189 190 191.. data:: EDOM 192 193 Math argument out of domain of func 194 195 196.. data:: ERANGE 197 198 Math result not representable 199 200 201.. data:: EDEADLK 202 203 Resource deadlock would occur 204 205 206.. data:: ENAMETOOLONG 207 208 File name too long 209 210 211.. data:: ENOLCK 212 213 No record locks available 214 215 216.. data:: ENOSYS 217 218 Function not implemented 219 220 221.. data:: ENOTEMPTY 222 223 Directory not empty 224 225 226.. data:: ELOOP 227 228 Too many symbolic links encountered 229 230 231.. data:: EWOULDBLOCK 232 233 Operation would block 234 235 236.. data:: ENOMSG 237 238 No message of desired type 239 240 241.. data:: EIDRM 242 243 Identifier removed 244 245 246.. data:: ECHRNG 247 248 Channel number out of range 249 250 251.. data:: EL2NSYNC 252 253 Level 2 not synchronized 254 255 256.. data:: EL3HLT 257 258 Level 3 halted 259 260 261.. data:: EL3RST 262 263 Level 3 reset 264 265 266.. data:: ELNRNG 267 268 Link number out of range 269 270 271.. data:: EUNATCH 272 273 Protocol driver not attached 274 275 276.. data:: ENOCSI 277 278 No CSI structure available 279 280 281.. data:: EL2HLT 282 283 Level 2 halted 284 285 286.. data:: EBADE 287 288 Invalid exchange 289 290 291.. data:: EBADR 292 293 Invalid request descriptor 294 295 296.. data:: EXFULL 297 298 Exchange full 299 300 301.. data:: ENOANO 302 303 No anode 304 305 306.. data:: EBADRQC 307 308 Invalid request code 309 310 311.. data:: EBADSLT 312 313 Invalid slot 314 315 316.. data:: EDEADLOCK 317 318 File locking deadlock error 319 320 321.. data:: EBFONT 322 323 Bad font file format 324 325 326.. data:: ENOSTR 327 328 Device not a stream 329 330 331.. data:: ENODATA 332 333 No data available 334 335 336.. data:: ETIME 337 338 Timer expired 339 340 341.. data:: ENOSR 342 343 Out of streams resources 344 345 346.. data:: ENONET 347 348 Machine is not on the network 349 350 351.. data:: ENOPKG 352 353 Package not installed 354 355 356.. data:: EREMOTE 357 358 Object is remote 359 360 361.. data:: ENOLINK 362 363 Link has been severed 364 365 366.. data:: EADV 367 368 Advertise error 369 370 371.. data:: ESRMNT 372 373 Srmount error 374 375 376.. data:: ECOMM 377 378 Communication error on send 379 380 381.. data:: EPROTO 382 383 Protocol error 384 385 386.. data:: EMULTIHOP 387 388 Multihop attempted 389 390 391.. data:: EDOTDOT 392 393 RFS specific error 394 395 396.. data:: EBADMSG 397 398 Not a data message 399 400 401.. data:: EOVERFLOW 402 403 Value too large for defined data type 404 405 406.. data:: ENOTUNIQ 407 408 Name not unique on network 409 410 411.. data:: EBADFD 412 413 File descriptor in bad state 414 415 416.. data:: EREMCHG 417 418 Remote address changed 419 420 421.. data:: ELIBACC 422 423 Can not access a needed shared library 424 425 426.. data:: ELIBBAD 427 428 Accessing a corrupted shared library 429 430 431.. data:: ELIBSCN 432 433 .lib section in a.out corrupted 434 435 436.. data:: ELIBMAX 437 438 Attempting to link in too many shared libraries 439 440 441.. data:: ELIBEXEC 442 443 Cannot exec a shared library directly 444 445 446.. data:: EILSEQ 447 448 Illegal byte sequence 449 450 451.. data:: ERESTART 452 453 Interrupted system call should be restarted 454 455 456.. data:: ESTRPIPE 457 458 Streams pipe error 459 460 461.. data:: EUSERS 462 463 Too many users 464 465 466.. data:: ENOTSOCK 467 468 Socket operation on non-socket 469 470 471.. data:: EDESTADDRREQ 472 473 Destination address required 474 475 476.. data:: EMSGSIZE 477 478 Message too long 479 480 481.. data:: EPROTOTYPE 482 483 Protocol wrong type for socket 484 485 486.. data:: ENOPROTOOPT 487 488 Protocol not available 489 490 491.. data:: EPROTONOSUPPORT 492 493 Protocol not supported 494 495 496.. data:: ESOCKTNOSUPPORT 497 498 Socket type not supported 499 500 501.. data:: EOPNOTSUPP 502 503 Operation not supported on transport endpoint 504 505 506.. data:: EPFNOSUPPORT 507 508 Protocol family not supported 509 510 511.. data:: EAFNOSUPPORT 512 513 Address family not supported by protocol 514 515 516.. data:: EADDRINUSE 517 518 Address already in use 519 520 521.. data:: EADDRNOTAVAIL 522 523 Cannot assign requested address 524 525 526.. data:: ENETDOWN 527 528 Network is down 529 530 531.. data:: ENETUNREACH 532 533 Network is unreachable 534 535 536.. data:: ENETRESET 537 538 Network dropped connection because of reset 539 540 541.. data:: ECONNABORTED 542 543 Software caused connection abort 544 545 546.. data:: ECONNRESET 547 548 Connection reset by peer 549 550 551.. data:: ENOBUFS 552 553 No buffer space available 554 555 556.. data:: EISCONN 557 558 Transport endpoint is already connected 559 560 561.. data:: ENOTCONN 562 563 Transport endpoint is not connected 564 565 566.. data:: ESHUTDOWN 567 568 Cannot send after transport endpoint shutdown 569 570 571.. data:: ETOOMANYREFS 572 573 Too many references: cannot splice 574 575 576.. data:: ETIMEDOUT 577 578 Connection timed out 579 580 581.. data:: ECONNREFUSED 582 583 Connection refused 584 585 586.. data:: EHOSTDOWN 587 588 Host is down 589 590 591.. data:: EHOSTUNREACH 592 593 No route to host 594 595 596.. data:: EALREADY 597 598 Operation already in progress 599 600 601.. data:: EINPROGRESS 602 603 Operation now in progress 604 605 606.. data:: ESTALE 607 608 Stale NFS file handle 609 610 611.. data:: EUCLEAN 612 613 Structure needs cleaning 614 615 616.. data:: ENOTNAM 617 618 Not a XENIX named type file 619 620 621.. data:: ENAVAIL 622 623 No XENIX semaphores available 624 625 626.. data:: EISNAM 627 628 Is a named type file 629 630 631.. data:: EREMOTEIO 632 633 Remote I/O error 634 635 636.. data:: EDQUOT 637 638 Quota exceeded 639 640