{"record":{"id":"9a0381662b70c2e2","repo":"Lightning-AI/pytorch-lightning","slug":"neptunelogger-is-no-longer-supported-neptune-has","errorCode":null,"errorMessage":"NeptuneLogger is no longer supported. Neptune has been sunset.\n\nPlease migrate to LitLogger, the recommended logger for AI experiments.\nSee: https://github.com/lightning-ai/litlogger\n","messagePattern":"NeptuneLogger is no longer supported\\. Neptune has been sunset\\.\n\nPlease migrate to LitLogger, the recommended logger for AI experiments\\.\nSee: https://github\\.com/lightning-ai/litlogger\n","errorType":"exception","errorClass":"RuntimeError","httpStatus":null,"severity":"error","filePath":"src/lightning/pytorch/loggers/neptune.py","lineNumber":40,"sourceCode":"\n\nclass NeptuneLogger:\n    \"\"\"\n    .. deprecated:: Use :class:`LitLogger` instead.\n\n    Neptune has been sunset and this logger is no longer maintained.\n    Please migrate to **LitLogger**, the recommended logging solution for\n    tracking AI experiments, metrics, inputs, outputs, and artifacts.\n\n    See: https://github.com/Lightning-AI/LitLogger\n\n    Raises:\n        RuntimeError: Always raised when attempting to instantiate this logger.\n    \"\"\"\n\n    def __init__(self, *args: Any, **kwargs: Any) -> None:\n        \"\"\"Raise an error indicating Neptune logger is no longer supported.\"\"\"\n        raise RuntimeError(\n            \"NeptuneLogger is no longer supported. Neptune has been sunset.\\n\"\n            \"\\n\"\n            \"Please migrate to LitLogger, the recommended logger for AI experiments.\\n\"\n            \"See: https://github.com/lightning-ai/litlogger\\n\"\n        )\n","sourceCodeStart":22,"sourceCodeEnd":46,"githubUrl":"https://github.com/Lightning-AI/pytorch-lightning/blob/9fed5c27d2a62ff0efd6c3573599921d6ff67c14/src/lightning/pytorch/loggers/neptune.py#L22-L46","documentation":"Neptune (the managed experiment-tracking service) was sunset, and Lightning's NeptuneLogger now unconditionally raises RuntimeError in __init__. The message directs users to LitLogger as the replacement. This is a deliberate removal, not a runtime fault.","triggerScenarios":"Any attempt to instantiate lightning.pytorch.loggers.neptune.NeptuneLogger(...) regardless of arguments or environment.","commonSituations":"Old training scripts or tutorials referencing NeptuneLogger; upgrading Lightning to a version containing the removal while code still imports/instantiates the logger.","solutions":["Migrate to LitLogger: https://github.com/lightning-ai/litlogger","Or use another supported logger (MLFlowLogger, WandbLogger, TensorBoardLogger, CSVLogger)","Pin an older lightning version only as a temporary stopgap while migrating"],"exampleFix":"# before\nfrom lightning.pytorch.loggers.neptune import NeptuneLogger\nlogger = NeptuneLogger(api_token=..., project=...)\n# after\nfrom lightning.pytorch.loggers.litlogger import LitLogger\nlogger = LitLogger(...)","handlingStrategy":"type-guard","validationCode":"try:\n    from lightning.pytorch.loggers.neptune import NeptuneLogger\nexcept ImportError:\n    NeptuneLogger = None\nif NeptuneLogger is not None:\n    logger = NeptuneLogger(...)  # will raise — migrate instead","typeGuard":"def make_logger(name: str, **kw):\n    if name == \"neptune\":\n        raise RuntimeError(\"Neptune is sunset; use LitLogger\")\n    return LOGGER_REGISTRY[name](**kw)","tryCatchPattern":null,"preventionTips":["Search codebase for NeptuneLogger before upgrading Lightning","Migrate config-driven logger selection to LitLogger/MLFlow/W&B"],"tags":["neptune","lightning","logger","removed-api","sunset"],"backgroundTag":"removed-api-migration","analyzedSha":"9fed5c27d2a62ff0efd6c3573599921d6ff67c14","analyzedAt":"2026-08-28T11:52:41.083Z","schemaVersion":2},"datasetVersion":"2026-08-28T16:17:29.566Z"}