{"record":{"id":"c955c49c077dab63","repo":"pola-rs/polars","slug":"object-not-supported","errorCode":null,"errorMessage":"object not supported","messagePattern":"object not supported","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pyo3-polars/pyo3-polars/src/types.rs","lineNumber":646,"sourceCode":"                let inner = ob.getattr(intern!(py, \"inner\")).unwrap();\n                let size = ob.getattr(intern!(py, \"size\")).unwrap();\n                let inner = inner.extract::<PyDataType>()?;\n                let size = size.extract::<usize>()?;\n                DataType::Array(Box::new(inner.0), size)\n            },\n            #[cfg(feature = \"dtype-struct\")]\n            \"Struct\" => {\n                let fields = ob.getattr(intern!(py, \"fields\"))?;\n                let fields = fields\n                    .extract::<Vec<PyField>>()?\n                    .into_iter()\n                    .map(|f| f.0)\n                    .collect::<Vec<Field>>();\n                DataType::Struct(fields)\n            },\n            \"Null\" => DataType::Null,\n            #[cfg(feature = \"object\")]\n            \"Object\" => panic!(\"object not supported\"),\n            \"Unknown\" => DataType::Unknown(Default::default()),\n            dt => {\n                return Err(PyTypeError::new_err(format!(\n                    \"'{dt}' is not a Polars data type, or the plugin isn't compiled with the right features\",\n                )));\n            },\n        };\n        Ok(PyDataType(dtype))\n    }\n}\n","sourceCodeStart":628,"sourceCodeEnd":657,"githubUrl":"https://github.com/pola-rs/polars/blob/9b5d73fd00236295624374b075d16b1fe6ec6df9/pyo3-polars/pyo3-polars/src/types.rs#L628-L657","documentation":"Extraction arm in the pyo3 dtype bridge (types.rs) for an unsupported Python object dtype: the Python-side polars dtype is the generic Object type, which cannot be represented on the Rust side, so extraction fails with the 'object not supported' marker.","triggerScenarios":"Thrown at pyo3-polars/pyo3-polars/src/types.rs:646 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Object dtype is not supported here; convert to a supported polars dtype before this operation."],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9b5d73fd00236295624374b075d16b1fe6ec6df9","analyzedAt":"2026-08-19T12:15:06.350Z","contentChangedAt":"2026-08-19T12:15:06.350Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}