[Debian-astro-maintainers] Bug#1002410: astroplan: FTBFS: ImportError: cannot import name 'Sequence' from 'collections' (/usr/lib/python3.10/collections/__init__.py)
Lucas Nussbaum
lucas at debian.org
Wed Dec 22 08:07:16 GMT 2021
Source: astroplan
Version: 0.7-1
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
> xvfb-run -a python3.10 setup.py test
> Matplotlib created a temporary config/cache directory at /tmp/matplotlib-g_1na5hc 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/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
> rootdir: /tmp/astroplan-test-pqyd3mz9/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
> collected 96 items / 1 error / 7 skipped / 88 selected
>
> ==================================== ERRORS ====================================
> ______________ ERROR collecting astroplan/plots/tests/test_sky.py ______________
> ImportError while importing test module '/tmp/astroplan-test-pqyd3mz9/lib/python3.10/site-packages/astroplan/plots/tests/test_sky.py'.
> Hint: make sure your test modules/packages have valid Python names.
> Traceback:
> /usr/lib/python3.10/importlib/__init__.py:126: in import_module
> return _bootstrap._gcd_import(name[level:], package, level)
> astroplan/plots/__init__.py:9: in <module>
> from .time_dependent import *
> astroplan/plots/time_dependent.py:9: in <module>
> from collections import Sequence
> E ImportError: cannot import name 'Sequence' from 'collections' (/usr/lib/python3.10/collections/__init__.py)
> =============================== 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. '
>
> -- Docs: https://docs.pytest.org/en/stable/warnings.html
> =========================== short test summary info ============================
> ERROR astroplan/plots/tests/test_sky.py
> !!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
> ==================== 7 skipped, 1 warning, 1 error in 0.41s ====================
> INFO: installing to temporary directory: /tmp/astroplan-test-pqyd3mz9 [astropy.tests.command]
> make[1]: *** [debian/rules:28: python-test3.10] Error 2
The full build log is available from:
http://qa-logs.debian.net/2021/12/20/astroplan_0.7-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.
More information about the Debian-astro-maintainers
mailing list