[Debian-astro-maintainers] Bug#1002419: montage-wrapper: FTBFS: OSError: File /tmp/montage_mosaic_raw_nk94s2pn/images_raw_all.tbl already exists. If you mean to replace it then use the argument "overwrite=True".
Lucas Nussbaum
lucas at debian.org
Wed Dec 22 08:14:15 GMT 2021
Source: montage-wrapper
Version: 0.9.9-4
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20211220 ftbfs-bookworm
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> py3versions: no X-Python3-Version in control file, using supported versions
> python3.10 setup.py test -vv --args -v
> Matplotlib created a temporary config/cache directory at /tmp/matplotlib-ja7u4ve5 because the default path (/sbuild-nonexistent/.config/matplotlib) is not a writable directory; it is highly recommended to set the MPLCONFIGDIR environment variable to a writable directory, in particular to speed up the import of Matplotlib and to better support multiprocessing.
> /usr/lib/python3/dist-packages/astropy_helpers/setup_helpers.py:161: AstropyDeprecationWarning: The package argument to generate_version_py has been deprecated and will be removed in future. Specify the package name in setup.cfg instead
> warnings.warn('The package argument to generate_version_py has '
> /usr/lib/python3/dist-packages/astropy_helpers/setup_helpers.py:166: AstropyDeprecationWarning: The version argument to generate_version_py has been deprecated and will be removed in future. Specify the version number in setup.cfg instead
> warnings.warn('The version argument to generate_version_py has '
> /usr/lib/python3/dist-packages/astropy_helpers/setup_helpers.py:171: AstropyDeprecationWarning: The release argument to generate_version_py has been deprecated and will be removed in future. We now use the presence of the "dev" string in the version to determine whether this is a release
> warnings.warn('The release argument to generate_version_py has '
> /usr/lib/python3/dist-packages/astropy_helpers/setup_helpers.py:186: AstropyDeprecationWarning: Specifying the package name using the "package_name" option in setup.cfg is deprecated - use the "name" option instead.
> warnings.warn('Specifying the package name using the "package_name" '
> /usr/lib/python3/dist-packages/astropy_helpers/setup_helpers.py:106: AstropyDeprecationWarning: The adjust_compiler function in setup.py is deprecated and can be removed from your setup.py.
> warnings.warn(
> /usr/lib/python3/dist-packages/astropy_helpers/version_helpers.py:239: AstropyDeprecationWarning: The packagename argument to generate_version_py has been deprecated and will be removed in future. Specify the package name in setup.cfg instead
> warnings.warn('The packagename argument to generate_version_py has '
> /usr/lib/python3/dist-packages/astropy_helpers/version_helpers.py:244: AstropyDeprecationWarning: The version argument to generate_version_py has been deprecated and will be removed in future. Specify the version number in setup.cfg instead
> warnings.warn('The version argument to generate_version_py has '
> /usr/lib/python3/dist-packages/astropy_helpers/version_helpers.py:249: AstropyDeprecationWarning: The release argument to generate_version_py has been deprecated and will be removed in future. We now use the presence of the "dev" string in the version to determine whether this is a release
> warnings.warn('The release argument to generate_version_py has '
> /usr/lib/python3/dist-packages/astropy_helpers/version_helpers.py:264: AstropyDeprecationWarning: Specifying the package name using the "package_name" option in setup.cfg is deprecated - use the "name" option instead.
> warnings.warn('Specifying the package name using the "package_name" '
> /usr/lib/python3/dist-packages/setuptools/dist.py:300: DistDeprecationWarning: use_2to3 is ignored.
> warnings.warn(f"{attr} is ignored.", DistDeprecationWarning)
> running test
> /usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
> warnings.warn(
> ============================= test session starts ==============================
> platform linux -- Python 3.10.1, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
> cachedir: .pytest_cache
> hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('/tmp/montage_wrapper-test-khqfnbj4/lib/python3.10/site-packages/.hypothesis/examples')
> rootdir: /tmp/montage_wrapper-test-khqfnbj4/lib/python3.10/site-packages, configfile: setup.cfg
> plugins: hypothesis-5.43.3, mock-3.6.1, filter-subpackage-0.1.1, remotedata-0.3.2, openfiles-0.5.0, cov-3.0.0, astropy-header-0.1.2, doctestplus-0.11.2, arraydiff-0.3
> collecting ... collected 5 items
>
> montage_wrapper/mpi.py::montage_wrapper.mpi.set_mpi_command PASSED [ 20%]
> montage_wrapper/tests/test_commands.py::test_all XFAIL [ 40%]
> montage_wrapper/tests/test_wrappers.py::TestMosaic::test_mosaic FAILED [ 60%]
> montage_wrapper/tests/test_wrappers.py::TestMosaic::test_mosaic_background_match PASSED [ 80%]
> docs/index.rst::index.rst PASSED [100%]
>
> =================================== FAILURES ===================================
> ____________________________ TestMosaic.test_mosaic ____________________________
>
> self = <montage_wrapper.tests.test_wrappers.TestMosaic object at 0x7f14c2d5efb0>
>
> def test_mosaic(self):
> > mosaic(os.path.join(self.tmpdir, 'raw'),os.path.join(self.tmpdir, 'mosaic'), hdu=0)
>
> montage_wrapper/tests/test_wrappers.py:48:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> montage_wrapper/wrappers.py:549: in mosaic
> table_filtered.write(images_raw_tbl, format='ascii.ipac')
> /usr/lib/python3/dist-packages/astropy/table/connect.py:129: in __call__
> self.registry.write(instance, *args, **kwargs)
> /usr/lib/python3/dist-packages/astropy/io/registry/core.py:354: in write
> return writer(data, *args, **kwargs)
> /usr/lib/python3/dist-packages/astropy/io/ascii/connect.py:26: in io_write
> return write(table, filename, **kwargs)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> table = <Table length=25>
> cntr ra ... hdu fname
> int64 float64 ......mosaic_raw_nk94s2pn/raw/test_00_00.fits
> 24 10.5016055 ... 0 /tmp/montage_mosaic_raw_nk94s2pn/raw/test_02_00.fits
> output = '/tmp/montage_mosaic_raw_nk94s2pn/images_raw_all.tbl', format = 'ipac'
> Writer = None, fast_writer = True, overwrite = False, kwargs = {}
>
> def write(table, output=None, format=None, Writer=None, fast_writer=True, *,
> overwrite=False, **kwargs):
> # Docstring inserted below
>
> _validate_read_write_kwargs('write', format=format, fast_writer=fast_writer,
> overwrite=overwrite, **kwargs)
>
> if isinstance(output, str):
> if not overwrite and os.path.lexists(output):
> > raise OSError(NOT_OVERWRITING_MSG.format(output))
> E OSError: File /tmp/montage_mosaic_raw_nk94s2pn/images_raw_all.tbl already exists. If you mean to replace it then use the argument "overwrite=True".
>
> /usr/lib/python3/dist-packages/astropy/io/ascii/ui.py:806: OSError
> ----------------------------- Captured stdout call -----------------------------
> INFO: Listing raw frames [montage_wrapper.wrappers]
> INFO: Computing optimal header [montage_wrapper.wrappers]
> INFO: Projecting raw frames [montage_wrapper.wrappers]
> ------------------------------ Captured log call -------------------------------
> INFO astropy:wrappers.py:526 Listing raw frames
> INFO astropy:wrappers.py:533 Computing optimal header
> INFO astropy:wrappers.py:543 Projecting raw frames
> =============================== warnings summary ===============================
> ../../../../../usr/lib/python3/dist-packages/astropy/tests/plugins/display.py:16
> /usr/lib/python3/dist-packages/astropy/tests/plugins/display.py:16: AstropyDeprecationWarning: The astropy.tests.plugins.display plugin has been deprecated. See the pytest-astropy-header documentation for information on migrating to using pytest-astropy-header to customize the pytest header.
> warnings.warn('The astropy.tests.plugins.display plugin has been deprecated. '
>
> montage_wrapper/tests/test_wrappers.py::TestMosaic::test_mosaic
> /tmp/montage_wrapper-test-khqfnbj4/lib/python3.10/site-packages/montage_wrapper/tests/test_wrappers.py:42: AstropyDeprecationWarning: "clobber" was deprecated in version 2.0 and will be removed in version 5.1. Use argument "overwrite" instead.
> hdu.writeto(os.path.join(self.tmpdir, 'raw', 'test_{0:02d}_{1:02d}.fits'.format(i, j)), clobber=True)
>
> -- Docs: https://docs.pytest.org/en/stable/warnings.html
> =========================== short test summary info ============================
> FAILED montage_wrapper/tests/test_wrappers.py::TestMosaic::test_mosaic - OSEr...
> ============== 1 failed, 3 passed, 1 xfailed, 2 warnings in 4.80s ==============
> INFO: Deleting work directory /tmp/montage_mosaic_raw_nk94s2pn [montage_wrapper.wrappers]
> INFO: installing to temporary directory: /tmp/montage_wrapper-test-khqfnbj4 [astropy.tests.command]
> make[1]: *** [debian/rules:12: test-python3.10] Error 1
The full build log is available from:
http://qa-logs.debian.net/2021/12/20/montage-wrapper_0.9.9-4_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.
More information about the Debian-astro-maintainers
mailing list