From 98d38999e18ccd998bf2068bd4b2acf7772df640 Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Mon, 8 Jul 2024 15:17:50 +0200 Subject: [PATCH] Lightning 2.3+ contains known bugs with YAML parsing --- .github/dependabot.yml | 4 ++++ pyproject.toml | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index eb0571076dc..e9796f63b42 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -20,6 +20,10 @@ updates: - "torch" - "torchvision" ignore: + # lightning 2.3+ contains known bugs related to YAML parsing + # https://github.com/Lightning-AI/pytorch-lightning/issues/19977 + - dependency-name: "lightning" + version: ">=2.3" # setuptools releases new versions almost daily - dependency-name: "setuptools" update-types: ["version-update:semver-patch"] diff --git a/pyproject.toml b/pyproject.toml index 63d58a3102a..8a85c53a195 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,7 +47,9 @@ dependencies = [ # https://github.com/microsoft/torchgeo/issues/1824 "lightly>=1.4.4,!=1.4.26", # lightning 2+ required for LightningCLI args + sys.argv support - "lightning[pytorch-extra]>=2", + # lightning 2.3+ contains known bugs related to YAML parsing + # https://github.com/Lightning-AI/pytorch-lightning/issues/19977 + "lightning[pytorch-extra]>=2,<2.3", # matplotlib 3.5+ required for Python 3.10 wheels "matplotlib>=3.5", # numpy 1.21.2+ required by Python 3.10 wheels