Skip to content

Commit

Permalink
Temporarily use matplotlib<3.9 to avoid PolyFuzz error
Browse files Browse the repository at this point in the history
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 <module>
    from .polyfuzz import PolyFuzz
/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/polyfuzz/polyfuzz.py:9:
in <module>
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 <module>
    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)
  • Loading branch information
aecio committed May 23, 2024
1 parent 39ab9eb commit 6ce7ec6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ tabulate
flair
requests
scipy<1.13
matplotlib<3.9

0 comments on commit 6ce7ec6

Please sign in to comment.