[Debian-astro-maintainers] Bug#991654: astropy: FTBFS: dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.9 returned exit code 13

Lucas Nussbaum lucas at debian.org
Thu Jul 29 16:05:50 BST 2021


Source: astropy
Version: 4.2-5
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20210728 ftbfs-bullseye

Hi,

During a rebuild of all packages in bullseye, your package failed to build
on amd64.

Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> dh_auto_test
> I: pybuild base:232: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build; python3.9 -m pytest 
> ============================= test session starts ==============================
> platform linux -- Python 3.9.2, pytest-6.0.2, py-1.10.0, pluggy-0.13.0
> Matplotlib: 3.3.4
> Freetype: 2.10.4
> 
> Running tests with Astropy version 4.2.
> Running tests in .pybuild/cpython3_3.9/build.
> 
> Date: 2021-07-29T06:19:49
> 
> Platform: Linux-4.19.0-6-cloud-amd64-x86_64-with-glibc2.31
> 
> Executable: /usr/bin/python3.9
> 
> Full Python Version: 
> 3.9.2 (default, Feb 28 2021, 17:03:44) 
> [GCC 10.2.1 20210110]
> 
> encodings: sys: utf-8, locale: UTF-8, filesystem: utf-8
> byteorder: little
> float info: dig: 15, mant_dig: 15
> 
> Package versions: 
> Numpy: 1.19.5
> Scipy: 1.6.0
> Matplotlib: 3.3.4
> h5py: 2.10.0
> Pandas: not available
> PyERFA: 1.7.2
> 
> Using Astropy options: remote_data: none.
> 
> rootdir: /<<PKGBUILDDIR>>, configfile: setup.cfg
> plugins: openfiles-0.5.0, doctestplus-0.9.0, filter-subpackage-0.1.1, mpl-0.11, astropy-header-0.1.2, cov-2.10.1, hypothesis-5.43.3, arraydiff-0.3, remotedata-0.3.2
> INTERNALERROR> Traceback (most recent call last):
> INTERNALERROR>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/astropy/time/core.py", line 2665, in update_leap_seconds
> INTERNALERROR>     table = iers.LeapSeconds.auto_open(files)
> INTERNALERROR>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/astropy/utils/iers/iers.py", line 1018, in auto_open
> INTERNALERROR>     warn('leap-second file is expired.', IERSStaleWarning)
> INTERNALERROR> astropy.utils.iers.iers.IERSStaleWarning: leap-second file is expired.
> INTERNALERROR> 
> INTERNALERROR> During handling of the above exception, another exception occurred:
> INTERNALERROR> 
> INTERNALERROR> Traceback (most recent call last):
> INTERNALERROR>   File "/usr/lib/python3/dist-packages/_pytest/main.py", line 240, in wrap_session
> INTERNALERROR>     session.exitstatus = doit(config, session) or 0
> INTERNALERROR>   File "/usr/lib/python3/dist-packages/_pytest/main.py", line 295, in _main
> INTERNALERROR>     config.hook.pytest_collection(session=session)
> INTERNALERROR>   File "/usr/lib/python3/dist-packages/pluggy/hooks.py", line 286, in __call__
> INTERNALERROR>     return self._hookexec(self, self.get_hookimpls(), kwargs)
> INTERNALERROR>   File "/usr/lib/python3/dist-packages/pluggy/manager.py", line 92, in _hookexec
> INTERNALERROR>     return self._inner_hookexec(hook, methods, kwargs)
> INTERNALERROR>   File "/usr/lib/python3/dist-packages/pluggy/manager.py", line 83, in <lambda>
> INTERNALERROR>     self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> INTERNALERROR>   File "/usr/lib/python3/dist-packages/pluggy/callers.py", line 208, in _multicall
> INTERNALERROR>     return outcome.get_result()
> INTERNALERROR>   File "/usr/lib/python3/dist-packages/pluggy/callers.py", line 80, in get_result
> INTERNALERROR>     raise ex[1].with_traceback(ex[2])
> INTERNALERROR>   File "/usr/lib/python3/dist-packages/pluggy/callers.py", line 182, in _multicall
> INTERNALERROR>     next(gen)  # first yield
> INTERNALERROR>   File "/usr/lib/python3/dist-packages/_pytest/warnings.py", line 169, in pytest_collection
> INTERNALERROR>     with catch_warnings_for_item(
> INTERNALERROR>   File "/usr/lib/python3.9/contextlib.py", line 117, in __enter__
> INTERNALERROR>     return next(self.gen)
> INTERNALERROR>   File "/usr/lib/python3/dist-packages/_pytest/warnings.py", line 113, in catch_warnings_for_item
> INTERNALERROR>     warnings.filterwarnings(*_parse_filter(arg, escape=False))
> INTERNALERROR>   File "/usr/lib/python3/dist-packages/_pytest/warnings.py", line 39, in _parse_filter
> INTERNALERROR>     category = warnings._getcategory(
> INTERNALERROR>   File "/usr/lib/python3.9/warnings.py", line 260, in _getcategory
> INTERNALERROR>     m = __import__(module, None, None, [klass])
> INTERNALERROR>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/astropy/wcs/__init__.py", line 26, in <module>
> INTERNALERROR>     from .wcs import *
> INTERNALERROR>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/astropy/wcs/wcs.py", line 55, in <module>
> INTERNALERROR>     from .wcsapi.fitswcs import FITSWCSAPIMixin, SlicedFITSWCS
> INTERNALERROR>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/astropy/wcs/wcsapi/fitswcs.py", line 11, in <module>
> INTERNALERROR>     from astropy.coordinates import SpectralCoord, Galactic, ICRS
> INTERNALERROR>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/astropy/coordinates/__init__.py", line 16, in <module>
> INTERNALERROR>     from .builtin_frames import *
> INTERNALERROR>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/astropy/coordinates/builtin_frames/__init__.py", line 29, in <module>
> INTERNALERROR>     from .fk5 import FK5
> INTERNALERROR>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/astropy/coordinates/builtin_frames/fk5.py", line 8, in <module>
> INTERNALERROR>     from astropy.coordinates import earth_orientation as earth
> INTERNALERROR>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/astropy/coordinates/earth_orientation.py", line 19, in <module>
> INTERNALERROR>     jd1950 = Time('B1950').jd
> INTERNALERROR>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/astropy/time/core.py", line 1489, in __new__
> INTERNALERROR>     update_leap_seconds()
> INTERNALERROR>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/astropy/time/core.py", line 2669, in update_leap_seconds
> INTERNALERROR>     warn("leap-second auto-update failed due to the following "
> INTERNALERROR> astropy.utils.exceptions.AstropyWarning: leap-second auto-update failed due to the following exception: IERSStaleWarning('leap-second file is expired.')
> 
> ============================= 3 warnings in 0.34s ==============================
> E: pybuild pybuild:353: test: plugin distutils failed with: exit code=3: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/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/07/28/astropy_4.2-5_testing.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.

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.



More information about the Debian-astro-maintainers mailing list