Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Astropy Configuration Import Error #122

Open
SpacialTree opened this issue Dec 8, 2023 · 1 comment
Open

Astropy Configuration Import Error #122

SpacialTree opened this issue Dec 8, 2023 · 1 comment

Comments

@SpacialTree
Copy link

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
Copy link
Contributor

I believe this is solved by #116

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants