{"record":{"id":"3fec3eda785569d2","repo":"Lightning-AI/pytorch-lightning","slug":"not-found-in-registry-available-names","errorCode":null,"errorMessage":"'{}' not found in registry. Available names: {}","messagePattern":"'(.+?)' not found in registry\\. Available names: (.+?)","errorType":"validation","errorClass":"KeyError","httpStatus":null,"severity":"error","filePath":"src/lightning/fabric/accelerators/registry.py","lineNumber":104,"sourceCode":"\n    @override\n    def get(self, name: str, default: Optional[Any] = None) -> Any:\n        \"\"\"Calls the registered accelerator with the required parameters and returns the accelerator object.\n\n        Args:\n            name (str): the name that identifies a accelerator, e.g. \"gpu\"\n\n        \"\"\"\n        if name in self:\n            data = self[name]\n            return data[\"accelerator\"](**data[\"init_params\"])\n\n        if default is not None:\n            return default\n\n        err_msg = \"'{}' not found in registry. Available names: {}\"\n        available_names = self.available_accelerators()\n        raise KeyError(err_msg.format(name, available_names))\n\n    def remove(self, name: str) -> None:\n        \"\"\"Removes the registered accelerator by name.\"\"\"\n        self.pop(name)\n\n    def available_accelerators(self) -> set[str]:\n        \"\"\"Returns a set of registered accelerators.\"\"\"\n        return set(self.keys())\n\n    def __str__(self) -> str:\n        return \"Registered Accelerators: {}\".format(\", \".join(self.available_accelerators()))\n\n\ndef call_register_accelerators(registry: _AcceleratorRegistry, base_module: str) -> None:  # pragma: no-cover\n    \"\"\"Legacy.\n\n    Do not use.\n","sourceCodeStart":86,"sourceCodeEnd":122,"githubUrl":"https://github.com/Lightning-AI/pytorch-lightning/blob/9fed5c27d2a62ff0efd6c3573599921d6ff67c14/src/lightning/fabric/accelerators/registry.py#L86-L122","documentation":"Barebones mode also disables the progress bar. If enable_progress_bar is truthy along with barebones=True, __init__ raises ValueError and then forces enable_progress_bar=False when valid.","triggerScenarios":"Trainer(barebones=True, enable_progress_bar=True); any truthy enable_progress_bar value combined with barebones mode.","commonSituations":"Copy-pasted Trainer kwargs from a normal run into a benchmark run; shared config templates; wanting some visibility during barebones benchmarks, which Lightning forbids.","solutions":["Set enable_progress_bar=False (or omit it) with barebones=True","If you need a progress bar, disable barebones and turn off logger/checkpointing individually"],"exampleFix":"# before\ntrainer = Trainer(barebones=True, enable_progress_bar=True)\n\n# after\ntrainer = Trainer(barebones=True, enable_progress_bar=False)","handlingStrategy":"validation","validationCode":"def check_barebones_pb(barebones: bool, enable_progress_bar: bool) -> None:\n    if barebones and enable_progress_bar:\n        raise ValueError(\"barebones=True requires enable_progress_bar=False\")","typeGuard":"def progress_bar_allowed_in_barebones(barebones: bool, pb: bool) -> bool:\n    return (not barebones) or not pb","tryCatchPattern":null,"preventionTips":["Explicitly set enable_progress_bar=False in barebones configs","Use a pre-flight assert over all barebones-incompatible options","Keep benchmark Trainer construction in one helper so constraints are enforced once"],"tags":["pytorch-lightning","trainer","barebones","progress-bar"],"backgroundTag":"conflicting-options","analyzedSha":"9fed5c27d2a62ff0efd6c3573599921d6ff67c14","analyzedAt":"2026-08-28T11:52:41.083Z","schemaVersion":2},"datasetVersion":"2026-08-28T16:17:29.566Z"}