radio-astro-tools / radio-beam

A simple toolkit for reading and manipulating beams from astrophysical radio spectral data cubes.
https://radio-beam.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
26 stars 21 forks source link

Astropy Configuration Import Error #122

Open SpacialTree opened 11 months ago

SpacialTree commented 11 months ago

Trying to import radio-beam, got this error. Is this an astropy

astropy.__version__: '6.1.dev108+gaa142496ef' python version: 3.9.17

In [1]: import radio_beam
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
Cell In[1], line 1
----> 1 import radio_beam

File /blue/adamginsburg/adamginsburg/repos/radio-beam/radio_beam/__init__.py:3
      1 # Licensed under a 3-clause BSD style license - see LICENSE.rst
----> 3 from ._astropy_init import __version__, test
      5 from pkg_resources import get_distribution, DistributionNotFound
      7 from .beam import (Beam, EllipticalGaussian2DKernel,
      8                    EllipticalTophat2DKernel)

File /blue/adamginsburg/adamginsburg/repos/radio-beam/radio_beam/_astropy_init.py:21
     19 import os
     20 from warnings import warn
---> 21 from astropy.config.configuration import (
     22     update_default_config,
     23     ConfigurationDefaultMissingError,
     24     ConfigurationDefaultMissingWarning)
     26 # Create the test function for self test
     27 from astropy.tests.runner import TestRunner

ImportError: cannot import name 'update_default_config' from 'astropy.config.configuration' (/blue/adamginsburg/adamginsburg/repos/astropy/astropy/config/configuration.py)
keflavich commented 11 months ago

I believe this is solved by https://github.com/radio-astro-tools/radio-beam/pull/116