[Debian-astro-maintainers] Bug#999541: astroml: FTBFS with matplotlib 3.5 (in experimental): dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.9 returned exit code 13
Lucas Nussbaum
lucas at debian.org
Fri Nov 12 07:18:49 GMT 2021
Source: astroml
Version: 0.4.post1-6
Severity: important
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-matplotlib35
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64, using matplotlib 3.5 currently in experimental. This version
will soon be uploaded to unstable.
If you have questions about this, please contact Sandro Tosi
<morph at debian.org>.
Relevant part (hopefully):
> debian/rules build
> dh build --with python3 --buildsystem=pybuild
> dh_update_autotools_config -O--buildsystem=pybuild
> dh_autoreconf -O--buildsystem=pybuild
> dh_auto_configure -O--buildsystem=pybuild
> I: pybuild base:232: python3.9 setup.py config
> /usr/lib/python3.9/distutils/dist.py:274: UserWarning: Unknown distribution option: 'install_requires'
> warnings.warn(msg)
> running config
> dh_auto_build -O--buildsystem=pybuild
> I: pybuild base:232: /usr/bin/python3 setup.py build
> /usr/lib/python3.9/distutils/dist.py:274: UserWarning: Unknown distribution option: 'install_requires'
> warnings.warn(msg)
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML
> copying astroML/lumfunc.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML
> copying astroML/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML
> copying astroML/decorators.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML
> copying astroML/fourier.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML
> copying astroML/sum_of_norms.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML
> copying astroML/py3k_compat.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML
> copying astroML/crossmatch.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML
> copying astroML/conftest.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML
> copying astroML/cosmology.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML
> copying astroML/resample.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML
> copying astroML/correlation.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML
> copying astroML/filters.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/tests
> copying astroML/tests/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/tests
> copying astroML/tests/test_fourier.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/tests
> copying astroML/tests/test_filters.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/tests
> copying astroML/tests/test_resample.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/tests
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/clustering
> copying astroML/clustering/mst_clustering.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/clustering
> copying astroML/clustering/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/clustering
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/clustering/tests
> copying astroML/clustering/tests/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/clustering/tests
> copying astroML/clustering/tests/test_MST_clustering.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/clustering/tests
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/classification
> copying astroML/classification/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/classification
> copying astroML/classification/gmm_bayes.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/classification
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/classification/tests
> copying astroML/classification/tests/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/classification/tests
> copying astroML/classification/tests/test_gmm_bayes.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/classification/tests
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/linear_model
> copying astroML/linear_model/TLS.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/linear_model
> copying astroML/linear_model/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/linear_model
> copying astroML/linear_model/kernel_regression.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/linear_model
> copying astroML/linear_model/linear_regression.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/linear_model
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/linear_model/tests
> copying astroML/linear_model/tests/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/linear_model/tests
> copying astroML/linear_model/tests/test_TLS.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/linear_model/tests
> copying astroML/linear_model/tests/test_linear_regression.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/linear_model/tests
> copying astroML/linear_model/tests/test_kernel_regression.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/linear_model/tests
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/datasets
> copying astroML/datasets/sdss_sspp.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/datasets
> copying astroML/datasets/sdss_corrected_spectra.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/datasets
> copying astroML/datasets/nasa_atlas.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/datasets
> copying astroML/datasets/moving_objects.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/datasets
> copying astroML/datasets/wmap_temperatures.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/datasets
> copying astroML/datasets/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/datasets
> copying astroML/datasets/dr7_quasar.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/datasets
> copying astroML/datasets/sdss_galaxy_colors.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/datasets
> copying astroML/datasets/sdss_S82standards.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/datasets
> copying astroML/datasets/sdss_spectrum.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/datasets
> copying astroML/datasets/LIGO_bigdog.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/datasets
> copying astroML/datasets/imaging_sample.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/datasets
> copying astroML/datasets/sdss_filters.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/datasets
> copying astroML/datasets/generated.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/datasets
> copying astroML/datasets/rrlyrae_mags.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/datasets
> copying astroML/datasets/hogg2010test.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/datasets
> copying astroML/datasets/sdss_specgals.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/datasets
> copying astroML/datasets/rrlyrae_templates.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/datasets
> copying astroML/datasets/LINEAR_sample.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/datasets
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/datasets/tools
> copying astroML/datasets/tools/download.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/datasets/tools
> copying astroML/datasets/tools/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/datasets/tools
> copying astroML/datasets/tools/cas_query.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/datasets/tools
> copying astroML/datasets/tools/sdss_fits.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/datasets/tools
> copying astroML/datasets/tools/sql_query.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/datasets/tools
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/density_estimation
> copying astroML/density_estimation/gauss_mixture.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/density_estimation
> copying astroML/density_estimation/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/density_estimation
> copying astroML/density_estimation/bayesian_blocks.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/density_estimation
> copying astroML/density_estimation/histtools.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/density_estimation
> copying astroML/density_estimation/density_estimation.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/density_estimation
> copying astroML/density_estimation/xdeconv.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/density_estimation
> copying astroML/density_estimation/empirical.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/density_estimation
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/density_estimation/tests
> copying astroML/density_estimation/tests/test_empirical.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/density_estimation/tests
> copying astroML/density_estimation/tests/test_bayesian_blocks.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/density_estimation/tests
> copying astroML/density_estimation/tests/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/density_estimation/tests
> copying astroML/density_estimation/tests/test_hist_binwidth.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/density_estimation/tests
> copying astroML/density_estimation/tests/test_density.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/density_estimation/tests
> copying astroML/density_estimation/tests/test_xdeconv.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/density_estimation/tests
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/time_series
> copying astroML/time_series/periodogram.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/time_series
> copying astroML/time_series/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/time_series
> copying astroML/time_series/ACF.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/time_series
> copying astroML/time_series/generate.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/time_series
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/time_series/tests
> copying astroML/time_series/tests/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/time_series/tests
> copying astroML/time_series/tests/test_periodogram.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/time_series/tests
> copying astroML/time_series/tests/test_generate.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/time_series/tests
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/dimensionality
> copying astroML/dimensionality/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/dimensionality
> copying astroML/dimensionality/iterative_pca.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/dimensionality
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/dimensionality/tests
> copying astroML/dimensionality/tests/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/dimensionality/tests
> copying astroML/dimensionality/tests/test_iterative_PCA.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/dimensionality/tests
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/plotting
> copying astroML/plotting/mcmc.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/plotting
> copying astroML/plotting/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/plotting
> copying astroML/plotting/multiaxes.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/plotting
> copying astroML/plotting/ellipse.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/plotting
> copying astroML/plotting/hist_tools.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/plotting
> copying astroML/plotting/scatter_contour.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/plotting
> copying astroML/plotting/settings.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/plotting
> copying astroML/plotting/tools.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/plotting
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/plotting/tests
> copying astroML/plotting/tests/test_devectorize.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/plotting/tests
> copying astroML/plotting/tests/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/plotting/tests
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/stats
> copying astroML/stats/_binned_statistic.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/stats
> copying astroML/stats/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/stats
> copying astroML/stats/_point_statistics.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/stats
> copying astroML/stats/random.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/stats
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/stats/tests
> copying astroML/stats/tests/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/stats/tests
> copying astroML/stats/tests/test_stats.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/stats/tests
> copying astroML/stats/tests/test_binned_statistic.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/stats/tests
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/utils
> copying astroML/utils/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/utils
> copying astroML/utils/decorators.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/utils
> copying astroML/utils/exceptions.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/utils
> copying astroML/utils/utils.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/utils
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/utils/tests
> copying astroML/utils/tests/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/utils/tests
> copying astroML/utils/tests/test_utils.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/utils/tests
> copying astroML/utils/tests/test_pickle_results.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/utils/tests
> dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:232: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build; python3.9 -m pytest
> ============================= test session starts ==============================
> platform linux -- Python 3.9.7, pytest-6.2.5, py-1.10.0, pluggy-0.13.0
> rootdir: /<<PKGBUILDDIR>>, configfile: setup.cfg
> plugins: openfiles-0.5.0, mock-3.6.1, filter-subpackage-0.1.1, astropy-header-0.1.2, cov-3.0.0, doctestplus-0.11.0, hypothesis-5.43.3, arraydiff-0.3, remotedata-0.3.2
> collected 209 items
>
> astroML/filters.py . [ 0%]
> astroML/classification/tests/test_gmm_bayes.py .. [ 1%]
> astroML/clustering/tests/test_MST_clustering.py ... [ 2%]
> astroML/datasets/LIGO_bigdog.py . [ 3%]
> astroML/datasets/LINEAR_sample.py s [ 3%]
> astroML/datasets/dr7_quasar.py . [ 4%]
> astroML/datasets/imaging_sample.py . [ 4%]
> astroML/datasets/moving_objects.py . [ 5%]
> astroML/datasets/rrlyrae_mags.py . [ 5%]
> astroML/datasets/sdss_S82standards.py s [ 6%]
> astroML/datasets/sdss_specgals.py . [ 6%]
> astroML/datasets/sdss_sspp.py . [ 7%]
> astroML/density_estimation/bayesian_blocks.py . [ 7%]
> astroML/density_estimation/empirical.py . [ 8%]
> astroML/density_estimation/tests/test_bayesian_blocks.py ..... [ 10%]
> astroML/density_estimation/tests/test_density.py ... [ 11%]
> astroML/density_estimation/tests/test_empirical.py .. [ 12%]
> astroML/density_estimation/tests/test_hist_binwidth.py .... [ 14%]
> astroML/density_estimation/tests/test_xdeconv.py .... [ 16%]
> astroML/dimensionality/tests/test_iterative_PCA.py . [ 17%]
> astroML/linear_model/tests/test_TLS.py . [ 17%]
> astroML/linear_model/tests/test_kernel_regression.py . [ 18%]
> astroML/linear_model/tests/test_linear_regression.py ....... [ 21%]
> astroML/plotting/tools.py F. [ 22%]
> astroML/plotting/tests/test_devectorize.py F [ 22%]
> astroML/stats/_binned_statistic.py . [ 23%]
> astroML/stats/tests/test_binned_statistic.py ............ [ 29%]
> astroML/stats/tests/test_stats.py ..................................... [ 46%]
> astroML/tests/test_filters.py .... [ 48%]
> astroML/tests/test_fourier.py .......................................... [ 68%]
> ........................................... [ 89%]
> astroML/tests/test_resample.py ....... [ 92%]
> astroML/time_series/tests/test_generate.py ..... [ 95%]
> astroML/time_series/tests/test_periodogram.py . [ 95%]
> astroML/utils/decorators.py . [ 96%]
> astroML/utils/utils.py .. [ 97%]
> astroML/utils/tests/test_pickle_results.py . [ 97%]
> astroML/utils/tests/test_utils.py ..... [100%]
>
> =================================== FAILURES ===================================
> ______________ [doctest] astroML.plotting.tools.devectorize_axes _______________
> 035 --------
> 036 The code can be used in the following way::
> 037
> 038 >>> import matplotlib.pyplot as plt
> 039 >>> import numpy as np
> 040 >>> from astroML.plotting.tools import devectorize_axes
> 041 >>> fig, ax = plt.subplots()
> 042 >>> x, y = np.random.random((2, 10000))
> 043 >>> ax.scatter(x, y) # doctest: +IGNORE_OUTPUT
> 044 >>> devectorize_axes(ax) # doctest: +IGNORE_OUTPUT
> UNEXPECTED EXCEPTION: AttributeError("can't set attribute")
> Traceback (most recent call last):
> File "/usr/lib/python3.9/doctest.py", line 1336, in __run
> exec(compile(example.source, filename, "single",
> File "<doctest astroML.plotting.tools.devectorize_axes[6]>", line 1, in <module>
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/plotting/tools.py", line 81, in devectorize_axes
> ax.lines = []
> AttributeError: can't set attribute
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/plotting/tools.py:44: UnexpectedException
> ____________________________ test_devectorize_axes _____________________________
>
> def test_devectorize_axes():
> np.random.seed(0)
>
> x, y = np.random.random((2, 1000))
>
> # save vectorized version
> fig = plt.figure()
> ax = fig.add_subplot(111)
> ax.scatter(x, y)
> output = BytesIO()
> fig.savefig(output)
> output.seek(0)
> im1 = image.imread(output)
> plt.close()
>
> # save devectorized version
> fig = plt.figure()
> ax = fig.add_subplot(111)
> ax.scatter(x, y)
> > devectorize_axes(ax, dpi=200)
>
> astroML/plotting/tests/test_devectorize.py:32:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> ax = <AxesSubplot:>, dpi = 200, transparent = True
>
> def devectorize_axes(ax=None, dpi=None, transparent=True):
> """Convert axes contents to a png.
>
> This is useful when plotting many points, as the size of the saved file
> can become very large otherwise.
>
> Parameters
> ----------
> ax : Axes instance (optional)
> Axes to de-vectorize. If None, this uses the current active axes
> (plt.gca())
> dpi: int (optional)
> resolution of the png image. If not specified, the default from
> 'savefig.dpi' in rcParams will be used
> transparent : bool (optional)
> if True (default) then the PNG will be made transparent
>
> Returns
> -------
> ax : Axes instance
> the in-place modified Axes instance
>
> Examples
> --------
> The code can be used in the following way::
>
> >>> import matplotlib.pyplot as plt
> >>> import numpy as np
> >>> from astroML.plotting.tools import devectorize_axes
> >>> fig, ax = plt.subplots()
> >>> x, y = np.random.random((2, 10000))
> >>> ax.scatter(x, y) # doctest: +IGNORE_OUTPUT
> >>> devectorize_axes(ax) # doctest: +IGNORE_OUTPUT
>
> The resulting figure will be much smaller than the vectorized version.
> """
> if ax is None:
> ax = plt.gca()
>
> fig = ax.figure
> axlim = ax.axis()
>
> # setup: make all visible spines (axes & ticks) & text invisible
> # we need to set these back later, so we save their current state
> _sp = {}
> _txt_vis = [t.get_visible() for t in ax.texts]
> for k in ax.spines:
> _sp[k] = ax.spines[k].get_visible()
> ax.spines[k].set_visible(False)
> for t in ax.texts:
> t.set_visible(False)
>
> _xax = ax.xaxis.get_visible()
> _yax = ax.yaxis.get_visible()
> _patch = ax.patch.get_visible()
> ax.patch.set_visible(False)
> ax.xaxis.set_visible(False)
> ax.yaxis.set_visible(False)
>
> # convert canvas to PNG
> extents = ax.bbox.extents / fig.dpi
> output = BytesIO()
> plt.savefig(output, format='png', dpi=dpi,
> transparent=transparent,
> bbox_inches=Bbox([extents[:2], extents[2:]]))
> output.seek(0)
> im = image.imread(output)
>
> # clear everything on axis (but not text)
> > ax.lines = []
> E AttributeError: can't set attribute
>
> astroML/plotting/tools.py:81: AttributeError
> =============================== warnings summary ===============================
> ../../../../../../usr/lib/python3/dist-packages/_pytest/config/__init__.py:1233
> /usr/lib/python3/dist-packages/_pytest/config/__init__.py:1233: PytestConfigWarning: Unknown config option: testspaths
>
> self._warn_or_fail_if_strict(f"Unknown config option: {key}\n")
>
> astroML/decorators.py:7
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/decorators.py:7: AstroMLDeprecationWarning: 'decorators' has been moved to 'astroML.utils' and will be removed from the main namespace in the future.
> warnings.warn("'decorators' has been moved to 'astroML.utils' and will be "
>
> astroML/fourier.py:13
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/fourier.py:13: DeprecationWarning: invalid escape sequence \i
> """Approximate a continuous 1D Fourier Transform with sampled data.
>
> astroML/fourier.py:136
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/fourier.py:136: DeprecationWarning: invalid escape sequence \i
> """Approximate a continuous 1D Power Spectral Density of sampled data.
>
> .pybuild/cpython3_3.9_astroml/build/astroML/density_estimation/bayesian_blocks.py::astroML.density_estimation.bayesian_blocks.bayesian_blocks
> <doctest astroML.density_estimation.bayesian_blocks.bayesian_blocks[1]>:1: AstroMLDeprecationWarning: The bayesian_blocks function is deprecated and may be removed in a future version.
> Use astropy.stats.bayesian_blocks instead.
>
> .pybuild/cpython3_3.9_astroml/build/astroML/density_estimation/bayesian_blocks.py::astroML.density_estimation.bayesian_blocks.bayesian_blocks
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/density_estimation/bayesian_blocks.py:263: AstroMLDeprecationWarning: The Events class is deprecated and may be removed in a future version.
> Use astropy.stats.Events instead.
> fitfunc = Events(**kwargs)
>
> .pybuild/cpython3_3.9_astroml/build/astroML/density_estimation/bayesian_blocks.py::astroML.density_estimation.bayesian_blocks.bayesian_blocks
> /usr/lib/python3/dist-packages/astropy/utils/decorators.py:125: AstroMLDeprecationWarning: The FitnessFunc class is deprecated and may be removed in a future version.
> Use astropy.stats.FitnessFunc instead.
> return func(*args, **kwargs)
>
> .pybuild/cpython3_3.9_astroml/build/astroML/density_estimation/bayesian_blocks.py::astroML.density_estimation.bayesian_blocks.bayesian_blocks
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/density_estimation/bayesian_blocks.py:267: AstroMLDeprecationWarning: The RegularEvents class is deprecated and may be removed in a future version.
> Use astropy.stats.RegularEvents instead.
> fitfunc = RegularEvents(**kwargs)
>
> .pybuild/cpython3_3.9_astroml/build/astroML/density_estimation/bayesian_blocks.py::astroML.density_estimation.bayesian_blocks.bayesian_blocks
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/density_estimation/bayesian_blocks.py:271: AstroMLDeprecationWarning: The PointMeasures class is deprecated and may be removed in a future version.
> Use astropy.stats.PointMeasures instead.
> fitfunc = PointMeasures(**kwargs)
>
> .pybuild/cpython3_3.9_astroml/build/astroML/dimensionality/tests/test_iterative_PCA.py::test_iterative_PCA
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/dimensionality/iterative_pca.py:136: RuntimeWarning: invalid value encountered in true_divide
> ratio_i = X[i][notM[i]] / X_recons[i][notM[i]]
>
> .pybuild/cpython3_3.9_astroml/build/astroML/stats/tests/test_binned_statistic.py::test_1d_mean
> .pybuild/cpython3_3.9_astroml/build/astroML/stats/tests/test_binned_statistic.py::test_2d_mean
> .pybuild/cpython3_3.9_astroml/build/astroML/stats/tests/test_binned_statistic.py::test_dd_mean
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/stats/_binned_statistic.py:323: RuntimeWarning: invalid value encountered in true_divide
> result[a] /= flatcount
>
> .pybuild/cpython3_3.9_astroml/build/astroML/stats/tests/test_binned_statistic.py::test_1d_mean
> .pybuild/cpython3_3.9_astroml/build/astroML/stats/tests/test_binned_statistic.py::test_1d_median
> .pybuild/cpython3_3.9_astroml/build/astroML/stats/tests/test_binned_statistic.py::test_2d_mean
> .pybuild/cpython3_3.9_astroml/build/astroML/stats/tests/test_binned_statistic.py::test_2d_median
> .pybuild/cpython3_3.9_astroml/build/astroML/stats/tests/test_binned_statistic.py::test_dd_mean
> .pybuild/cpython3_3.9_astroml/build/astroML/stats/tests/test_binned_statistic.py::test_dd_median
> /usr/lib/python3/dist-packages/numpy/core/fromnumeric.py:3372: RuntimeWarning: Mean of empty slice.
> return _methods._mean(a, axis=axis, dtype=dtype,
>
> .pybuild/cpython3_3.9_astroml/build/astroML/stats/tests/test_binned_statistic.py::test_1d_mean
> .pybuild/cpython3_3.9_astroml/build/astroML/stats/tests/test_binned_statistic.py::test_1d_median
> .pybuild/cpython3_3.9_astroml/build/astroML/stats/tests/test_binned_statistic.py::test_2d_mean
> .pybuild/cpython3_3.9_astroml/build/astroML/stats/tests/test_binned_statistic.py::test_2d_median
> .pybuild/cpython3_3.9_astroml/build/astroML/stats/tests/test_binned_statistic.py::test_dd_mean
> .pybuild/cpython3_3.9_astroml/build/astroML/stats/tests/test_binned_statistic.py::test_dd_median
> /usr/lib/python3/dist-packages/numpy/core/_methods.py:170: RuntimeWarning: invalid value encountered in double_scalars
> ret = ret.dtype.type(ret / rcount)
>
> .pybuild/cpython3_3.9_astroml/build/astroML/tests/test_resample.py::test_bootstrap_covar
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/resample.py:44: UserWarning: bootstrap data are n-dimensional: assuming ordered n_samples by n_attributes
> warnings.warn("bootstrap data are n-dimensional: assuming ordered n_samples by n_attributes")
>
> .pybuild/cpython3_3.9_astroml/build/astroML/time_series/tests/test_periodogram.py::test_search_frequencies
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/time_series/periodogram.py:277: AstroMLDeprecationWarning: The lomb_scargle function is deprecated and may be removed in a future version.
> Use astropy.stats.LombScargle instead.
> power_best = LS_func(t, y, dy, omega_best, **LS_kwargs)
>
> .pybuild/cpython3_3.9_astroml/build/astroML/time_series/tests/test_periodogram.py::test_search_frequencies
> /usr/lib/python3/dist-packages/astropy/stats/lombscargle/__init__.py:27: AstropyDeprecationWarning: Importing LombScargle from astropy.stats has been deprecated and will no longer be supported in future. Please import this class from the astropy.timeseries module instead
> warnings.warn('Importing LombScargle from astropy.stats has been '
>
> .pybuild/cpython3_3.9_astroml/build/astroML/time_series/tests/test_periodogram.py::test_search_frequencies
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build/astroML/time_series/periodogram.py:296: AstroMLDeprecationWarning: The lomb_scargle function is deprecated and may be removed in a future version.
> Use astropy.stats.LombScargle instead.
> power = LS_func(t, y, dy, omega, **LS_kwargs)
>
> -- Docs: https://docs.pytest.org/en/stable/warnings.html
> =========================== short test summary info ============================
> FAILED astroML/plotting/tools.py::astroML.plotting.tools.devectorize_axes
> FAILED astroML/plotting/tests/test_devectorize.py::test_devectorize_axes - At...
> ============ 2 failed, 205 passed, 2 skipped, 29 warnings in 12.41s ============
> E: pybuild pybuild:354: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_astroml/build; python3.9 -m pytest
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.9 returned exit code 13
The full build log is available from:
http://qa-logs.debian.net/http://qa-logs.debian.net/2021/11/numpy-matplotlib/matplotlib-exp/astroml_0.4.post1-6_unstable_matplotlib-exp.log
If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.
More information about the Debian-astro-maintainers
mailing list