Source: imexam Version: 0.9.1-1 Severity: serious Justification: FTBFS Tags: bookworm sid ftbfs User: lu...@debian.org Usertags: ftbfs-20211023 ftbfs-bookworm
Hi, During a rebuild of all packages in sid, your package failed to build on amd64. Relevant part (hopefully): > debian/rules build > dh build --with python3,sphinxdoc --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 > Cython found > Compiling wrappers/xpa.pyx because it changed. > [1/1] Cythonizing wrappers/xpa.pyx > /usr/lib/python3/dist-packages/setuptools/dist.py:717: UserWarning: Usage of > dash-separated 'description-file' will not be supported in future versions. > Please use the underscore name 'description_file' instead > warnings.warn( > /usr/lib/python3/dist-packages/setuptools/dist.py:717: UserWarning: Usage of > dash-separated 'upload-dir' will not be supported in future versions. Please > use the underscore name 'upload_dir' instead > warnings.warn( > /usr/lib/python3/dist-packages/setuptools/dist.py:717: UserWarning: Usage of > dash-separated 'show-response' will not be supported in future versions. > Please use the underscore name 'show_response' instead > warnings.warn( > /usr/lib/python3/dist-packages/setuptools/dist.py:294: > DistDeprecationWarning: use_2to3 is ignored. > warnings.warn(f"{attr} is ignored.", DistDeprecationWarning) > running config > dh_auto_build -O--buildsystem=pybuild > I: pybuild base:232: /usr/bin/python3 setup.py build > Cython found > /usr/lib/python3/dist-packages/setuptools/dist.py:717: UserWarning: Usage of > dash-separated 'description-file' will not be supported in future versions. > Please use the underscore name 'description_file' instead > warnings.warn( > /usr/lib/python3/dist-packages/setuptools/dist.py:717: UserWarning: Usage of > dash-separated 'upload-dir' will not be supported in future versions. Please > use the underscore name 'upload_dir' instead > warnings.warn( > /usr/lib/python3/dist-packages/setuptools/dist.py:717: UserWarning: Usage of > dash-separated 'show-response' will not be supported in future versions. > Please use the underscore name 'show_response' instead > warnings.warn( > /usr/lib/python3/dist-packages/setuptools/dist.py:294: > DistDeprecationWarning: use_2to3 is ignored. > warnings.warn(f"{attr} is ignored.", DistDeprecationWarning) > running build > running build_py > creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_imexam/build/imexam > copying imexam/ds9_viewer.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_imexam/build/imexam > copying imexam/__init__.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_imexam/build/imexam > copying imexam/_astropy_init.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_imexam/build/imexam > copying imexam/xpa_wrap.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_imexam/build/imexam > copying imexam/math_helper.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_imexam/build/imexam > copying imexam/util.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_imexam/build/imexam > copying imexam/imexamine.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_imexam/build/imexam > copying imexam/connect.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_imexam/build/imexam > copying imexam/ginga_viewer.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_imexam/build/imexam > copying imexam/imexam_defpars.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_imexam/build/imexam > creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_imexam/build/imexam/tests > copying imexam/tests/__init__.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_imexam/build/imexam/tests > copying imexam/tests/test_util.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_imexam/build/imexam/tests > copying imexam/tests/setup_package.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_imexam/build/imexam/tests > copying imexam/tests/test_imexamine.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_imexam/build/imexam/tests > running build_ext > building 'imexam.imexamxpa' extension > creating build > creating build/temp.linux-x86_64-3.9 > creating build/temp.linux-x86_64-3.9/wrappers > x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g > -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat > -Werror=format-security -g -fwrapv -O2 -g -O2 > -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat > -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC > -I/usr/include/python3.9 -c wrappers/xpa.c -o > build/temp.linux-x86_64-3.9/wrappers/xpa.o > x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -g > -fwrapv -O2 -Wl,-z,relro -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. > -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time > -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.9/wrappers/xpa.o -lxpa -o > /<<PKGBUILDDIR>>/imexam/imexamxpa.cpython-39-x86_64-linux-gnu.so > dh_auto_test -O--buildsystem=pybuild > I: pybuild base:232: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_imexam/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 21 items > > imexam/tests/test_imexamine.py ........F [ > 42%] > imexam/tests/test_util.py ............ > [100%] > > =================================== FAILURES > =================================== > _____________________________ test_curve_of_growth > _____________________________ > > @pytest.mark.skipif('not HAS_PHOTUTILS') > def test_curve_of_growth(): > """Test the curve of growth functionality.""" > from astropy.convolution import Gaussian2DKernel > data = Gaussian2DKernel(1.5, x_size=25, y_size=25) > plots = Imexamine() > plots.set_data(data.array) > rad_out, flux_out = plots.curve_of_growth(12, 12, genplot=False) > > rads = [1, 2, 3, 4, 5, 6, 7, 8] > flux = [] > > # Run the aperture phot on this to build up the expected fluxes > plots.aper_phot_pars['subsky'][0] = False > plots.aper_phot_pars['center_com'][0] = False > > for rad in rads: > plots.aper_phot_pars['radius'][0] = rad > apertures, annulus_apertures, rawflux_table, sky_per_pix = > plots.aper_phot(12, 12, genplot=False) > flux.append(rawflux_table['aperture_sum'][0]) > > assert_array_equal(rads, rad_out) > > assert_allclose(flux, flux_out, 1e-6) > > imexam/tests/test_imexamine.py:237: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > x = array([0.07073553, 0.47871481, 0.8291419 , 0.96024238, 0.99309629, > 0.99955585, 0.999969 , 0.9999989 ]) > y = array([nan, nan, nan, nan, nan, nan, nan, nan]), func = <ufunc 'isnan'> > hasval = 'nan' > > def func_assert_same_pos(x, y, func=isnan, hasval='nan'): > """Handling nan/inf. > > Combine results of running func on x and y, checking that they are > True > at the same locations. > > """ > x_id = func(x) > y_id = func(y) > # We include work-arounds here to handle three types of slightly > # pathological ndarray subclasses: > # (1) all() on `masked` array scalars can return masked arrays, so we > # use != True > # (2) __eq__ on some ndarray subclasses returns Python booleans > # instead of element-wise comparisons, so we cast to bool_() and > # use isinstance(..., bool) checks > # (3) subclasses with bare-bones __array_function__ implementations > may > # not implement np.all(), so favor using the .all() method > # We are not committed to supporting such subclasses, but it's nice to > # support them if possible. > if bool_(x_id == y_id).all() != True: > msg = build_err_msg([x, y], > err_msg + '\nx and y %s location mismatch:' > % (hasval), verbose=verbose, header=header, > names=('x', 'y'), precision=precision) > > raise AssertionError(msg) > E AssertionError: > E Not equal to tolerance rtol=1e-06, atol=0 > E > E x and y nan location mismatch: > E x: array([0.070736, 0.478715, 0.829142, 0.960242, 0.993096, > 0.999556, > E 0.999969, 0.999999]) > E y: array([nan, nan, nan, nan, nan, nan, nan, nan]) > > /usr/lib/python3/dist-packages/numpy/testing/_private/utils.py:740: > AssertionError > ----------------------------- Captured stdout call > ----------------------------- > xc=12.0000 yc=12.0000 > > at (x,y)=12,12 > radii:[1 2 3 4 5 6 7 8] > flux:[nan, nan, nan, nan, nan, nan, nan, nan] > xc=12.0000 yc=12.0000 > x y radius flux mag(zpt=2.5e+01) > fwhm(x,y) > 12.00 12.00 1 0.071 2.8e+01 > 1.50,1.50 > xc=12.0000 yc=12.0000 > x y radius flux mag(zpt=2.5e+01) > fwhm(x,y) > 12.00 12.00 2 0.48 2.6e+01 > 1.50,1.50 > xc=12.0000 yc=12.0000 > x y radius flux mag(zpt=2.5e+01) > fwhm(x,y) > 12.00 12.00 3 0.83 2.5e+01 > 1.50,1.50 > xc=12.0000 yc=12.0000 > x y radius flux mag(zpt=2.5e+01) > fwhm(x,y) > 12.00 12.00 4 0.96 2.5e+01 > 1.50,1.50 > xc=12.0000 yc=12.0000 > x y radius flux mag(zpt=2.5e+01) > fwhm(x,y) > 12.00 12.00 5 0.99 2.5e+01 > 1.50,1.50 > xc=12.0000 yc=12.0000 > x y radius flux mag(zpt=2.5e+01) > fwhm(x,y) > 12.00 12.00 6 1.0 2.5e+01 > 1.50,1.50 > xc=12.0000 yc=12.0000 > x y radius flux mag(zpt=2.5e+01) > fwhm(x,y) > 12.00 12.00 7 1.0 2.5e+01 > 1.50,1.50 > xc=12.0000 yc=12.0000 > x y radius flux mag(zpt=2.5e+01) > fwhm(x,y) > 12.00 12.00 8 1.0 2.5e+01 > 1.50,1.50 > ------------------------------ Captured log call > ------------------------------- > INFO imexam.util:imexamine.py:1015 xc=12.0000 yc=12.0000 > INFO imexam.util:imexamine.py:1338 > at (x,y)=12,12 > radii:[1 2 3 4 5 6 7 8] > flux:[nan, nan, nan, nan, nan, nan, nan, nan] > INFO imexam.util:imexamine.py:1015 xc=12.0000 yc=12.0000 > INFO imexam.util:imexamine.py:655 x y radius > flux mag(zpt=2.5e+01) fwhm(x,y) > 12.00 12.00 1 0.071 2.8e+01 > 1.50,1.50 > INFO imexam.util:imexamine.py:1015 xc=12.0000 yc=12.0000 > INFO imexam.util:imexamine.py:655 x y radius > flux mag(zpt=2.5e+01) fwhm(x,y) > 12.00 12.00 2 0.48 2.6e+01 > 1.50,1.50 > INFO imexam.util:imexamine.py:1015 xc=12.0000 yc=12.0000 > INFO imexam.util:imexamine.py:655 x y radius > flux mag(zpt=2.5e+01) fwhm(x,y) > 12.00 12.00 3 0.83 2.5e+01 > 1.50,1.50 > INFO imexam.util:imexamine.py:1015 xc=12.0000 yc=12.0000 > INFO imexam.util:imexamine.py:655 x y radius > flux mag(zpt=2.5e+01) fwhm(x,y) > 12.00 12.00 4 0.96 2.5e+01 > 1.50,1.50 > INFO imexam.util:imexamine.py:1015 xc=12.0000 yc=12.0000 > INFO imexam.util:imexamine.py:655 x y radius > flux mag(zpt=2.5e+01) fwhm(x,y) > 12.00 12.00 5 0.99 2.5e+01 > 1.50,1.50 > INFO imexam.util:imexamine.py:1015 xc=12.0000 yc=12.0000 > INFO imexam.util:imexamine.py:655 x y radius > flux mag(zpt=2.5e+01) fwhm(x,y) > 12.00 12.00 6 1.0 2.5e+01 > 1.50,1.50 > INFO imexam.util:imexamine.py:1015 xc=12.0000 yc=12.0000 > INFO imexam.util:imexamine.py:655 x y radius > flux mag(zpt=2.5e+01) fwhm(x,y) > 12.00 12.00 7 1.0 2.5e+01 > 1.50,1.50 > INFO imexam.util:imexamine.py:1015 xc=12.0000 yc=12.0000 > INFO imexam.util:imexamine.py:655 x y radius > flux mag(zpt=2.5e+01) fwhm(x,y) > 12.00 12.00 8 1.0 2.5e+01 > 1.50,1.50 > =============================== 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: pep8ignore > > self._warn_or_fail_if_strict(f"Unknown config option: {key}\n") > > -- Docs: https://docs.pytest.org/en/stable/warnings.html > =========================== short test summary info > ============================ > FAILED imexam/tests/test_imexamine.py::test_curve_of_growth - AssertionError: > =================== 1 failed, 20 passed, 1 warning in 1.72s > ==================== > E: pybuild pybuild:354: test: plugin distutils failed with: exit code=1: cd > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_imexam/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/2021/10/23/imexam_0.9.1-1_unstable.log A list of current common problems and possible solutions is available at http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute! 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.