Skip to content

CI tests error with Astropy 6.0 #492

Description

@olebole

With Astropy 6.0, the CI tests do not start due to the following error:

________________________ ERROR collecting test session _________________________
/usr/lib/python3/dist-packages/_pytest/config/__init__.py:641: in _importconftest
    mod = import_path(conftestpath, mode=importmode, root=rootpath)
/usr/lib/python3/dist-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/usr/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1204: in _gcd_import
[…]
/usr/lib/python3/dist-packages/aplpy/__init__.py:9: in <module>
    from ._astropy_init import *  # noqa
/usr/lib/python3/dist-packages/aplpy/_astropy_init.py:21: in <module>
    from astropy.config.configuration import (
E   ImportError: cannot import name 'update_default_config' from 'astropy.config.configuration' (/usr/lib/python3/dist-packages/astropy/config/configuration.py)

Reason is that update_default_config was deprecated in Astropy 5.0 and removed in Astropy 6.0:

  • Removed deprecated ConfigurationMissingWarning class and update_default_config function; There are no replacements as they should no be used anymore. [#15466]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions