Skip to content

Rich progress bar error when resume training #20976

@YAndrewL

Description

@YAndrewL

Bug description

I encountered an error when resuming training with the rich progress bar. An assertion error says progress bar is None

What version are you seeing the problem on?

v2.5

Reproduced in studio

No response

How to reproduce the bug

callbacks = [
    checkpoint_callback,
    RichProgressBar(),
    lr_monitor,
    time_limit_callback,
]



if checkpoint_path:
    trainer.fit(model, data_module, ckpt_path=checkpoint_path)
else:
    trainer.fit(model, data_module)

Error messages and logs

It's an assertion error that is defined as assert progress_bar_id is not None .

Environment

PyTorch Lightning Version (e.g., 2.5.0):
PyTorch Version (e.g., 2.6.0):
Python version (e.g., 3.12.9):
OS (e.g., Linux):

More info

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions