Skip to content

[BUG] torch_forecasting_model depends on pytorch-lightining>=2.0 #2086

@eschibli

Description

@eschibli

Describe the bug
As of version 0.27 darts is not compatible with pytorch-lightning versions prior to 2.0 due to the dependency on the pytorch_lightning.callbacks.ProgressBar class. This class was introduced in pytorch-lightning 2.0. This isn't reflected in the requirements, which only specify pytorch-lightning>=1.5

To Reproduce
Attempt to import darts with pytorch-lightning<2.0. This will raise an error on line 43 of torch_forecasting_model.py, from pytorch_lightning.callbacks import ProgressBar.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdevopsCI/CD, packaging, code maintenance, ...

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions