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

ModuleNotFoundError: No module named 'matplotlib.axes._subplots' #287

Open
opoplawski opened this issue Jun 24, 2023 · 1 comment
Open

Comments

@opoplawski
Copy link

Test fails with matplotlib 3.7.1:

==================================== ERRORS ====================================
____________________ ERROR collecting tests/mixin_tests.py _____________________
ImportError while importing test module '/builddir/build/BUILD/geoplot-0.5.1/tests/mixin_tests.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/mixin_tests.py:9: in <module>
    from matplotlib.axes._subplots import SubplotBase
E   ModuleNotFoundError: No module named 'matplotlib.axes._subplots'
=============================== warnings summary ===============================
../../../../usr/lib64/python3.11/site-packages/sklearn/cluster/_kmeans.py:870
../../../../usr/lib64/python3.11/site-packages/sklearn/cluster/_kmeans.py:870
  /usr/lib64/python3.11/site-packages/sklearn/cluster/_kmeans.py:870: FutureWarning: The default value of `n_init` will change from 10 to 'auto' in 1.4. Set the value of `n_init` explicitly to suppress the warning
    warnings.warn(

../../BUILDROOT/python-geoplot-0.5.1-5.fc39.x86_64/usr/lib/python3.11/site-packages/geoplot/utils.py:74
  /builddir/build/BUILDROOT/python-geoplot-0.5.1-5.fc39.x86_64/usr/lib/python3.11/site-packages/geoplot/utils.py:74: FutureWarning: iteritems is deprecated and will be removed in a future version. Use .items instead.
    polys = [poly for _, poly in gaussian_polygons(points).iteritems()]

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
@QuLogic
Copy link
Contributor

QuLogic commented Jul 5, 2023

Fixed by #286.

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

No branches or pull requests

2 participants