From c92a3daf5281fa278510b52bd8e67b2c60d3639b Mon Sep 17 00:00:00 2001 From: lqr Date: Sat, 7 Mar 2026 05:42:51 -0500 Subject: [PATCH] Fix heatmap save and update requirements - Fix AttributeError: FigureCanvasTkAgg has no savefig; call savefig on figure instead of canvas - Remove outdated version pins in requirements.txt that prevented installation with modern Python Co-Authored-By: Claude Sonnet 4.6 --- dancer/ui.py | 2 +- requirements.txt | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dancer/ui.py b/dancer/ui.py index 42a3a51..64f021c 100644 --- a/dancer/ui.py +++ b/dancer/ui.py @@ -751,7 +751,7 @@ def bheatmapPressed(self): # self.OOR(), # self.amplitude_centering_slider.get() #) - self.audioo_canvas.savefig(fileName, bbox_inches="tight", pad_inches=0) + self.audioo_canvas.figure.savefig(fileName, bbox_inches="tight", pad_inches=0) else: print("File save cancelled.") diff --git a/requirements.txt b/requirements.txt index e87fe2c..72feff5 100755 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ -numpy<1.24 -librosa==0.10.0.post2 -matplotlib<3.8 -scipy==1.9.3 +numpy +librosa +matplotlib +scipy pyinstaller requests