From 6ce7ec6cca56f951fab556b33c51595ca74b4cad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?A=C3=A9cio=20Santos?= Date: Thu, 23 May 2024 19:47:14 -0400 Subject: [PATCH] Temporarily use matplotlib<3.9 to avoid PolyFuzz error PolyFuzz is being installed as a transitive dependency, and the following error happens due to the removal of `matplotlib.cm.get_cmap` in matplotlib 3.9. We can remove the restriction when PolyFuzz releases a version that fixes the issue /opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/polyfuzz/__init__.py:1: in from .polyfuzz import PolyFuzz /opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/polyfuzz/polyfuzz.py:9: in from polyfuzz.metrics import precision_recall_curve, visualize_precision_recall /opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/polyfuzz/metrics.py:8: in from matplotlib.cm import get_cmap E ImportError: cannot import name 'get_cmap' from 'matplotlib.cm' (/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/matplotlib/cm.py) --- requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements.txt b/requirements.txt index c847408a..53b55247 100644 --- a/requirements.txt +++ b/requirements.txt @@ -9,3 +9,4 @@ tabulate flair requests scipy<1.13 +matplotlib<3.9 \ No newline at end of file