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

New seaborn/matplotlib warning generated by "make test" on iMac #2590

Closed
martinholmer opened this issue Jul 7, 2023 · 2 comments
Closed

Comments

@martinholmer
Copy link
Collaborator

I'm using Python 3.9 on my iMac. When I execute "make test", I get among other warnings:

=============================== warnings summary ===============================
../../opt/anaconda3/lib/python3.9/site-packages/seaborn/rcmod.py:82
  /Users/mrh/opt/anaconda3/lib/python3.9/site-packages/seaborn/rcmod.py:82: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
    if LooseVersion(mpl.__version__) >= "3.0":

../../opt/anaconda3/lib/python3.9/site-packages/setuptools/_distutils/version.py:346
  /Users/mrh/opt/anaconda3/lib/python3.9/site-packages/setuptools/_distutils/version.py:346: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
    other = LooseVersion(other)

../../opt/anaconda3/lib/python3.9/site-packages/seaborn/cm.py:1582
../../opt/anaconda3/lib/python3.9/site-packages/seaborn/cm.py:1582
../../opt/anaconda3/lib/python3.9/site-packages/seaborn/cm.py:1582
../../opt/anaconda3/lib/python3.9/site-packages/seaborn/cm.py:1582
../../opt/anaconda3/lib/python3.9/site-packages/seaborn/cm.py:1582
../../opt/anaconda3/lib/python3.9/site-packages/seaborn/cm.py:1582
  /Users/mrh/opt/anaconda3/lib/python3.9/site-packages/seaborn/cm.py:1582: MatplotlibDeprecationWarning: The register_cmap function was deprecated in Matplotlib 3.7 and will be removed two minor releases later. Use ``matplotlib.colormaps.register(name)`` instead.
    mpl_cm.register_cmap(_name, _cmap)

../../opt/anaconda3/lib/python3.9/site-packages/seaborn/cm.py:1583
../../opt/anaconda3/lib/python3.9/site-packages/seaborn/cm.py:1583
../../opt/anaconda3/lib/python3.9/site-packages/seaborn/cm.py:1583
../../opt/anaconda3/lib/python3.9/site-packages/seaborn/cm.py:1583
../../opt/anaconda3/lib/python3.9/site-packages/seaborn/cm.py:1583
../../opt/anaconda3/lib/python3.9/site-packages/seaborn/cm.py:1583
  /Users/mrh/opt/anaconda3/lib/python3.9/site-packages/seaborn/cm.py:1583: MatplotlibDeprecationWarning: The register_cmap function was deprecated in Matplotlib 3.7 and will be removed two minor releases later. Use ``matplotlib.colormaps.register(name)`` instead.
    mpl_cm.register_cmap(_name + "_r", _cmap_r)

I don't see matplotlib or seaborn in the setup.py files for PolicyEngine-US or PolicyEngine-Core.

@MaxGhenis and @nikhilwoodruff, How can I make this warning go away?

@MaxGhenis
Copy link
Contributor

It's in microdf. Filed PSLmodels/microdf#228 to remove it.

@martinholmer
Copy link
Collaborator Author

@MaxGhenis said:

It's in microdf. Filed PSLmodels/microdf#228 to remove it.

Thanks!

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

No branches or pull requests

2 participants