Skip to content

Matplotlib depreciation error on library loading #543

Closed
@leedrake5

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

SarthakJariwala commented on Feb 14, 2023

@SarthakJariwala
Owner

Thanks for reporting. The issue is due to matplotlib-scalebar's version being <0.8.0 for v0.5.0 release of seaborn-image

Fixed in v0.5.1 release.

Upgrade using: python -m pip install -U seaborn-image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    dependenciesPull requests that update a dependency file

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Matplotlib depreciation error on library loading · Issue #543 · SarthakJariwala/seaborn-image