{"record":{"id":"7bbe0f49cbf26e24","repo":"keras-team/keras","slug":"unknown-printable-module-name-object-name","errorCode":null,"errorMessage":"Unknown {printable_module_name}: '{object_name}'. Please ensure you are using a `keras.utils.custom_object_scope` and that this object is included in the scope. See https://www.tensorflow.org/guide/keras/save_and_serialize#registering_the_custom_object for details.","messagePattern":"Unknown (.+?): '(.+?)'\\. Please ensure you are using a `keras\\.utils\\.custom_object_scope` and that this object is included in the scope\\. See https://www\\.tensorflow\\.org/guide/keras/save_and_serialize#registering_the_custom_object for details\\.","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"keras/src/legacy/saving/serialization.py","lineNumber":531,"sourceCode":"        return deserialized_obj\n\n    elif isinstance(identifier, str):\n        object_name = identifier\n        if custom_objects and object_name in custom_objects:\n            obj = custom_objects.get(object_name)\n        elif (\n            object_name\n            in object_registration._THREAD_LOCAL_CUSTOM_OBJECTS.__dict__\n        ):\n            obj = object_registration._THREAD_LOCAL_CUSTOM_OBJECTS.__dict__[\n                object_name\n            ]\n        elif object_name in object_registration._GLOBAL_CUSTOM_OBJECTS:\n            obj = object_registration._GLOBAL_CUSTOM_OBJECTS[object_name]\n        else:\n            obj = module_objects.get(object_name)\n            if obj is None:\n                raise ValueError(\n                    f\"Unknown {printable_module_name}: '{object_name}'. \"\n                    \"Please ensure you are using a \"\n                    \"`keras.utils.custom_object_scope` \"\n                    \"and that this object is included in the scope. See \"\n                    \"https://www.tensorflow.org/guide/keras/save_and_serialize\"\n                    \"#registering_the_custom_object for details.\"\n                )\n\n        # Classes passed by name are instantiated with no args, functions are\n        # returned as-is.\n        if inspect.isclass(obj):\n            return obj()\n        return obj\n    elif inspect.isfunction(identifier):\n        # If a function has already been deserialized, return as is.\n        return identifier\n    else:\n        raise ValueError(","sourceCodeStart":513,"sourceCodeEnd":549,"githubUrl":"https://github.com/keras-team/keras/blob/7a34a03db60bf60042242d6a556fc3be119046a5/keras/src/legacy/saving/serialization.py#L513-L549","documentation":"Error \"Unknown {printable_module_name}: '{object_name}'. Please ensure you are using a `keras.utils.custom_object_scope` and that this object is included in the scope. See https://www.tensorflow.org/guide/keras/save_and_serialize#registering_the_custom_object for details.\" thrown in keras-team/keras.","triggerScenarios":"Thrown at keras/src/legacy/saving/serialization.py:531 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7a34a03db60bf60042242d6a556fc3be119046a5","analyzedAt":"2026-08-25T21:25:25.994Z","schemaVersion":2},"datasetVersion":"2026-08-26T02:17:13.382Z"}