python/cpython
Documented errors, page 3 of 5. Back to python/cpython
| Code / Message | Type | Severity | Tags |
|---|---|---|---|
| unknown parser %(parser_name)r (choices: %(choices)s) | exception | error | python, argparse, cli, subcommands, user-input |
| Can only register classes | exception | error | abc, typing, subclass, runtime |
| capture_call_graph() is called outside of a running event… | exception | warning | asyncio, debugging, event-loop, introspection |
| is not a Sphinx HTML output directory | validation | error | asyncio, event-loop, lifecycle, windows |
| one of the arguments | exception | error | argparse, cli, mutually-exclusive, required-argument |
| tzinfo subclass must override tzname() | exception | error | datetime, timezone, notimplementederror, subclassing |
| integer argument expected, got float | validation | error | python, io, file-io, typeerror, file-descriptor |
| raw stream already detached | exception | error | io, detach, lifecycle, valueerror |
| tell() returned an invalid position | exception | error | io, tell, custom-stream, invariant, oserror |
| unsupported whence value | exception | error | io, bytesio, seek, whence, valueerror |
| tell on closed file | exception | error | io, bytesio, tell, lifecycle, valueerror |
| truncate on closed file | exception | error | python, io, bytesio, truncate, closed-file, valueerror |
| Lock is not acquired. | exception | error | asyncio, lock, synchronization |
| Node can't be used without a value attribute. | validation | warning | asyncio, socket, server, debug-mode, accept |
| .__annotations__ is neither a dict nor None | exception | error | python, annotations, typeerror, validation, introspection |
| TaskGroup cannot determine the parent task | exception | error | asyncio, taskgroup, event-loop, api-misuse |
| Unknown option: -%c\n | console | error | cli, command-line, getopt, cpython, typo |
| unknown status keyword %r in marked section | exception | error | markup, html-parser, marked-section, parsing |
| "writer" argument must be writable. | validation | error | python, io, buffered-io, constructor, oserror |
| can't have unbuffered text I/O | exception | error | io, open, buffering, text-io, valueerror |
| "reader" argument must be readable. | validation | error | python, io, buffered-io, constructor, oserror |
| Separator should contain at least one element | exception | error | asyncio, streams, validation, readuntil |
| unexpected char %r in internal subset | exception | error | markup, html-parser, doctype, parsing |
| read from closed file | exception | error | io, bytesio, read, lifecycle, valueerror |
| sslcontext is expected to be an instance of ssl.SSLContext… | exception | error | asyncio, tls, ssl, type-error, validation |
| time argument must be a time instance | exception | error | datetime, combine, typeerror, parsing |
| category must be a Warning subclass, not class | exception | error | warnings, validation, category, exceptions |
| getaddrinfo() returned empty list | exception | error | asyncio, network, dns, oserror |
| Malformed time zone string | exception | error | datetime, fromisoformat, timezone, valueerror, stdlib |
| Object type mismatch in limited API annotation for | validation | error | asyncio, lifecycle, runner, state |
| File not open for writing | exception | error | python, io, file-io, mode, unsupportedoperation |
| peek on closed file | exception | error | python, io, bytesio, closed-file, valueerror |
| Second argument to round should be integral | exception | error | decimal, rounding, round, typeerror, quantize |
| strptime() argument must be str, not | exception | error | strptime, typeerror, bytes, type-check, cpython |
| The second value in the tuple must be composed of integers… | exception | error | decimal, constructor, tuple, digits, validation, valueerror |
| year must be in .. , not | exception | error | datetime, isocalendar, fromisocalendar, valueerror, stdlib |
| BUILD_GNU_TYPE is not defined | validation | error | asyncio, file-descriptor, transport, duplicate-registration |
| Initialization arguments are not supported | exception | error | threading, thread-local, typeerror, cpython |
| nargs must be %r to supply const | exception | error | python, argparse, cli, nargs, const, parser-construction |
| PYTHONDUMPREFSFILE: cannot create file: %ls\n | console | warning | cpython, debug-build, trace-refs, file-io, leak-hunting |
| unsupported type for timedelta | exception | error | datetime, typeerror, timedelta, config |
| invalid mode: %r | exception | error | io, open, mode, typeerror |
| .__annotate__ returned a non-dict | exception | error | python, annotations, pep649, contract-violation |
| unterminated \< starting at char | validation | error | python, pyrepl, keymap, parsing, repl |
| A Stream Socket was expected, got | exception | error | asyncio, sockets, validation, network |
| can't write str to binary stream | exception | error | io, bytesio, write, typeerror, encoding |
| Invalid sign. The first value in the tuple should be an… | exception | error | decimal, constructor, tuple, sign, validation, valueerror |
| Invalid tuple size in creation of Decimal from list or… | exception | error | decimal, constructor, tuple, validation, valueerror |
| nargs for store actions must be != 0; if you have nothing… | exception | error | python, argparse, cli, nargs, parser-construction |
| data: expecting a bytes-like instance, got | exception | error | asyncio, ssl, typeerror, transport, tls |
| Invalid time separator: %c | exception | error | datetime, fromisoformat, time-parsing, separator, valueerror, stdlib |
| need to specify the name, input and output paths | console | error | cpython, build, freeze-module, usage, cli-args |
| unexpected char after internal subset | exception | error | markup, html-parser, doctype, parsing |
| ISO week directive ' ' is incompatible with the year… | exception | error | strptime, iso-week, datetime, format-string, cpython |
| ' ' is an invalid keyword argument for this function | exception | error | python, decimal, type-error, configuration |
| negative truncate position %r | exception | error | python, io, bytesio, truncate, valueerror, validation |
| "raw" argument must be readable. | exception | error | python, io, buffered-reader, oserror, constructor, pipe |
| ssl_shutdown_timeout should be a positive number, got | exception | error | asyncio, ssl, timeout, shutdown, configuration |
| File or stream is not seekable. | exception | error | io, stream, seek, pipe, stdin, unsupported-operation |
| A future is required for source argument | validation | error | asyncio, future, typeerror, wrap-future |
| File not open for reading | exception | error | python, io, file-io, mode, unsupportedoperation |
| stray %% in format | exception | error | strptime, format-string, escaping, cpython |
| unrecognised keyname | validation | error | python, pyrepl, keymap, parsing, key-names |
| Missing colon in %:z before | exception | error | strptime, timezone, utc-offset, format-string, cpython |
| invalid errors: %r | exception | error | io, open, errors, encoding, typeerror, text-io |
| Cannot send input after starting communication | exception | error | asyncio, subprocess, api-misuse, validation |
| Invalid format | exception | error | python, annotations, validation, format-enum |
| module must be a string | exception | error | warnings, validation, regex, filters |
| Python ssl module is not available | exception | critical | asyncio, tls, ssl, environment, build |
| tzinfo argument must be None or of a tzinfo subclass, not | exception | error | datetime, typeerror, tzinfo, timezone |
| TaskGroup has not been entered | exception | error | asyncio, taskgroup, api-misuse, structured-concurrency |
| \M must be followed by | validation | error | python, pyrepl, keymap, parsing, repl |
| can not get address information | exception | error | asyncio, udp, address-family, ipv6 |
| cannot open ' ' for reading | console | error | cpython, build, freeze-module, file-not-found |
| Argument must be a str | exception | error | datetime, typeerror, iso-8601, parsing |
| Cannot call writelines() after write_eof() | exception | error | asyncio, networking, transport, eof, writelines |
| Cannot convert %r to Decimal | exception | error | decimal, constructor, typeerror, type-conversion |
| message must be a string | exception | error | warnings, validation, regex, filters |
| TaskGroup is shutting down | exception | error | asyncio, taskgroup, shutdown, structured-concurrency |
| There is no current event loop in thread %r. | exception | error | asyncio, event-loop, threading, python-3-10 |
| doubled \C- (char of ) | validation | error | python, pyrepl, keymap, parsing, repl |
| no running event loop | exception | error | asyncio, event-loop, threading |
| Separator should be at least one-byte string | exception | error | asyncio, streams, validation, readuntil |
| type 'datetime.timezone' is not an acceptable base type | exception | error | python, datetime, timezone, type-error, inheritance |
| Argument must be an ASCII str | exception | error | datetime, valueerror, iso-8601, unicode, parsing |
| .__call__() not defined | exception | error | python, argparse, cli, subclassing, not-implemented |
| data argument must be a bytes-like object, not | validation | error | asyncio, windows, proactor, typeerror, encoding |
| lineno must be an int >= 0 | exception | error | warnings, validation, lineno, filters |
| Usage: seticon ICON TARGET | console | error | macos, build-tooling, cli, usage, cocoa |
| cannot wait on un-acquired lock | exception | error | asyncio, condition-variable, synchronization |
| eval_str=True is only supported with format=Format.VALUE | exception | error | python, annotations, parameter-validation, get-annotations |
| ssl_handshake_timeout should be a positive number, got | exception | error | asyncio, ssl, timeout, configuration, valueerror |
| A future is required for destination argument | validation | error | asyncio, future, typeerror, wrap-future |
| getbuffer on closed file | exception | error | io, bytesio, getbuffer, memoryview, lifecycle, valueerror |
| File or stream is not readable. | exception | error | io, stream, read, mode, unsupported-operation |
| %r object attribute '__dict__' is read-only | exception | error | threading, thread-local, attributeerror, cpython |
| memory error: could not allocate varname | console | error | cpython, build, freeze-module, out-of-memory |
| opener returned | validation | error | python, io, file-io, opener, valueerror |
| Day of the year directive '%j' is not compatible with ISO… | exception | error | strptime, iso-week, datetime, format-string, cpython |
| getaddrinfo( ) returned empty list | exception | error | asyncio, server, dns, getaddrinfo |