Description
Unable to load seaborn-image after installing on a fresh python install (via pip, works fine if installed via conda). Error below.
>>> import seaborn_image as isns
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/opt/homebrew/Caskroom/mambaforge/base/lib/python3.10/site-packages/seaborn_image/__init__.py", line 7, in <module> from ._general import * File "/opt/homebrew/Caskroom/mambaforge/base/lib/python3.10/site-packages/seaborn_image/_general.py", line 11, in <module> from ._core import _SetupImage File "/opt/homebrew/Caskroom/mambaforge/base/lib/python3.10/site-packages/seaborn_image/_core.py", line 5, in <module> from matplotlib_scalebar.scalebar import ScaleBar File "/opt/homebrew/Caskroom/mambaforge/base/lib/python3.10/site-packages/matplotlib_scalebar/scalebar.py", line 115, in <module> matplotlib.rcParams.validate = dict( File "/opt/homebrew/Caskroom/mambaforge/base/lib/python3.10/site-packages/matplotlib_scalebar/scalebar.py", line 118, in <genexpr> if key not in matplotlib._all_deprecated File "/opt/homebrew/Caskroom/mambaforge/base/lib/python3.10/site-packages/matplotlib/_api/__init__.py", line 224, in __getattr__ raise AttributeError( AttributeError: module 'matplotlib' has no attribute '_all_deprecated'
Activity
SarthakJariwala commentedon Feb 14, 2023
Thanks for reporting. The issue is due to
matplotlib-scalebar
's version being <0.8.0 for v0.5.0 release ofseaborn-image
Fixed in v0.5.1 release.
Upgrade using:
python -m pip install -U seaborn-image