Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matplotlib depreciation error on library loading #543

Closed
leedrake5 opened this issue Feb 13, 2023 · 1 comment
Closed

Matplotlib depreciation error on library loading #543

leedrake5 opened this issue Feb 13, 2023 · 1 comment
Labels
dependencies Pull requests that update a dependency file

Comments

@leedrake5
Copy link

leedrake5 commented Feb 13, 2023

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'

@SarthakJariwala SarthakJariwala added the dependencies Pull requests that update a dependency file label Feb 14, 2023
@SarthakJariwala
Copy link
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
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

No branches or pull requests

2 participants