ErrLookup › PyO3/pyo3
PyO3/pyo3
Rust bindings for the Python interpreter · Rust · 349 source files
Analyzed at ac9b6899d3 on 2026-09-05. 101 documented errors.
| Code / Message | Type | Severity | Tags |
|---|---|---|---|
| Unknown Py_GIL_DISABLED value | panic | error | build-config, python-interpreter, free-threading, panic |
| invalid hex encoding | panic | error | build-script, hex-decoding, panic |
| `pyo3_build_config::get()` requires a direct dependency on ` | panic | error | cargo, build-script, missing-dependency, panic |
| string contains nul bytes | panic | error | ffi, cstr, nul-byte, const-panic, compile-time |
| Converting PyErr arguments failed: {} | panic | error | pyerr, into-pyobject, conversion, panic |
| attempted to fetch exception but none was set | panic | critical | pyerr, ffi, error-indicator, panic |
| failed to import exception {}.{}: {} | panic | error | exceptions, import-error, embedded-python, panic |
| failed to create type object for `{type_name}` | panic | critical | pyclass, type-object, initialization, panic |
| Cannot clone pointer into Python heap without the thread bei | panic | critical | gil, thread-attach, py-pointer, panic |
| PyObject pointer is null | panic | critical | ffi, null-pointer, pyerr, panic |
| Attaching a thread to the interpreter is prohibited while a | panic | error | pyo3, gil, gc-traverse, panic |
| Cannot attach to the Python interpreter while it is finalizi | panic | error | pyo3, gil, interpreter-finalization, shutdown, panic |
| Attaching a thread to the interpreter is currently prohibite | panic | error | pyo3, gil, reentrancy, panic |
| Cannot drop pointer into Python heap without the thread bein | panic | critical | pyo3, refcount, gil, process-abort |
| {} | panic | error | pyo3, panic, python-c-api, error-printing |
| called `append_to_inittab` but a Python interpreter is alrea | panic | error | pyo3, embedding, inittab, initialization-order |
| Unknown return value from PyDict_SetDefaultRef: {x} | panic | error | pyo3, dict, c-api, panic, python-3-13 |
| dictionary changed size during iteration | panic | error | pyo3, dict, iteration, mutation, panic |
| dictionary keys changed during iteration | panic | error | pyo3, dict, iteration, mutation, panic |
| The 'weakref' weak reference instance should be valid (non-n | panic | error | |
| The 'weakref.ProxyType' (or `weakref.CallableProxyType`) ins | panic | error | |
| The 'weakref.ReferenceType' instance should be valid (non-nu | panic | error | |
| expected a bool (1/true/True or 0/false/False) for Py_ENABLE | validation | error | |
| Cannot target free-threaded builds for Python versions befor | validation | error | |
| build_flags contains Py_GIL_DISABLED but target_abi '{target | validation | error | |
| unsupported Python interpreter | validation | error | |
| unknown interpreter: {} | validation | error | |
| Could not find _sysconfigdata*.py in {} | validation | error | |
| Detected multiple possible Python versions. Please set eithe | validation | error | |
| Neither abi3 or abi3t features are enabled | validation | error | rust, pyo3, cargo-features, abi3, build-time |
| Cannot target an abi3t version below {MINIMUM_SUPPORTED_VERS | validation | error | rust, pyo3, abi3, free-threaded, version-check, build-time |
| failed to run the Python interpreter at {}: {} | validation | error | rust, pyo3, python-interpreter, process-spawn, build-time |
| Python script failed | validation | error | rust, pyo3, python-interpreter, script-failure, build-time |
| cannot set a minimum Python version {} higher than the inter | validation | error | rust, pyo3, abi3, version-mismatch, cargo-features, build-time |
| unexpected Rust target pointer width: {} | validation | error | rust, pyo3, cross-compilation, pointer-width, build-time |
| broken Python interpreter: {} | console | error | rust, pyo3, python-interpreter, broken-interpreter, windows, build-time |
| At least GraalPy version {} needed, got {} | console | error | rust, pyo3, graalpy, version-check, build-time |
| PYO3_CONFIG_FILE must be an absolute path | console | error | rust, pyo3, env-var, path, pyo3-config-file, build-time |
| Invalid config that sets both target_abi and abi3. | console | error | rust, pyo3, config-file, schema-validation, abi3, build-time |
| RustPython only supports targeting abi3t, it does not allow | console | error | |
| cannot set a minimum Python version {} higher than the inter | console | error | |
| PYO3_CROSS_LIB_DIR variable value is not a valid UTF-8 strin | console | error | |
| Python stdout len didn't return expected number of lines: {} | console | error | |
| Cannot compile extensions for the free-threaded build on Pyt | console | error | |
| target_triple_from_env() must be called from a build script | panic | error | |
| Unrecognized TARGET environment variable value | panic | error | |
| no interpreter executable | panic | error | |
| failed to parse PyO3 config | panic | error | rust, build-script, pyo3, configuration |
| the configured Python interpreter version ({}) is lower than | console | error | rust, python, version-compatibility, build |
| PyO3 does not support the free-threaded build of CPython ver | console | error | rust, python, free-threaded, nogil, version-compatibility |
| the configured PyPy interpreter version ({}) is lower than P | console | error | rust, pypy, version-compatibility, build |
| the configured GraalPy interpreter version ({}) is lower tha | console | error | rust, graalpy, version-compatibility, build |
| Abi3t builds are not supported on CPython targets before Pyt | console | error | rust, abi3, free-threaded, version-compatibility |
| your Rust target architecture ({}-bit) does not match your p | console | error | rust, cross-compilation, pointer-width, build |
| wildcard argument names are not supported | validation | error | rust, pyo3-macros, proc-macro, function-signature |
| useless `get` - the struct is already annotated with `get_al | validation | error | rust, pyo3-macros, pyclass, duplicate-attribute |
| useless `set` - the struct is already annotated with `set_al | validation | error | rust, pyo3-macros, pyclass, duplicate-attribute |
| `get` may only be specified once | validation | error | rust, pyo3, macro, compile-time |
| `set` may only be specified once | validation | error | rust, pyo3, macro, compile-time |
| `name` may only be specified once | validation | error | rust, pyo3, macro, compile-time |
| missing `message` in `warn` attribute | validation | error | rust, pyo3, macro, attributes |
| Python doc may not contain nul byte, found nul at position { | validation | error | rust, pyo3, macro, docstring |
| size_t should fit the flag bits | panic | error | rust, pyo3-ffi, const-panic, platform |
| size_t should fit the flag bits | panic | error | rust, pyo3-ffi, const-panic, platform |
| cannot fail due to mask | panic | error | rust, pyo3-ffi, invariant, vectorcall |
| Empty enum | panic | error | rust, pyo3, derive, enum |
| Named fields should have identifiers | panic | error | rust, pyo3, derive, internal |
| Named fields should have identifiers | panic | error | pyo3, proc-macro, panic, internal-invariant |
| Empty enum | panic | error | pyo3, proc-macro, enum, compile-time-panic |
| no class given for Fn with a "self" receiver | panic | error | pyo3, proc-macro, method-generation, internal-invariant |
| no class given for a class method | panic | error | pyo3, proc-macro, classmethod, internal-invariant |
| complex enum has a non-unit variant | panic | error | pyo3, proc-macro, enum, internal-invariant |
| named field has an identifier | panic | error | pyo3, proc-macro, enum, internal-invariant |
| should always have positional defaults <= positional paramet | panic | error | pyo3, proc-macro, signature, internal-invariant |
| length of buffer fits in Py_ssize_t | panic | info | pyo3, integer-conversion, platform, unreachable |
| wasi strings are UTF8 | panic | error | pyo3, wasi, path-conversion, utf8, panic |
| seconds overflow | panic | info | pyo3, datetime, timedelta, duration, unreachable |
| unexpected error in coroutine waker | panic | error | rust, async, coroutine, waker |
| failed to create Python string | panic | warning | rust, pyo3, type-error, string-conversion |
| PyErr state should never be invalid outside of normalization | panic | critical | rust, pyo3, pyerr, internal-invariant |
| Already mutably borrowed | panic | error | rust, pyo3, borrow-checker, reentrancy |
| Already borrowed | panic | error | rust, pyo3, borrow-checker, pyrefmut |
| this object is already borrowed | panic | error | rust, pyo3, inheritance, borrow-checker |
| this object is already borrowed | panic | error | rust, pyo3, inheritance, guard, borrow-checker |
| failed to import `datetime` C API | panic | critical | rust, pyo3, datetime, c-api, frozen-binary |
| `PyFrame_GetBuiltins` returns a `dict` | panic | warning | rust, pyo3, frame, builtins, type-mismatch |
| frozenset should always be iterable | panic | info | rust, pyo3, frozenset, iterator, invariant |
| frozenset iteration should be infallible | panic | error | pyo3, iterator, panic, frozenset |
| out of range integral type conversion attempted on `elements | panic | error | pyo3, panic, overflow, list |
| set should always be iterable | panic | error | pyo3, panic, set, iterator |
| set iteration should be infallible | panic | error | pyo3, panic, set, iterator |
| expected error | panic | error | pyo3, panic, string, formatting |
| out of range integral type conversion attempted on `elements | panic | error | pyo3, panic, overflow, tuple |
| failed to convert tuple to list | panic | error | pyo3, panic, tuple, list |
| 0 < N <= 12 | panic | error | pyo3, panic, tuple, array |
| overflow adding PY_VECTORCALL_ARGUMENTS_OFFSET | panic | error | rust, pyo3, overflow, ffi |
| Cannot get `__mro__` from object. | panic | error | rust, pyo3, pypy, limited-api, types |
| Unexpected type in `__mro__` attribute. | panic | error | rust, pyo3, pypy, limited-api, types |
| Cannot get `__bases__` from object. | panic | error | rust, pyo3, pypy, limited-api, types |
| Unexpected type in `__bases__` attribute. | panic | error | rust, pyo3, pypy, limited-api, types |
| ignored leap-second, `datetime` does not support leap-second | console | warning | rust, pyo3, chrono, datetime, precision-loss |