Package: src:radio-beam
Version: 0.3.7-4
Severity: serious
Tags: ftbfs

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

--------------------------------------------------------------------------------
[...]
 debian/rules binary
py3versions: no X-Python3-Version in control file, using supported versions
dh binary --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:311: python3.12 setup.py config
WARNING setuptools_scm.pyproject_reading toml section missing 'pyproject.toml 
does not contain a tool.setuptools_scm section'
Traceback (most recent call last):
  File 
"/usr/lib/python3/dist-packages/setuptools_scm/_integration/pyproject_reading.py",
 line 36, in read_pyproject
    section = defn.get("tool", {})[tool_name]
              ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: 'setuptools_scm'
running config
   dh_auto_build -O--buildsystem=pybuild
I: pybuild base:311: /usr/bin/python3 setup.py build
WARNING setuptools_scm.pyproject_reading toml section missing 'pyproject.toml 
does not contain a tool.setuptools_scm section'
Traceback (most recent call last):
  File 
"/usr/lib/python3/dist-packages/setuptools_scm/_integration/pyproject_reading.py",
 line 36, in read_pyproject
    section = defn.get("tool", {})[tool_name]
              ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: 'setuptools_scm'
running build
running build_py
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_radio_beam/build/radio_beam
copying radio_beam/commonbeam.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_radio_beam/build/radio_beam
copying radio_beam/multiple_beams.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_radio_beam/build/radio_beam
copying radio_beam/conftest.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_radio_beam/build/radio_beam
copying radio_beam/utils.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_radio_beam/build/radio_beam
copying radio_beam/version.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_radio_beam/build/radio_beam
copying radio_beam/_astropy_init.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_radio_beam/build/radio_beam
copying radio_beam/__init__.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_radio_beam/build/radio_beam
copying radio_beam/beam.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_radio_beam/build/radio_beam
creating 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_radio_beam/build/radio_beam/tests
copying radio_beam/tests/test_beams.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_radio_beam/build/radio_beam/tests
copying radio_beam/tests/__init__.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_radio_beam/build/radio_beam/tests
copying radio_beam/tests/setup_package.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_radio_beam/build/radio_beam/tests
copying radio_beam/tests/test_beam.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_radio_beam/build/radio_beam/tests
copying radio_beam/tests/test_kernels.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_radio_beam/build/radio_beam/tests
creating 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_radio_beam/build/radio_beam/tests/data
copying radio_beam/tests/data/NGC0925.bima.mmom0.image.tar.gz -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_radio_beam/build/radio_beam/tests/data
copying radio_beam/tests/data/header_jybeam.hdr -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_radio_beam/build/radio_beam/tests/data
copying radio_beam/tests/data/header_aips.hdr -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_radio_beam/build/radio_beam/tests/data
copying radio_beam/tests/data/generate_commonbeam_table.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_radio_beam/build/radio_beam/tests/data
copying radio_beam/tests/data/m33_beams_bintable.fits.gz -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_radio_beam/build/radio_beam/tests/data
copying radio_beam/tests/data/NGC0925.bima.mmom0.fits.gz -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_radio_beam/build/radio_beam/tests/data
copying radio_beam/tests/data/ngc0925_na.fits.gz -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_radio_beam/build/radio_beam/tests/data
copying radio_beam/tests/data/m83.moment0.fits.gz -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_radio_beam/build/radio_beam/tests/data
   debian/rules override_dh_auto_test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
py3versions: no X-Python3-Version in control file, using supported versions
python3.12 -m pytest -v
============================= test session starts ==============================
platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 -- 
/usr/bin/python3.12
cachedir: .pytest_cache
Running tests in radio_beam docs.

Date: 2024-10-06T18:18:08

Platform: Linux-6.1.0-26-amd64-x86_64-with-glibc2.40

Executable: /usr/bin/python3.12

Full Python Version:
3.12.7 (main, Oct  3 2024, 15:15:22) [GCC 14.2.0]

encodings: sys: utf-8, locale: UTF-8, filesystem: utf-8
byteorder: little
float info: dig: 15, mant_dig: 15

Package versions:
Numpy: 1.26.4
Scipy: 1.13.1
Matplotlib: 3.8.3
h5py: not available
Pandas: not available
Astropy: 6.1.4

Using Astropy options: remote_data: none.

hypothesis profile 'default' -> 
database=DirectoryBasedExampleDatabase(PosixPath('/<<PKGBUILDDIR>>/.hypothesis/examples'))
rootdir: /<<PKGBUILDDIR>>
configfile: setup.cfg
testpaths: radio_beam, docs
plugins: remotedata-0.4.1, astropy-header-0.2.2, mock-3.14.0, 
hypothesis-6.112.1, typeguard-4.3.0, arraydiff-0.6.1, filter-subpackage-0.2.0, 
doctestplus-1.2.1, astropy-0.11.0, cov-5.0.0
collecting ... collected 239 items / 2 errors

==================================== ERRORS ====================================
_______________ ERROR collecting radio_beam/tests/test_beams.py ________________
radio_beam/tests/test_beams.py:508: in <module>
    @pytest.mark.parametrize(("beams", "target_beam"), casa_commonbeam_suite())
radio_beam/tests/test_beams.py:479: in casa_commonbeam_suite
    Beam(major=4 * u.arcsec, minor=4 * u.arcsec,
radio_beam/beam.py:87: in __new__
    if u.deg.is_equivalent(pa):
/usr/lib/python3/dist-packages/astropy/units/core.py:1013: in is_equivalent
    return self._is_equivalent(other, equivalencies)
/usr/lib/python3/dist-packages/astropy/units/core.py:1024: in _is_equivalent
    if self._get_physical_type_id() == other._get_physical_type_id():
/usr/lib/python3/dist-packages/astropy/units/core.py:695: in 
_get_physical_type_id
    unit = self.decompose()
/usr/lib/python3/dist-packages/astropy/units/core.py:2485: in decompose
    x = CompositeUnit(
/usr/lib/python3/dist-packages/astropy/units/core.py:2358: in __init__
    raise UnitScaleError("cannot create a unit with a scale of 0.")
E   astropy.units.core.UnitScaleError: cannot create a unit with a scale of 0.
_______________ ERROR collecting radio_beam/tests/test_beams.py ________________
radio_beam/tests/test_beams.py:508: in <module>
    @pytest.mark.parametrize(("beams", "target_beam"), casa_commonbeam_suite())
radio_beam/tests/test_beams.py:479: in casa_commonbeam_suite
    Beam(major=4 * u.arcsec, minor=4 * u.arcsec,
radio_beam/beam.py:87: in __new__
    if u.deg.is_equivalent(pa):
/usr/lib/python3/dist-packages/astropy/units/core.py:1013: in is_equivalent
    return self._is_equivalent(other, equivalencies)
/usr/lib/python3/dist-packages/astropy/units/core.py:1024: in _is_equivalent
    if self._get_physical_type_id() == other._get_physical_type_id():
/usr/lib/python3/dist-packages/astropy/units/core.py:695: in 
_get_physical_type_id
    unit = self.decompose()
/usr/lib/python3/dist-packages/astropy/units/core.py:2485: in decompose
    x = CompositeUnit(
/usr/lib/python3/dist-packages/astropy/units/core.py:2358: in __init__
    raise UnitScaleError("cannot create a unit with a scale of 0.")
E   astropy.units.core.UnitScaleError: cannot create a unit with a scale of 0.
=============================== warnings summary ===============================
radio_beam/multiple_beams.py:345
  /<<PKGBUILDDIR>>/radio_beam/multiple_beams.py:345: SyntaxWarning: invalid 
escape sequence '\e'
    '''

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
ERROR radio_beam/tests/test_beams.py - astropy.units.core.UnitScaleError: can...
ERROR radio_beam/tests/test_beams.py - astropy.units.core.UnitScaleError: can...
!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!
========================= 1 warning, 2 errors in 0.41s =========================
make[1]: *** [debian/rules:12: test-python3.12] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:8: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202410/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.

Thanks.

Reply via email to