diff -Nru baler-1.4.0/debian/changelog baler-1.4.0/debian/changelog --- baler-1.4.0/debian/changelog 2024-03-24 17:32:24.000000000 +0530 +++ baler-1.4.0/debian/changelog 2026-05-24 11:51:28.000000000 +0530 @@ -1,3 +1,12 @@ +baler (1.4.0-1.1) unstable; urgency=medium + + * Non-maintainer upload. + * Fix FTBFS with PyTorch >= 2.4: remove deprecated verbose=True + argument from ReduceLROnPlateau instantiation in + baler/modules/utils.py (Closes: #1137391). + + -- Azeez Syed Sun, 24 May 2026 11:51:28 +0530 + baler (1.4.0-1) unstable; urgency=medium * Update to version 1.4.0 diff -Nru baler-1.4.0/debian/patches/0002-fix-ftbfs-remove-verbose-from-ReduceLROnPlateau.patch baler-1.4.0/debian/patches/0002-fix-ftbfs-remove-verbose-from-ReduceLROnPlateau.patch --- baler-1.4.0/debian/patches/0002-fix-ftbfs-remove-verbose-from-ReduceLROnPlateau.patch 1970-01-01 05:30:00.000000000 +0530 +++ baler-1.4.0/debian/patches/0002-fix-ftbfs-remove-verbose-from-ReduceLROnPlateau.patch 2026-05-24 11:50:15.000000000 +0530 @@ -0,0 +1,24 @@ +Description: Fix FTBFS with PyTorch >= 2.4: remove deprecated verbose argument + PyTorch 2.4 removed the 'verbose' keyword argument from + torch.optim.lr_scheduler.ReduceLROnPlateau.__init__() (deprecated since 2.2, + removed in 2.4). Passing verbose=True now raises: + . + TypeError: ReduceLROnPlateau.__init__() got an unexpected keyword argument 'verbose' + . + Removing the argument restores the original behaviour; LR change events are + no longer logged to stdout by the scheduler, which is the upstream default. +Author: Azeez Syed +Bug-Debian: https://bugs.debian.org/1137391 +Forwarded: no +Last-Update: 2026-05-24 +--- +--- a/baler/modules/utils.py ++++ b/baler/modules/utils.py +@@ -316,7 +316,6 @@ class LRScheduler: + patience=self.patience, + factor=self.factor, + min_lr=self.min_lr, +- verbose=True, + ) + + def __call__(self, train_loss): diff -Nru baler-1.4.0/debian/patches/series baler-1.4.0/debian/patches/series --- baler-1.4.0/debian/patches/series 2024-03-24 17:32:24.000000000 +0530 +++ baler-1.4.0/debian/patches/series 2026-05-24 11:49:11.000000000 +0530 @@ -1 +1,2 @@ 0001-removed-all-profiling-364.patch +0002-fix-ftbfs-remove-verbose-from-ReduceLROnPlateau.patch