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

2 test errors #779

Closed
yurivict opened this issue Aug 7, 2022 · 1 comment
Closed

2 test errors #779

yurivict opened this issue Aug 7, 2022 · 1 comment

Comments

@yurivict
Copy link

yurivict commented Aug 7, 2022

==================================================================================== test session starts =====================================================================================
platform freebsd13 -- Python 3.9.13, pytest-7.1.2, pluggy-1.0.0 -- /usr/local/bin/python3.9
cachedir: .pytest_cache
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('/disk-samsung/freebsd-ports/math/py-iminuit/work-py39/iminuit-2.15.2/.hypothesis/examples')
rootdir: /disk-samsung/freebsd-ports/math/py-iminuit/work-py39/iminuit-2.15.2, configfile: pyproject.toml, testpaths: tests
plugins: forked-1.4.0, isort-3.0.0, rerunfailures-10.1, hypothesis-6.53.0, xdist-2.5.0, cov-2.9.0, typeguard-2.13.3, flake8-1.1.1, subtests-0.8.0
collected 406 items / 2 errors                                                                                                                                                               

=========================================================================================== ERRORS ===========================================================================================
____________________________________________________________________________ ERROR collecting tests/test_cost.py _____________________________________________________________________________
tests/test_cost.py:34: in <module>
    from matplotlib import pyplot  # noqa
/usr/local/lib/python3.9/site-packages/matplotlib/__init__.py:157: in <module>
    _check_versions()
/usr/local/lib/python3.9/site-packages/matplotlib/__init__.py:152: in _check_versions
    if LooseVersion(module.__version__) < minver:
/usr/local/lib/python3.9/site-packages/setuptools/_distutils/version.py:55: in __init__
    warnings.warn(
E   DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
____________________________________________________________________________ ERROR collecting tests/test_draw.py _____________________________________________________________________________
tests/test_draw.py:8: in <module>
    mpl = pytest.importorskip("matplotlib")
/usr/local/lib/python3.9/site-packages/matplotlib/__init__.py:823: in <module>
    cbook._get_data_path("matplotlibrc"),
/usr/local/lib/python3.9/site-packages/matplotlib/cbook/__init__.py:534: in _get_data_path
    return Path(matplotlib.get_data_path(), *args)
E   AttributeError: module 'matplotlib' has no attribute 'get_data_path'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
===================================================================================== 2 errors in 12.05s =====================================================================================
*** Error code 2

Version: 2.15.2
Python-3.9
FreeBSD 13.1

@HDembinski
Copy link
Member

It looks like you use an old and/or broken matplotlib version. These are deprecationwarnings/errors in matplotlib, nothing I can fix.

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